Summary:ASTERISK-13597: IMAP segfault under load or multiple vmail users
Reporter:vbcrlfuser (vbcrlfuser)Labels:
Date Opened:2009-02-17 12:21:24.000-0600Date Closed:2009-02-17 18:57:51.000-0600
Versions:Frequency of
Environment:Attachments:( 0) bt-crash-a.txt
( 1) bt-crash-b.txt
( 2) bt-crash-c.txt
( 3) message.txt
Description:Using commercial version of DRUID based on Asterisk 1.4.22. The system randomly crashes but experience it under load or increased voicemail usage. Not getting support from them so asking the larger (and better) Asterisk crowd.

Crash always happens in libc-client (imap-2004g) where it appears to be receiving garbage in the IMAP reply. There also are always two threads involved. Attaching backtrace of three crash incidents and snippet of log file.

Can recreate this issue on system using pjsua and placing simultaneous calls to voice mail for different users. 3 users and 5 calls is all it took to segfault.

Hope someone can shed some light on to what this is. It is totally unacceptable for a production system environment.

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

place multiple calls to leave voicemail at phones


see attachments... included are backtrace from 3 crashes and snippet of message logs
Comments:By: vbcrlfuser (vbcrlfuser) 2009-02-17 12:32:04.000-0600

Oh yes and DRUID uses LDAP realtime if factors in somewhere

By: Leif Madsen (lmadsen) 2009-02-17 18:57:51.000-0600

Since this is a commercial version of DRUID (although I'd tell you the same thing with an open source version) please contact the maintainers of your application. Seems there is a bug tracker at http://bugs.voiceroute.org that you can report your issue against.

If you can reproduce this with a vanilla/stock version of Asterisk, then feel free to open a new bug.