OpenSIPS 1.5 with integrated xcap server leads to core dump

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenSIPS 1.5 with integrated xcap server leads to core dump

Franz Edler-3
Hi all,

I have started some simple tests with OpenSIPS (revision 5553) and the
integrated xcap server. I always get a core dump when I setup a session. The
configuration file opensips.cfg is attached. A gdb-backtrace shows:

Sorry I forgot the backtrace:

(gdb) bt
#0  0xb7c0622d in mysql_stmt_fetch () from /usr/lib/libmysqlclient.so.15
#1  0xb7dbacda in db_mysql_convert_result (_h=0x818f608, _r=0x818fcb0) at
res.c:161
#2  0xb7db6c0d in db_mysql_store_result (_h=0x818f608, _r=0xbfb66ae4) at
dbase.c:598
#3  0xb7db932f in db_mysql_query (_h=0x818f608, _k=0xbfb66ad8, _op=0x0,
_v=0xbfb66ab0, _c=0xbfb66ae8, _n=1, _nc=1, _o=0x0, _r=0xbfb66ae4) at
dbase.c:679
#4  0xb7a9c23a in does_uri_exist (_msg=0x8190ca8, _s1=0x0, _s2=0x0) at
checks.c:237
#5  0x08055329 in do_action (a=0x818dc58, msg=0x8190ca8) at action.c:962
#6  0x080541e2 in run_action_list (a=0x818dc58, msg=0x8190ca8) at
action.c:139
#7  0x080a0fb7 in eval_expr (e=0x818dcc0, msg=0x8190ca8, val=0x0) at
route.c:1189
#8  0x080a0b12 in eval_expr (e=0x818dce8, msg=0x8190ca8, val=0x0) at
route.c:1502
#9  0x080a0b4c in eval_expr (e=0x818dd10, msg=0x8190ca8, val=0x0) at
route.c:1507
#10 0x08055608 in do_action (a=0x818e900, msg=0x8190ca8) at action.c:689
#11 0x080541e2 in run_action_list (a=0x818d638, msg=0x8190ca8) at
action.c:139
#12 0x080571bb in do_action (a=0x818ec38, msg=0x8190ca8) at action.c:706
#13 0x080541e2 in run_action_list (a=0x818bdd0, msg=0x8190ca8) at
action.c:139
#14 0x08058075 in run_top_route (a=0x818bdd0, msg=0x8190ca8) at action.c:119
#15 0x0809249c in receive_msg (
    buf=0x8164900 "INVITE sip:[hidden email] SIP/2.0\r\nVia: SIP/2.0/UDP
10.0.0.1:55692;branch=z9hG4bK-d8754z-415576049a380b7f-1---d8754z-\r\nMax-For
wards: 69\r\nContact: <sip:alice@10.0.0.1:55692;transport=udp>\r\nTo:
\"sip:bob@"..., len=946, rcv_info=0xbfb67644) at receive.c:165
#16 0x080ce29b in udp_rcv_loop () at udp_server.c:449
#17 0x0806c4c6 in main (argc=1, argv=0xbfb677d4) at main.c:692
(gdb)

Any help appreciated.

Regards
Franz

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

