I'm encountering some segfaults while running Asterisk, about 2 times a day on a fairly low use server. It has been statically compiled with c-client.

I'm using the following versions:

Asterisk 1.4.11 (which IMAP_STORE enabled for app_voicemail)
c-client from version imap-2006k.DEV.SNAP-0709111641
I'm connecting to cyrus-imap version 2.3.8 on the same server

I should note that I've modified the app_voicemail.c (in Asterisk) file slightly, which was necessary for use with cyrus.

After each crash, Asterisk restarts automatically (using asterisk_safe), so the problem doesn't hold over through the restart.

The tailend of the output from gdb and the core file is below (all core files indicate a crash at the same point).

Any pointers in fixing this would be greatly appreciated.

=======================
Core was generated by `/usr/sbin/asterisk -f -p -U asterisk -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
#0 0xb6c8696f in mail_open_work (d=0xb6d50dc0, stream=0x101, name=0x831fee0 "{127.0.0.1:143/imap/authuser=umsmaster/novalidate-cert/user=9183699999}INBOX", options=0)
    at mail.c:1271
1271        if ((stream->dtb == d) && (d->flags & DR_RECYCLE) &&
(gdb) bt
#0 0xb6c8696f in mail_open_work (d=0xb6d50dc0, stream=0x101, name=0x831fee0 "{127.0.0.1:143/imap/authuser=umsmaster/novalidate-cert/user=9183699999}INBOX", options=0)
    at mail.c:1271
#1 0xb6c8c12d in mail_open (stream=0x101, name=0xb634337b "{127.0.0.1:143/imap/authuser=umsmaster/novalidate-cert/user=9183699999}INBOX", options=<value optimized out>)
    at mail.c:1248
#2 0xb6c5b79c in init_mailstream (vms=0x8266f70, box=1) at app_voicemail.c:4715 #3 0xb6c65b32 in messagecount (context=0xb6ce20a3 "default", mailbox=0xb634fa00 "9183699999", folder=0xb6ce17d1 "Old") at app_voicemail.c:2430 #4 0xb6c666ee in inboxcount (mailbox_context=0xb634fa00 "9183699999", newmsgs=0xb634fda8, oldmsgs=0xb634fda4) at app_voicemail.c:2522 #5 0xb6c69825 in leave_voicemail (chan=0x8255170, ext=<value optimized out>, options=0xb634ff0c) at app_voicemail.c:2961 #6 0xb6c6b6f2 in vm_exec (chan=0x8255170, data=0xb6353ff8) at app_voicemail.c:7019 #7 0x080a9d07 in pbx_exec (c=0x8255170, app=0x8209100, data=0xb6353ff8) at pbx.c:532 #8 0x080ae5b3 in pbx_extension_helper (c=0x8255170, con=<value optimized out>, context=0x82552f0 "vmserv", exten=0x8255340 "s", priority=30, label=0x0,
    callerid=0x8255790 "9189024095", action=E_SPAWN) at pbx.c:1833
#9  0x080afc5e in __ast_pbx_run (c=0x8255170) at pbx.c:2388
#10 0x080b0e2e in pbx_thread (data=0x8255170) at pbx.c:2603
#11 0x080d4ec2 in dummy_start (data=0x8256f58) at utils.c:775
#12 0xb7f86240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#13 0xb7ea13de in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb)
=======================

--
Dan White <[EMAIL PROTECTED]>
BTC Broadband
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to