[OpenSIPS-Devel] [ opensips-Bugs-3606141 ] crash while querying list_tcp_conns

SourceForge.net noreply at sourceforge.net
Wed Feb 27 10:58:29 CET 2013


Bugs item #3606141, was opened at 2013-02-26 16:43
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3606141&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: trunk
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Ovidiu Sas (osas)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: crash while querying list_tcp_conns

Initial Comment:
If opensips is running in UDP only mode (with tcp disabled) and the list_tcp_conns mi command is executed, opensips will crash.
It seems that the tcpconn_lock is not initialized and a lock is executed on a NULL pointer: tcp_main.c +1909

#0  0x00000000004b1ee5 in tsl (cmd=<value optimized out>, param=<value optimized out>) at fastlock.h:88
#1  get_lock (cmd=<value optimized out>, param=<value optimized out>) at fastlock.h:178
#2  mi_list_tcp_conns (cmd=<value optimized out>, param=<value optimized out>) at tcp_main.c:1909
#3  0x00007f6895039bd9 in run_mi_cmd (mod=<value optimized out>, cmd=<value optimized out>, arg=0x7fff3f2ff530, page=0x7fff3f2ff620, buffer=0x7f689716bb70,
    async_hdl=0x7fff3f2ff550) at ../../mi/mi.h:109
(gdb) print lock
$1 = (volatile int *) 0x0

Regards,
Ovidiu Sas

----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2013-02-27 01:58

Message:
Thanks for report, bug fixed on SVN trunk and 1.9 .

Regards,
Bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3606141&group_id=232389



More information about the Devel mailing list