opensips.cfg (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: OpenSIPS 1.5 with integrated xcap server leads to core dump

Bogdan-Andrei Iancu
Hi Franz,

What architecture are you using? 32 or 64?

Do you still have the core file?

Regards,
Bogdan

Franz Edler wrote:

> Hi all,
>
> I have started some simple tests with OpenSIPS (revision 5553) and the
> integrated xcap server. I always get a core dump when I setup a session. The
> configuration file opensips.cfg is attached. A gdb-backtrace shows:
>
> Sorry I forgot the backtrace:
>
> (gdb) bt
> #0  0xb7c0622d in mysql_stmt_fetch () from /usr/lib/libmysqlclient.so.15
> #1  0xb7dbacda in db_mysql_convert_result (_h=0x818f608, _r=0x818fcb0) at
> res.c:161
> #2  0xb7db6c0d in db_mysql_store_result (_h=0x818f608, _r=0xbfb66ae4) at
> dbase.c:598
> #3  0xb7db932f in db_mysql_query (_h=0x818f608, _k=0xbfb66ad8, _op=0x0,
> _v=0xbfb66ab0, _c=0xbfb66ae8, _n=1, _nc=1, _o=0x0, _r=0xbfb66ae4) at
> dbase.c:679
> #4  0xb7a9c23a in does_uri_exist (_msg=0x8190ca8, _s1=0x0, _s2=0x0) at
> checks.c:237
> #5  0x08055329 in do_action (a=0x818dc58, msg=0x8190ca8) at action.c:962
> #6  0x080541e2 in run_action_list (a=0x818dc58, msg=0x8190ca8) at
> action.c:139
> #7  0x080a0fb7 in eval_expr (e=0x818dcc0, msg=0x8190ca8, val=0x0) at
> route.c:1189
> #8  0x080a0b12 in eval_expr (e=0x818dce8, msg=0x8190ca8, val=0x0) at
> route.c:1502
> #9  0x080a0b4c in eval_expr (e=0x818dd10, msg=0x8190ca8, val=0x0) at
> route.c:1507
> #10 0x08055608 in do_action (a=0x818e900, msg=0x8190ca8) at action.c:689
> #11 0x080541e2 in run_action_list (a=0x818d638, msg=0x8190ca8) at
> action.c:139
> #12 0x080571bb in do_action (a=0x818ec38, msg=0x8190ca8) at action.c:706
> #13 0x080541e2 in run_action_list (a=0x818bdd0, msg=0x8190ca8) at
> action.c:139
> #14 0x08058075 in run_top_route (a=0x818bdd0, msg=0x8190ca8) at action.c:119
> #15 0x0809249c in receive_msg (
>     buf=0x8164900 "INVITE sip:[hidden email] SIP/2.0\r\nVia: SIP/2.0/UDP
> 10.0.0.1:55692;branch=z9hG4bK-d8754z-415576049a380b7f-1---d8754z-\r\nMax-For
> wards: 69\r\nContact: <sip:alice@10.0.0.1:55692;transport=udp>\r\nTo:
> \"sip:bob@"..., len=946, rcv_info=0xbfb67644) at receive.c:165
> #16 0x080ce29b in udp_rcv_loop () at udp_server.c:449
> #17 0x0806c4c6 in main (argc=1, argv=0xbfb677d4) at main.c:692
> (gdb)
>
> Any help appreciated.
>
> Regards
> Franz
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: OpenSIPS 1.5 with integrated xcap server leads to core dump

Franz Edler-3
Hi Bogdan,
 
> What architecture are you using? 32 or 64?
I am using Debian 5.0 as a VMware-Image on my Windows XP notebook (32 bit
architecture).

> Do you still have the core file?

No, but I have just produced two new core-dumps. You can download the two
core dumps, trace-files and the used opensips.cfg from:
http://sip.technikum-wien.at/coredumps/

The backtrace in both cases shows the same pattern:

coredump core1:
---------------
(gdb) bt
#0  0xb7c7822d in mysql_stmt_fetch () from /usr/lib/libmysqlclient.so.15
#1  0xb7e2ccda in db_mysql_convert_result (_h=0x818f608, _r=0x8189c10) at
res.c:161
#2  0xb7e28c0d in db_mysql_store_result (_h=0x818f608, _r=0xbffd6f54) at
dbase.c:598
#3  0xb7e2b32f in db_mysql_query (_h=0x818f608, _k=0xbffd6f48, _op=0x0,
_v=0xbffd6f20, _c=0xbffd6f58, _n=1, _nc=1, _o=0x0, _r=0xbffd6f54) at
dbase.c:679
#4  0xb7b0e23a in does_uri_exist (_msg=0x8190ca8, _s1=0x0, _s2=0x0) at
checks.c:237
#5  0x08055329 in do_action (a=0x818dc58, msg=0x8190ca8) at action.c:962
#6  0x080541e2 in run_action_list (a=0x818dc58, msg=0x8190ca8) at
action.c:139
#7  0x080a0fb7 in eval_expr (e=0x818dcc0, msg=0x8190ca8, val=0x0) at
route.c:1189
#8  0x080a0b12 in eval_expr (e=0x818dce8, msg=0x8190ca8, val=0x0) at
route.c:1502
#9  0x080a0b4c in eval_expr (e=0x818dd10, msg=0x8190ca8, val=0x0) at
route.c:1507
#10 0x08055608 in do_action (a=0x818e900, msg=0x8190ca8) at action.c:689
#11 0x080541e2 in run_action_list (a=0x818d638, msg=0x8190ca8) at
action.c:139
#12 0x080571bb in do_action (a=0x818ec38, msg=0x8190ca8) at action.c:706
#13 0x080541e2 in run_action_list (a=0x818bdd0, msg=0x8190ca8) at
action.c:139
#14 0x08058075 in run_top_route (a=0x818bdd0, msg=0x8190ca8) at action.c:119
#15 0x0809249c in receive_msg (
    buf=0x8164900 "INVITE sip:[hidden email] SIP/2.0\r\nVia: SIP/2.0/UDP
