[Home]

Summary:ASTERISK-10321: app_voicemail dumps core
Reporter:Arcadiy Ivanov (arcivanov)Labels:
Date Opened:2007-09-17 12:14:33Date Closed:2007-09-17 15:01:12
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:(gdb) backtrace
#0  0xb7dfa444 in strftime_l () from /lib/libc.so.6
#1  0xb7df8eff in strftime () from /lib/libc.so.6
#2  0xb71282ee in leave_voicemail (chan=0x8203eb0, ext=<value optimized out>, options=0xb6f1de3c) at app_voicemail.c:2054
#3  0xb7129708 in vm_exec (chan=0x8203eb0, data=0xb6f21f28) at app_voicemail.c:6975
#4  0x080c838a in ?? ()


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

In my setup someone just attempts to leave a voicesmail.
Comments:By: Arcadiy Ivanov (arcivanov) 2007-09-17 12:20:23

I have a core file I would like to upload but can't due to mantis error (max_packet exceeded)

By: Mark Michelson (mmichelson) 2007-09-17 12:34:21

It looks like you have compiled with optimizations. Please reproduce this using the DONT_OPTIMIZE compiler flag from menuselect. When you have, please upload another bt and a bt full.

Thanks for bringing this to our attention!

Oh, and there's never a need to upload core files. They aren't useful an any other system than the one where the crash occurred.

By: Arcadiy Ivanov (arcivanov) 2007-09-17 13:30:58

I won't be able to do that, since I can't reproduce the segfault WITHOUT optimizations.

By: Digium Subversion (svnbot) 2007-09-17 14:41:46

Repository: asterisk
Revision: 82644

------------------------------------------------------------------------
r82644 | russell | 2007-09-17 14:41:45 -0500 (Mon, 17 Sep 2007) | 6 lines

Initialize some memory to fix crashes when leaving voicemail.  This problem
was fixed by running Asterisk under valgrind.
(closes issue ASTERISK-10321, reported by arcivanov, patched by me)

*** IMPORTANT NOTE:  We need to check to see if this same bug exists elsewhere.

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

By: Digium Subversion (svnbot) 2007-09-17 14:51:44

Repository: asterisk
Revision: 82660

------------------------------------------------------------------------
r82660 | russell | 2007-09-17 14:51:43 -0500 (Mon, 17 Sep 2007) | 14 lines

Merged revisions 82644 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82644 | russell | 2007-09-17 15:00:32 -0500 (Mon, 17 Sep 2007) | 6 lines

Initialize some memory to fix crashes when leaving voicemail.  This problem
was fixed by running Asterisk under valgrind.
(closes issue ASTERISK-10321, reported by arcivanov, patched by me)

*** IMPORTANT NOTE:  We need to check to see if this same bug exists elsewhere.

........

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

By: Digium Subversion (svnbot) 2007-09-17 14:57:45

Repository: asterisk
Revision: 82676

------------------------------------------------------------------------
r82676 | russell | 2007-09-17 14:57:45 -0500 (Mon, 17 Sep 2007) | 4 lines

Put a memset in ast_localtime() instead of a couple places in app_voicemail
to prevent the problem everywhere instead of just a couple of places.
(related to issue ASTERISK-10321)

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

By: Digium Subversion (svnbot) 2007-09-17 15:01:12

Repository: asterisk
Revision: 82678

------------------------------------------------------------------------
r82678 | russell | 2007-09-17 15:01:12 -0500 (Mon, 17 Sep 2007) | 12 lines

Merged revisions 82676 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82676 | russell | 2007-09-17 15:16:25 -0500 (Mon, 17 Sep 2007) | 4 lines

Put a memset in ast_localtime() instead of a couple places in app_voicemail
to prevent the problem everywhere instead of just a couple of places.
(related to issue ASTERISK-10321)

........

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