[asterisk-bugs] [JIRA] (ASTERISK-24190) IMAP voicemail causes segfault

Walter Doekes (JIRA) noreply at issues.asterisk.org
Sat Aug 9 01:56:29 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=221498#comment-221498 ] 

Walter Doekes commented on ASTERISK-24190:
------------------------------------------

I worry about (more) memory leaking after the patch.

Unless another developer can say for sure where the freeing should be done, it'd be nice to get some MALLOC_DEBUG output.

https://wiki.asterisk.org/wiki/display/AST/MALLOC_DEBUG+Compiler+Flag
Primarily the {{memory atexit list}} after running a few {{voicemail show users for default}}.

> IMAP voicemail causes segfault
> ------------------------------
>
>                 Key: ASTERISK-24190
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24190
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_voicemail, Applications/app_voicemail/IMAP
>    Affects Versions: 11.11.0
>         Environment: Ubuntu 14.04.1
> Linux 3.13.0-32-generic  x86_64
>            Reporter: Nick Adams
>            Assignee: Matt Jordan
>            Severity: Critical
>         Attachments: backtrace.txt, issue24190_dynamic_msgarray2.patch, myDebugLog
>
>
> When using IMAP storage for Voicemail, I can reliably cause Asterisk to segfault. I noticed a number of random segfaults over the past few days and on further investigation, was able to reproduce it by running "voicemail show users for default". That produces the following segfault:
> {quote}Aug  8 07:50:10 timmy kernel: [1025781.678733] asterisk[20482]: segfault at 10d ip 00007fe97c22ab78 sp 00007fe8a0d09900 error 4 in libc-client.so.2007e.0[7fe97c1fb000+101000]{quote}
> This happens on multiple boxes so I've ruled out memory corruption or some other nastiness.
> voicemail.conf is at defaults except for:
> {quote}imapserver=mail.mydomain.com
> imapport=993
> imapgreetings=yes
> greetingsfolder=INBOX.Voicemail
> imapparentfolder=INBOX.
> imapfolder=INBOX.Voicemail
> imapflags=ssl
> [default]
> 0400000000 => 0400000000,Some User,,,attach=yes|imapuser=user at mydomain.com|imappassword=PASSWORD
> {quote}
> The relevant INBOX.Voicemail IMAP folder has about 300 voicemails in it. I think this may be related to users having forwarded messages out of those folders resulting in additional IMAP flags being added - though I can't be sure.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list