[OpenSIPS-Users] opensips 1.5.0 crashes when using is_user_in()

olex at osm.org.ua olex at osm.org.ua
Thu Feb 5 16:12:18 CET 2009


Hello, All!

When using function is_user_in() from module group.so there is a crash of
opensips.
The same opensips.cfg was tested on 1.4.3 and 1.4.4 without any crashes or
problems.

/var/log/messages
------------------
Feb  5 16:05:13 voip /usr/sbin/opensips[11992]: INFO:core:handle_sigs:
child process 1203
9 exited by a signal 11
Feb  5 16:05:13 voip /usr/sbin/opensips[11992]: INFO:core:handle_sigs:
core was generated
Feb  5 16:05:13 voip /usr/sbin/opensips[11992]: INFO:core:handle_sigs:
terminating due to
 SIGCHLD
Feb  5 16:05:13 voip /usr/sbin/opensips[12037]: INFO:core:sig_usr: signal
15 received

opensips.cfg(only some strings)
---------------------------------
if (is_user_in("From", "disabled")) {
    xlog("L_INFO", "User is in group 'disabled' F=$fu D=$fd\n");
    rewriteuser("403");
}


GDB trace
-----------
#0  0x00007f46a3f42b0a in get_username_domain () from
/usr/lib/opensips/modules/group.so
#1  0x00007f46a3f4364f in is_user_in () from
/usr/lib/opensips/modules/group.so
#2  0x00007f46a7e8f64c in do_action () from /usr/sbin/opensips
#3  0x00007f46a7e91cc4 in run_action_list () from /usr/sbin/opensips
#4  0x00007f46a7ed0f8e in eval_expr () from /usr/sbin/opensips
#5  0x00007f46a7ed0dac in eval_expr () from /usr/sbin/opensips
#6  0x00007f46a7e8e37e in do_action () from /usr/sbin/opensips
#7  0x00007f46a7e91cc4 in run_action_list () from /usr/sbin/opensips
#8  0x00007f46a7e916e5 in do_action () from /usr/sbin/opensips
#9  0x00007f46a7e91cc4 in run_action_list () from /usr/sbin/opensips
#10 0x00007f46a7e916e5 in do_action () from /usr/sbin/opensips
#11 0x00007f46a7e91cc4 in run_action_list () from /usr/sbin/opensips
#12 0x00007f46a7e92046 in run_top_route () from /usr/sbin/opensips
#13 0x00007f46a7ec6d24 in receive_msg () from /usr/sbin/opensips
#14 0x00007f46a7efd23b in udp_rcv_loop () from /usr/sbin/opensips
#15 0x00007f46a7ea485c in main () from /usr/sbin/opensips





More information about the Users mailing list