[OpenSIPS-Users] crash when calling get_source_group() with uninitialized db_url

Andrew Pogrebennyk andrew.pogrebennyk at portaone.com
Wed Aug 18 10:44:17 CEST 2010


Hello Bogdan,
I've noticed that permissions module in 1.6.3 dies to core if 
get_source_group() is called and db_url was not initialized.
This is not something would normally happen - but nevertheless...

Core was generated by `/usr/local/sbin/opensips -P /var/run/opensips.pid'.
Program terminated with signal 11, Segmentation fault.
[New process 5847]
#0  0x00002addea1c05fb in get_source_group (msg=0x793700, pvar=0x78f840 
"N") at address.c:586
586             group = find_group_in_hash_table(*hash_table,
(gdb) bt
#0  0x00002addea1c05fb in get_source_group (msg=0x793700, pvar=0x78f840 
"N") at address.c:586
#1  0x000000000040e818 in do_action (a=0x789ec8, msg=0x793700) at 
action.c:1040
#2  0x0000000000411d15 in run_action_list (a=<value optimized out>, 
msg=0x793700) at action.c:139
#3  0x0000000000410b7b in do_action (a=0x78aa40, msg=0x793700) at 
action.c:712
#4  0x0000000000411d15 in run_action_list (a=<value optimized out>, 
msg=0x793700) at action.c:139
#5  0x0000000000410105 in do_action (a=0x78abf0, msg=0x793700) at 
action.c:706
#6  0x0000000000411d15 in run_action_list (a=<value optimized out>, 
msg=0x793700) at action.c:139
#7  0x0000000000412067 in run_top_route (a=0x7851e8, msg=0x793700) at 
action.c:119
#8  0x0000000000456a35 in receive_msg (
     buf=0x758120 "INVITE sip:777 at 192.168.31.15:5060 SIP/2.0\r\nVia: 
SIP/2.0/UDP 
192.168.31.67:5061;branch=z9hG4bK-7qwngnepdz4owliv;rport\r\nMax-Forwards: 69\r\nFrom: 
\"bob|\" <sip:11165410901 at 192.168.31.67>;tag=uyjyhekcfkp3lyw"..., 
len=959, rcv_info=0x7fffb5aabc90) at receive.c:162
#9  0x000000000049b604 in udp_rcv_loop () at udp_server.c:492
#10 0x000000000042a43d in main (argc=3, argv=<value optimized out>) at 
main.c:818

-- 
Sincerely,
Andrew Pogrebennyk



More information about the Users mailing list