10.0.0.1:50026;branch=z9hG4bK-d8754z-602f4b2c0718956e-1---d8754z-\r\nMax-For
wards: 69\r\nContact: <sip:alice@10.0.0.1:50026;transport=udp>\r\nTo:
\"sip:bob@"..., len=945, rcv_info=0xbffd7ab4) at receive.c:165
#16 0x080ce29b in udp_rcv_loop () at udp_server.c:449
#17 0x0806c4c6 in main (argc=1, argv=0xbffd7c44) at main.c:692

coredump core2:
---------------
(gdb) bt
#0  0xb7ba522d in mysql_stmt_fetch () from /usr/lib/libmysqlclient.so.15
#1  0xb7d59cda in db_mysql_convert_result (_h=0x818f608, _r=0x8189c10) at
res.c:161
#2  0xb7d55c0d in db_mysql_store_result (_h=0x818f608, _r=0xbf804544) at
dbase.c:598
#3  0xb7d5832f in db_mysql_query (_h=0x818f608, _k=0xbf804538, _op=0x0,
_v=0xbf804510, _c=0xbf804548, _n=1, _nc=1, _o=0x0, _r=0xbf804544) at
dbase.c:679
#4  0xb7a3b23a in does_uri_exist (_msg=0x8190ca8, _s1=0x0, _s2=0x0) at
checks.c:237
#5  0x08055329 in do_action (a=0x818dc58, msg=0x8190ca8) at action.c:962
#6  0x080541e2 in run_action_list (a=0x818dc58, msg=0x8190ca8) at
action.c:139
#7  0x080a0fb7 in eval_expr (e=0x818dcc0, msg=0x8190ca8, val=0x0) at
route.c:1189
#8  0x080a0b12 in eval_expr (e=0x818dce8, msg=0x8190ca8, val=0x0) at
route.c:1502
#9  0x080a0b4c in eval_expr (e=0x818dd10, msg=0x8190ca8, val=0x0) at
route.c:1507
#10 0x08055608 in do_action (a=0x818e900, msg=0x8190ca8) at action.c:689
#11 0x080541e2 in run_action_list (a=0x818d638, msg=0x8190ca8) at
action.c:139
#12 0x080571bb in do_action (a=0x818ec38, msg=0x8190ca8) at action.c:706
#13 0x080541e2 in run_action_list (a=0x818bdd0, msg=0x8190ca8) at
action.c:139
#14 0x08058075 in run_top_route (a=0x818bdd0, msg=0x8190ca8) at action.c:119
#15 0x0809249c in receive_msg (
    buf=0x8164900 "INVITE sip:[hidden email] SIP/2.0\r\nVia: SIP/2.0/UDP
10.0.0.1:12620;branch=z9hG4bK-d8754z-9a1fd831cf52f054-1---d8754z-\r\nMax-For
wards: 69\r\nContact: <sip:alice@10.0.0.1:12620;transport=udp>\r\nTo:
\"sip:bob@"..., len=946, rcv_info=0xbf8050a4) at receive.c:165
#16 0x080ce29b in udp_rcv_loop () at udp_server.c:449
#17 0x0806c4c6 in main (argc=1, argv=0xbf805234) at main.c:692

I have done the following:
I registered two subscribers (alice and bob) running on eyebeam clients with
server based presence function activated. There were no contact active, so
the SUBSCRIBE is sent only for own watcher-info.

When I start then a session between them the core dump os caused by the
INVITE message.

I hope that helps.

Regards
Franz


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: OpenSIPS 1.5 with integrated xcap server leads to core dump

Bogdan-Andrei Iancu
Hi Franz,

Thanks for your testing. The fix is now available on SVN.

Best regards,
Bogdan

Franz Edler wrote:

> Hi Bogdan,
>
>  
>> If possible, could you apply the attached patch, recompile and run the
>> proxy again? It will be great if more than one person will be able to
>> test the correctness of the fix.
>>    
>
> I have tested the patch - and it works now as expected. So I can say the fix
> is correct.
>
> Thanks.
> Franz
>
>
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users