Summary:ASTERISK-16681: Crash on "voicemail show users for default"
Reporter:yema (yem)Labels:
Date Opened:2010-09-15 09:15:24Date Closed:2011-05-05 15:31:20
Versions:Frequency of
Environment:Attachments:( 0) backtrace.txt
( 1) backtrace2.txt
Description:I can reproduce consistently on 2 identical machines.
The system runs on a SMP machine (dual XEON).
The OS is Debian Lenny (stable).

From the asterisk console, if I issue a  "voicemail show users for default", asterisk crashes and the system logs show:
Sep 15 09:29:46 voipprod kernel: asterisk[12365]: segfault at 4157eff0 ip 00007f0ff874dc35 sp 000000004157efd0 error 6 in libc-2.7.so[7f0ff86d8000+14a000]

Note that voicemail, sip, and extensions are configured from a mysql database (realtime). There's approximately 1600 voicemail boxes setup.

For a test I disabled voicemail realtime, and added all the voicemail accounts in voicemail.conf, and the crash *doesn't* occur.

I suspect it has something to do with the console, as I have been able to make it crash (but not consistently) also by doing a dialplan reload (14531 extensions (36372 priorities) in 62 contexts).
If I leave the system alone (not logging on the console), it'll run normally with no crashes whatsoever.


Anyone able to reproduce this ?
As this is one of my productions systems, I can't really mess around with it ...
It happened on and
Comments:By: Leif Madsen (lmadsen) 2010-09-16 09:09:16

Thank you for your bug report. In order to move your issue forward, we require a backtrace from the core file produced after the crash. Please see the doc/backtrace.txt file in your Asterisk source directory.

Also, be sure you have DONT_OPTIMIZE enabled in menuselect within the Compiler Flags section, then:

make install

after enabling, reproduce the crash, and then execute the instructions in doc/backtrace.txt.

When complete, attach that file to this issue report. Thanks!

By: yema (yem) 2010-09-16 11:12:17

To add to that. The same thing occurs on an older version I have running ( If there are just a few voicemail accounts in the DB, it's fine, if I add many accounts (1000+), it crashes consistently.

By: yema (yem) 2010-09-16 11:32:55

Also happens on with addons

By: yema (yem) 2010-09-22 09:34:26

I disabled Realtime completly on the system, and although I can't force it to crash anymore with "voicemail show users for default", it did crash on it's own with the folowwing message in the logs: asterisk[16360]: segfault at 9 ip 00000000004a12d8 sp 0000000043fef8c0 error 4 in asterisk[400000+180000]

By: yema (yem) 2010-09-30 15:53:33

I'm attaching another backtrace (backtrace2.txt) of the same crash happening on asterisk 1.8.0rc2 (when issuing a "voicemail show users for default").

By: Sean Bright (seanbright) 2011-05-05 15:31:20

This was fixed with issue 19090:

asterisk-addons/branches/1.6.2 r1151
asterisk/branches/1.8 r317370
asterisk/trunk r317377