[Home]

Summary:ASTERISK-10741: Email notification of voicemail segfaults Asterisk
Reporter:brook davis (mrgoby)Labels:
Date Opened:2007-11-12 12:23:27.000-0600Date Closed:2007-12-27 17:41:40.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) valgrind.txt
Description:If I enable email notification of voicemail messages, asterisk crashes.  Does not matter if I attach the message or not.  

I have a core dump, which I can give to you also.  Please let me know if I can provide additional info.

****** STEPS TO REPRODUCE ******

create voicemail configuration with these entries:


[general]
format = wav49|gsm|wav
serveremail = asterisk@a2pg.com
skipms = 3000
maxsilence = 10
silencethreshold = 128
maxlogins = 3
pagerfromstring=A2PG Asterisk PBX
emaildateformat= %A, %B %d, %Y at %r
tz = eastern
attach = no    ;; doesnt matter if this is no or yes
saycid = no
sendvoicemail = yes  
delete = no
nextaftercmd = yes
forcename = yes

[zonemessages]
eastern = America/New_York|'vm-received' Q 'digits/at' IMp

[a2pg-staff]

8259 => 3214,Bob Example,bob@gmail.com,,saycid=no|tz=eastern





****** ADDITIONAL INFORMATION ******

asterisk, built from stable source tar release.

Asterisk 1.4.12 built by root @ asterisk.a2pg on a x86_64 running Linux on 2007-11-12 16:30:11 UTC

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

OS: Fedora Core 7, current on updates.

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

uname -av
Linux asterisk.a2pg.com 2.6.23.1-21.fc7 #1 SMP Thu Nov 1 20:28:15 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

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

From asterisk CLI:

   -- Executing [s-NOANSWER@macro-stdexten:1] VoiceMail("SIP/schapel-007f5740", "8259@a2pg-staff") in new stack
   -- <SIP/schapel-007f5740> Playing '/var/spool/asterisk/voicemail/a2pg-staff/8259/temp' (language 'en')
   -- <SIP/schapel-007f5740> Playing 'vm-intro' (language 'en')
   -- <SIP/schapel-007f5740> Playing 'beep' (language 'en')
   -- Recording the message
   -- x=0, open writing:  /var/spool/asterisk/voicemail/a2pg-staff/8259/tmp/QURBOd format: wav49, 0x7ea3f0
   -- x=1, open writing:  /var/spool/asterisk/voicemail/a2pg-staff/8259/tmp/QURBOd format: gsm, 0x813980
   -- x=2, open writing:  /var/spool/asterisk/voicemail/a2pg-staff/8259/tmp/QURBOd format: wav, 0x813da0
   -- User hung up
