[Home]

Summary:ASTERISK-22786: Asterisk crash with "Bus Error" when users hangup after leaving voicemail (ODBC storage)
Reporter:Nicolas BARON (Hoggins!)Labels:
Date Opened:2013-10-28 09:17:01Date Closed:2013-12-07 20:47:47.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Applications/app_voicemail/ODBC
Versions:11.5.1 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Linux Fedora 18 with kernel 3.9.11Attachments:( 0) backtrace.txt
( 1) issueA22786_dont_mmap_more_than_filesize.patch
Description:When users leave voicemail (ODBC storage), Asterisk crashes with "Bus Error".

Dialplan section :
{noformat}
exten => s,1,Answer()
exten => s,n,Playback(radiom-misenrelation)
exten => s,n,Set(CALLERID(name)=STD RADIOM ${CALLERID(name)})
exten => s,n,Wait(2)
exten => s,n,Dial(IAX2/yomama-out/standard&SIP/standard1,30,mTt)
exten => s,n,Playback(radiom-repondeur)
exten => s,n,VoiceMail(1234@default,s)
exten => s,n,Hangup()
{noformat}

Here is the backtrace PasteBin : http://ur1.ca/fy7nv, generated with instructions found at : https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace, yet still including "<optimized_out>" mentions.

Comments:By: Richard Mudgett (rmudgett) 2013-10-28 12:21:02.686-0500

Please attach the backtrace to the issue rather than link to a third party location.  The third party location may delete the file before anyone really looks at the issue.

The optimized out mentions are from routines within the MySQL library itself.  This may really be a bug in the library and not Asterisk.

By: Nicolas BARON (Hoggins!) 2013-10-28 15:25:12.030-0500

Sorry for that. I'm correcting it right now. Feeling kinda nervous, this is my first bug submission. I wouldn't want to ruin it. First times are important.

By: Nicolas BARON (Hoggins!) 2013-10-28 15:26:59.808-0500

The backtrace, as generated by gdb using the proper requirements.

By: Nicolas BARON (Hoggins!) 2013-10-28 15:29:09.848-0500

So, if I manage to get the debuginfo packages of the MySQL libraries used here, is there a chance to get rid of these optimized out mentions, and, maybe, discard Asterisk's fault if we can prove this is MySQL related ?

By: Richard Mudgett (rmudgett) 2013-10-28 18:10:35.396-0500

You already have the developer's version of the library installed or you couldn't build Asterisk to use the library.

I don't think precompiled libraries are distributed unoptimized.  You'll have to build the library unoptimized from source yourself.


By: Walter Doekes (wdoekes) 2013-11-01 08:08:45.752-0500

Please try this patch.

Compile tested only.

By: Nicolas BARON (Hoggins!) 2013-11-04 08:25:46.436-0600

Hello,

No luck with the patch. I also patched a 11.6.0 version, just to be sure, and the result is the same.
I'm thinking of letting down this issue, and moving my voicemail backend to IMAP, because there is not much of debug I can do anymore.
I'll keep you posted.

By: Rusty Newton (rnewton) 2013-11-20 18:25:51.121-0600

Assigning to Walter, in case he has something else for Nicolas to try.

Nicolas, can you reproduce the crash reliably? Do you think you could provide us all the details needed to reproduce ourselves?

By: Matt Jordan (mjordan) 2013-12-07 20:47:35.877-0600

I'm going to go ahead and suspend this issue since Nicolas hasn't gotten back on it. We don't have clear information as to what is occurring down in the MySQL library, and I'm hesitant to apply Walter's patch - especially since it didn't appear to fix whatever issue Nicolas is seeing.

By: Nicolas BARON (Hoggins!) 2013-12-08 04:35:47.164-0600

Hello,

I'm really sorry, I don't have time to dig further. I "solved" my issue by using IMAP storage, as I needed a quick fix.
I'll reopen it and provide more details when I have time to do so.

Thanks for your help.