[Home]

Summary:ASTERISK-13249: asterisk crashes when voicemail app finish to write a message
Reporter:samael (samael)Labels:
Date Opened:2008-12-19 10:02:42.000-0600Date Closed:2011-06-07 14:00:37
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) bt_full_of_issue_0014115.txt
( 1) bt_of_issue_0014115.txt
( 2) gdb.txt
Description:When voicemail app finish to write a message Asterisk crash.

This message appears in /var/log/messages when the pbx crash .

Dec 19 14:15:47 centralita kernel: asterisk[26571]: segfault at 0000000041112058 rip 00000000004a25d1 rsp 0000000041112060 error 6

Dump file attachment filtering with gdb bug trace.

The asterisk is running on:
CentOS release 5.2 (Final)
Linux kernel: 2.6.18-92.1.10.el5.
64bits server: x86_64 x86_64 x86_64


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

Core was generated by `/usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000004a25d1 in tzload (name=0x4f71cf "posixrules", sp=0x414f0200, doextend=0) at stdtime/localtime.c:299
299                             if ((strlen(p) + strlen(name) + 1) >= sizeof fullname)
Comments:By: Tilghman Lesher (tilghman) 2008-12-19 11:40:10.000-0600

Reading symbols from /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so...done.
Loaded symbols for /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so

Here's your problem.  We do not support res_perl.so, as it is frequently a source of crashes.

By: samael (samael) 2009-01-09 05:57:39.000-0600

I don't use res_perl.so . I think that shouldn't be the problem .


centralita*CLI> show modules like perl
Module                         Description                              Use Count
0 modules loaded

By: Tilghman Lesher (tilghman) 2009-01-09 12:53:38.000-0600

Okay, then I need a 'bt' and a 'bt full' on this backtrace.

By: samael (samael) 2009-01-13 03:02:03.000-0600

Attach files with the required data ( 'bt' and 'bt full' ).

It seems a memory problem, but the server has ECC memory with error correction and we have a monitoring tool that notifies us by email if this happens.

By: Matt Riddell (zx81) 2009-01-13 12:49:16.000-0600

You may want to recompile with DONT_OPTIMIZE - most of the values have been optimized out

By: Tilghman Lesher (tilghman) 2009-01-13 13:21:29.000-0600

I also need the WHOLE output of 'bt full', not just the first frame.

By: samael (samael) 2009-01-28 07:06:53.000-0600

Hi all,

The problem of asterisk crashing persist after the voicemail is executed.
After the crash, 2 files are generated in /tmp/:
astmail-nGgzOj (with 0 bytes)
core.3366

Please, find attached the full output of the core dump file.

It's shown the gdb output following the voip-info.org steps:
http://www.voip-info.org/wiki-Asterisk+debugging

tracing a core dump file in /tmp
  1. start Asterisk with safe_asterisk
  2. enter "gdb asterisk core.xxxx"
  3. enter "bt" while in gdb (or do a "bt full")
  4. enter "thread apply all bt"

Thanks in advance

By: Tilghman Lesher (tilghman) 2009-02-09 14:43:55.000-0600

As ZX81 correctly noted, you'll need to recompile with DONT_OPTIMIZE so that stack values aren't removed for optimization.

By: Tilghman Lesher (tilghman) 2009-02-23 15:21:25.000-0600

No response from reporter.