[OpenSIPS-Devel] [ opensips-Bugs-3611850 ] Segfault on shutdown in db_mysql

SourceForge.net noreply at sourceforge.net
Wed May 8 21:46:27 CEST 2013


Bugs item #3611850, was opened at 2013-04-25 10:46
Message generated for change (Comment added) made by rrb3942
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3611850&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.9.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ryan Bullock (rrb3942)
Assigned to: Vladut-Stefan Paiu (vladut-paiu)
Summary: Segfault on shutdown in db_mysql

Initial Comment:
I am seeing a segfault on shutdown in the db_mysql module. My guess is that is is related to a flush to db on shutdown somewhere, we are using bulk inserts so that may be related.

Kernel message:
opensips[18804]: segfault at 0 ip 00007fa545fb0089 sp 00007fff45002280 error 6 in db_mysql.so[7fa545fa3000+11000]

Going off the kernel message and an objdump of db_mysql.so, seems to be in the db_mysql_val2bind() function. I am working on getting a full core + back trace.



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

>Comment By: Ryan Bullock (rrb3942)
Date: 2013-05-08 12:46

Message:
Hey vlad this was a shutdown down after a crash, so the crash in a
different process may be the cause. Although it would be nice if it didn't
cause another segfault (and another core) when that happens.

If you have a patch to get more debug information I can get that into place
for when the next crash happens.

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

Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2013-05-07 03:18

Message:
Hello Ryan,

I see this is related to the query buffering part.

Is this for a normal shutdown, or for a shutdown after a crash ?
Seems that somehow ( very oddly ) the prepared statement was not properly
allocated..  Can you replicate this somehow ? If yes, I'd like to send you
a patch that would print some extra debugging.

Best Regards,
Vlad

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

Comment By: Ryan Bullock (rrb3942)
Date: 2013-05-02 12:48

Message:
Backtrace attached.

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

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



More information about the Devel mailing list