[asterisk-bugs] [JIRA] (ASTERISK-23759) Crash when IMAP voicemail count reaches a high number of messages +250

Alejandro Rios P. (JIRA) noreply at issues.asterisk.org
Thu May 22 17:50:44 CDT 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Rios P. updated ASTERISK-23759:
-----------------------------------------

    Assignee: Rusty Newton  (was: Alejandro Rios P.)
      Status: Triage  (was: Waiting for Feedback)

> Crash when IMAP voicemail count reaches a high number of messages +250
> ----------------------------------------------------------------------
>
>                 Key: ASTERISK-23759
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23759
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_voicemail/IMAP
>    Affects Versions: SVN, 12.4.0
>         Environment: SVN URL: http://svn.asterisk.org/svn/asterisk/branches/12
> Revision: 414209
> CentOS release 6.4 (Final)
> # uname -a
> Linux  2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16 18:37:12 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
> # dovecot --version
> 2.0.13
>            Reporter: Alejandro Rios P.
>            Assignee: Rusty Newton
>            Severity: Critical
>         Attachments: full-backtrace-ASTERISK-23759, full-backtrace-ASTERISK-23759.txt, full-backtrace-dont-optimize-ASTERISK-23759.txt
>
>
> An Asterisk setup with IMAP works ok with the default value of "maxmsg=100" on voicemail.conf
> However, if I increase that value to a higher limit (maxmsg=400, for example), Asterisk crashes when reaching a voicemail count of about 250 to 280 messages (see the core dump and backtrace below)
> I have reproduced this issue with different asterisk versions (1.6.2.20, 12.0.0 and the latest asterisk 12 branch from SVN)
> **Message count for the test mailbox:
> # grep X-Asterisk-VM-Message-Num /home/imap_user/mail/19779362020 | tail -n 1
> X-Asterisk-VM-Message-Num: 257
> **Backtrace:
> {noformat}
> Core was generated by `/usr/local/asterisk_12branch_vdc400/sbin/asterisk -f -C /usr/l'.
> Program terminated with signal 11, Segmentation fault.
> #0  mail_open_work (d=0x7f39aa054f60, stream=0x101, 
>     name=0x7f39bc00f900 "{vms400:143/imap/authuser=asterisk/notls/user=19779362020}INBOX", options=0) at mail.c:1283
> 1283	    if ((stream->dtb == d) && (d->flags & DR_RECYCLE) &&
> Missing separate debuginfos, use: debuginfo-install audit-libs-2.2-2.el6.x86_64 glibc-2.12-1.132.el6.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.10.3-10.el6_4.6.x86_64 libcom_err-1.41.12-18.el6.x86_64 libgcc-4.4.7-4.el6.x86_64 libselinux-2.0.94-5.3.el6_4.1.x86_64 libstdc++-4.4.7-4.el6.x86_64 libuuid-2.17.2-12.14.el6.x86_64 libxml2-2.7.6-14.el6.x86_64 mysql-libs-5.1.71-1.el6.x86_64 ncurses-libs-5.7-3.20090208.el6.x86_64 nss-softokn-freebl-3.14.3-3.el6_4.x86_64 openssl-1.0.1e-16.el6_5.4.x86_64 pam-1.1.1-17.el6.x86_64 sqlite-3.6.20-1.el6.x86_64 zlib-1.2.3-29.el6.x86_64
> (gdb) 
> (gdb) 
> (gdb) 
> (gdb) 
> (gdb) bt
> #0  mail_open_work (d=0x7f39aa054f60, stream=0x101, 
>     name=0x7f39bc00f900 "{vms400:143/imap/authuser=asterisk/notls/user=19779312345}INBOX", options=0) at mail.c:1283
> #1  0x00007f39a9d789ee in mail_open (stream=0x101, 
>     name=0x7f39a8089a60 "{vms400:143/imap/authuser=asterisk/notls/user=19779312345}INBOX", options=0) at mail.c:1260
> #2  0x00007f39a9d3df68 in init_mailstream (vms=0x7f39bc01a390, box=1) at app_voicemail.c:2953
> #3  0x00007f39a9d3e7d3 in __messagecount (context=0x7f39a808a2ac "voicemail", mailbox=0x7f39a808a2a0 "19779312345", 
>     folder=<value optimized out>) at app_voicemail.c:2451
> #4  0x00007f39a9d3f007 in inboxcount2 (mailbox_context=<value optimized out>, urgentmsgs=0x7f39a808b2fc, newmsgs=0x7f39a8094e9c, 
>     oldmsgs=0x7f39a8094e98) at app_voicemail.c:2771
> #5  0x00007f39a9d3f590 in inboxcount (mailbox=<value optimized out>, newmsgs=0x7f39a8094e9c, oldmsgs=<value optimized out>)
>     at app_voicemail.c:5967
> #6  0x00007f39a9d5687e in leave_voicemail (chan=0x7f39980148a8, ext=<value optimized out>, options=0x7f39a8095050)
>     at app_voicemail.c:6616
> #7  0x00007f39a9d599b0 in vm_exec (chan=0x7f39980148a8, data=<value optimized out>) at app_voicemail.c:11648
> #8  0x0000000000546685 in ?? ()
> #9  0x0000000000000000 in ?? ()
> {noformat}



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



More information about the asterisk-bugs mailing list