asterisk*CLI>
Disconnected from Asterisk server
/opt/askterisk-1.4.12/sbin/safe_asterisk: line 117:  2938 Segmentation fault      (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >&/dev/${TTY} < /dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.
[root@asterisk ~]# Automatically restarting Asterisk.
[root@asterisk ~]#
[root@asterisk ~]#
[root@asterisk ~]# mpg123: no process killed
[root@asterisk ~]#

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

Nothing is in /var/log/asterisk/*

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

/var/log/messages && dmesg:

asterisk[2841]: segfault at 00000000e080bb3d rip 00000000e080bb3d rsp 0000000040526e20 error 14
asterisk[2971]: segfault at 00000000e080bb3d rip 00000000e080bb3d rsp 0000000040526e20 error 14

Comments:By: Eliel Sardanons (eliel) 2007-11-12 12:27:04.000-0600

Can you provide a bt full?

By: brook davis (mrgoby) 2007-11-12 12:35:21.000-0600

do i need to rebuild asterisk with debugging symbols to do that ?   I get the following when doing a bt in gdb:


warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff6b7fd000
Core was generated by `/opt/askterisk-1.4.12/sbin/asterisk -f -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000e080bb3d in ?? ()
(gdb) bt
#0  0x00000000e080bb3d in ?? ()
#1  0x0000000070d08f3e in ?? ()
#2  0x00000000e0629b3f in ?? ()
#3  0x0000000070b26f40 in ?? ()
#4  0x00000000607f8441 in ?? ()
ASTERISK-1  0x0000000070944f42 in ?? ()
...  etc, etc

By: Tilghman Lesher (tilghman) 2007-11-12 12:45:55.000-0600

Yes, you do.  Also, please follow the instructions in doc/valgrind.txt.

By: brook davis (mrgoby) 2007-11-12 13:34:31.000-0600

I'll need to coordinate with my customer who is running this system in production.

I notice the docs/valgrind.txt does not exist in my stable source directory, but does in an SVN co.

For some reason I can't run 'make menuselect' in my stable source (it complains about ncurses missing, even though it isn't), but I can run it in my svn co, after copying $AST_SOURCE/makeopts to $AST_SOURCE/menuselect/makeopts.

Should I just checkout the 2.6.12 branch head and build that?  Or, what would you suggest ?   Is menuselect supposed to run in the stable releases?

By: Tilghman Lesher (tilghman) 2007-11-12 15:04:47.000-0600

There is no 2.6.12.  Perhaps you meant 1.4?

By: brook davis (mrgoby) 2007-11-12 15:22:21.000-0600

yes...  1.4.12 is what I am using in prod to produce the issue...  sorry for confusion...

By: Tilghman Lesher (tilghman) 2007-11-12 16:25:11.000-0600

Yes, please run the latest 1.4.  In terms of menuselect, please try running 'make -C menuselect clean' and retry.  Menuselect sometimes doesn't re-run its own configure when it needs to.

By: Tilghman Lesher (tilghman) 2007-11-14 18:02:49.000-0600

Really need valgrind output to find the issue.

By: brook davis (mrgoby) 2007-11-15 09:54:58.000-0600

Coordinating with client now, will try to schedule downtime with him today to capture output.

By: brook davis (mrgoby) 2007-11-15 11:58:19.000-0600

Okay, an interesting development...   I followed the instructions in valgrind.txt with the same source 1.4.12.  I finally got menuselect to work by editing menuselect/makeopts and pointing it at ncurses manually (this seems broken to me, but maybe not).  Anyway...  

At first, I was concerned because the segfault doesn't occur, but my colleague informs me this is to be expected... posting valgrind output momentarily



By: brook davis (mrgoby) 2007-11-15 12:25:28.000-0600

valgrind.txt attached...   malloc_debug.txt was empty, so omitted.

By: Rick North (ricknorth) 2007-11-21 07:11:09.000-0600

I'm getting the exact same problem. I just upgraded my kernel to 2.6.23.1-21.fc7 and the problem persists. If I don't send an email notification then asterisk if fine. If I do then the following occurs:

Disconnected from Asterisk server
Executing last minute cleanups
Asterisk ending (0).
/usr/sbin/safe_asterisk: line 117: 31029 Segmentation fault      (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >&/dev/${TTY} < /dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.
Automatically restarting Asterisk.
mpg123: no process killed

dmesg output:
asterisk[30939]: segfault at 00000000e080bb3d rip 00000000e080bb3d rsp 000000004077ee20 error 14

The voicemail still get's emailed which is strange.
I'm running asterisk 1.4.14

By: brook davis (mrgoby) 2007-11-30 08:48:15.000-0600

I've been having other problems with FC7 kernels lately.  I'm going to try a vanilla Linus kernel and see if that resolves the issue.   Will report back...

By: Tilghman Lesher (tilghman) 2007-12-14 09:30:21.000-0600

Okay, this valgrind.txt doesn't actually contain a memory free'ing error.  Could you try this again?

By: Tilghman Lesher (tilghman) 2007-12-27 17:41:40.000-0600

No response from reporter.  Reopen (or ask a bug marshal to) if this is still an issue.