[OpenSIPS-Devel] [ opensips-Bugs-2972604 ] segfault in dialog module

SourceForge.net noreply at sourceforge.net
Wed Mar 24 10:19:10 CET 2010


Bugs item #2972604, was opened at 2010-03-18 16:07
Message generated for change (Comment added) made by cupotka2008
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2972604&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: modules
Group: 1.6.x
Status: Open
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Alex Massover (cupotka2008)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: segfault in dialog module

Initial Comment:
In 1.6.2 release, if I stop opensips (/etc/init.d/opensips stop) it segfaults. Sometimes it also leaves process that can't be killed even with kill -9.

I use dialog module to store/fetch variables.

I'm not sure but I think segfault in dialog.so can happen also during runtime.


Program terminated with signal 11, Segmentation fault.
#0  0xb7320b98 in unref_dlg () from /usr/lib/opensips/modules/dialog.so
(gdb) bt
#0  0xb7320b98 in unref_dlg () from /usr/lib/opensips/modules/dialog.so
#1  0xb731741a in ?? () from /usr/lib/opensips/modules/dialog.so
#2  0xb76676fa in run_trans_callbacks () from /usr/lib/opensips/modules/tm.so
#3  0xb7658140 in free_cell () from /usr/lib/opensips/modules/tm.so
#4  0xb76581ba in free_hash_table () from /usr/lib/opensips/modules/tm.so
#5  0xb76633e6 in tm_shutdown () from /usr/lib/opensips/modules/tm.so
#6  0x080a25cb in destroy_modules ()
#7  0x08065d40 in cleanup ()
#8  0x080662f8 in handle_sigs ()
#9  0x0806914e in main ()


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

>Comment By: Alex Massover (cupotka2008)
Date: 2010-03-24 11:19

Message:
Hi,

Yes looks like it solved the problem.

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

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2010-03-23 12:22

Message:
Hi Alex,

the fix is available on SVN (trunk +1.6) - please update and see if it
fixes your crash.

Regards,
Bogdan

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

Comment By: Alex Massover (cupotka2008)
Date: 2010-03-23 10:54

Message:
btw, it looks to happen only if stopping OpenSIPS during processing calls,
maybe it's race condition on unloading modules.

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

Comment By: Alex Massover (cupotka2008)
Date: 2010-03-21 12:14

Message:
Compiled with DBG_QM_MALLOC.

Syslog attached and here's a bt:

Program terminated with signal 11, Segmentation fault.
#0  0xb71ef801 in unref_dlg () from /usr/lib/opensips/modules/dialog.so
(gdb) bt
#0  0xb71ef801 in unref_dlg () from /usr/lib/opensips/modules/dialog.so
#1  0xb71e61f5 in ?? () from /usr/lib/opensips/modules/dialog.so
#2  0xb753a9bc in run_trans_callbacks () from
/usr/lib/opensips/modules/tm.so
#3  0xb752ad85 in free_cell () from /usr/lib/opensips/modules/tm.so
#4  0xb752b1c2 in free_hash_table () from /usr/lib/opensips/modules/tm.so
#5  0xb7536667 in tm_shutdown () from /usr/lib/opensips/modules/tm.so
#6  0x080a50de in destroy_modules ()
#7  0x08065863 in cleanup ()
#8  0x08065ebc in handle_sigs ()
#9  0x08069212 in main ()


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

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2010-03-18 22:04

Message:
Hi Alex, do you have the memory debugger compiled in? if not, could you try
?

Thanks and regards,
Bogdan

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

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



More information about the Devel mailing list