<span class="postbody">Hi ALL, 
<br>

<br>
When i was accessing the voice message it suddenly goes dead and after
that i couldn&#39;t able to retrieve the voicemessage again from my mailbox
. This happens once in a while for any configured mailboxes <br>

<br>
I am using the following system configuration. 
<br>

<br>
asterisk 1.4.22.1 
<br>
odbc storage of voicemail messages 
<br>
centos 5.2 64bit 
<br>
unixODBC-2.2.11-7.1 
<br>
mysql-connector-odbc-3.51.12-2.2 
<br>
mysql-server-5.0.45-7.el5 
<br>

<br>
Following are the traces i found while troubleshooting the issue. 
<br>

<br>
1) I found a .lock file created in the INBOX folder of my mailbox 
<br>
2) The following core dump gets created during the first time the voicemessage access got failed. 
<br>

<br><b>
(gdb) bt 
<br><br></b>#0  0x000000322b417649 in SQLFreeEnv () from /usr/lib64/libodbc.so.1<br>#1  0x000000322b417b5c in SQLFreeHandle () from /usr/lib64/libodbc.so.1<br>#2  0x00002aaac132ccdd in message_exists (dir=&lt;value optimized out&gt;, msgnum=&lt;value optimized out&gt;)<br>
   from /usr/lib/asterisk/modules/app_voicemail.so<br>#3  0x00002aaac132dab2 in save_to_folder (vmu=0x41751e80, vms=&lt;value optimized out&gt;, msg=0, box=&lt;value optimized out&gt;)<br>   from /usr/lib/asterisk/modules/app_voicemail.so<br>
#4  0x00002aaac132dc77 in close_mailbox (vms=0x4174bd60, vmu=0x41751e80) from /usr/lib/asterisk/modules/app_voicemail.so<br>#5  0x00002aaac1341b43 in vm_execmain (chan=0x2aaab42abe30, data=&lt;value optimized out&gt;)<br>
   from /usr/lib/asterisk/modules/app_voicemail.so<br>#6  0x0000000000481e2d in pbx_extension_helper (c=0x2aaab42abe30, con=&lt;value optimized out&gt;,<br>    context=0x2aaab42ac080 &quot;staff-international&quot;, exten=0x2aaab42ac0d0 &quot;*97&quot;, priority=106, label=&lt;value optimized out&gt;,<br>
    callerid=0xbff51d0 &quot;1369&quot;, action=E_SPAWN) at pbx.c:537<br>#7  0x0000000000483b66 in __ast_pbx_run (c=0x2aaab42abe30) at pbx.c:2317<br>#8  0x0000000000484849 in pbx_thread (data=0x322b663b40) at pbx.c:2621<br>
#9  0x00000000004aef5c in dummy_start (data=&lt;value optimized out&gt;) at utils.c:912<br>#10 0x000000322b006307 in start_thread () from /lib64/libpthread.so.0<br>#11 0x000000322a4d1ded in clone () from /lib64/libc.so.6<br>
<br>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
<b>(gdb)bt full<br></b><br>#0  0x000000322b417649 in SQLFreeEnv () from /usr/lib64/libodbc.so.1<br>#1  0x000000322b417b5c in SQLFreeHandle () from /usr/lib64/libodbc.so.1<br>#2  0x00002aaac132ccdd in message_exists (dir=&lt;value optimized out&gt;, msgnum=&lt;value optimized out&gt;)<br>
   from /usr/lib/asterisk/modules/app_voicemail.so<br>#3  0x00002aaac132dab2 in save_to_folder (vmu=0x41751e80, vms=&lt;value optimized out&gt;, msg=0, box=&lt;value optimized out&gt;)<br>   from /usr/lib/asterisk/modules/app_voicemail.so<br>
#4  0x00002aaac132dc77 in close_mailbox (vms=0x4174bd60, vmu=0x41751e80) from /usr/lib/asterisk/modules/app_voicemail.so<br>#5  0x00002aaac1341b43 in vm_execmain (chan=0x2aaab42abe30, data=&lt;value optimized out&gt;)<br>
   from /usr/lib/asterisk/modules/app_voicemail.so<br>#6  0x0000000000481e2d in pbx_extension_helper (c=0x2aaab42abe30, con=&lt;value optimized out&gt;,<br>    context=0x2aaab42ac080 &quot;staff-international&quot;, exten=0x2aaab42ac0d0 &quot;*97&quot;, priority=106, label=&lt;value optimized out&gt;,<br>
    callerid=0xbff51d0 &quot;1369&quot;, action=E_SPAWN) at pbx.c:537<br>#7  0x0000000000483b66 in __ast_pbx_run (c=0x2aaab42abe30) at pbx.c:2317<br>#8  0x0000000000484849 in pbx_thread (data=0x322b663b40) at pbx.c:2621<br>
#9  0x00000000004aef5c in dummy_start (data=&lt;value optimized out&gt;) at utils.c:912<br>#10 0x000000322b006307 in start_thread () from /lib64/libpthread.so.0<br>#11 0x000000322a4d1ded in clone () from /lib64/libc.so.6<br>
(gdb) bt full<br>#0  0x000000322b417649 in SQLFreeEnv () from /usr/lib64/libodbc.so.1<br>No symbol table info available.<br>#1  0x000000322b417b5c in SQLFreeHandle () from /usr/lib64/libodbc.so.1<br>No symbol table info available.<br>
#2  0x00002aaac132ccdd in message_exists (dir=&lt;value optimized out&gt;, msgnum=&lt;value optimized out&gt;)<br>   from /usr/lib/asterisk/modules/app_voicemail.so<br>        x = 1<br>        stmt = (SQLHSTMT) 0xbf45620<br>
        sql = &quot;SELECT COUNT(*) FROM voicemessages WHERE dir=? AND msgnum=?\000\000\000\000\000`}tA\000\000\000\000\225-N\000\000\000\000\000(\000\000\0000\000\000\000ТtA\000\000\000\000à¡tA\000\000\000\000\032\224F*2\000\000\000\001\200­û\000\000\000\000Ø\226#\f\000\000\000\000Ø\226#\f\000\000\000\000Ø\226#\f\000\000\000\000Ø\226#\f\000\000\000\000\003\227#\f\000\000\000\000\212\227#\f\000\000\000\000Ø\226#\f\000\000\000\000\212\227#\f&quot;, &#39;\0&#39; &lt;repeats 52 times&gt;, &quot;¨þH*2\000\000\000@Þ&quot;...<br>
        rowdata = &quot;1\000k/voicemail/admin/&quot;<br>        msgnums = &quot;31\000\000\000\000\000\000¦-N\000\000\000\000\000/var&quot;<br>        argv = {0x41748c10 &quot;/var/spool/asterisk/voicemail/admin/1369/Delete&quot;, 0x41748b70 &quot;31&quot;}<br>
        gps = {sql = 0x41747b50 &quot;SELECT COUNT(*) FROM voicemessages WHERE dir=? AND msgnum=?&quot;, argc = 2, argv = 0x41748bb0}<br>        obj = (struct odbc_obj *) 0xbc0a860<br>        __PRETTY_FUNCTION__ = &quot;message_exists&quot;<br>
#3  0x00002aaac132dab2 in save_to_folder (vmu=0x41751e80, vms=&lt;value optimized out&gt;, msg=0, box=&lt;value optimized out&gt;)<br>   from /usr/lib/asterisk/modules/app_voicemail.so<br>        dir = 0x4174be50 &quot;/var/spool/asterisk/voicemail/admin/1369/INBOX&quot;<br>
        username = 0x4174bdb0 &quot;1369&quot;<br>        context = &lt;value optimized out&gt;<br>        sfn = &quot;/var/spool/asterisk/voicemail/admin/1369/INBOX/msg0000\000\000°­tA\000\000\000\000æ®tA\000\000\000\000\006¯tA\000\000\000\000À®tA\000\000\000\000\020í\004\f\000\000\000\000Í\000\024\003[\000\027ÿB\000P\000ìÿóÿ·ÿº\000\003\000a\000\001\000ýÿËÿÕÿ\016\000@\000e\000ôÿ\231\000\\\000\004\000\002\000éÿÈÿ$\000¯\000U\000;\000¤ÿ»ÿ.\000Ûÿ·ÿ»ÿkÿ\231ÿüÿ½þ\214þ\033ÿ6ÿ¶þ&#39;\000\201\0003ÿÍ\000\024\003\203\000\027ÿB\000&quot;...<br>
        dfn = &quot;/var/spool/asterisk/voicemail/admin/1369/Delete/msg0031\000æ\224ÿ\v\000\000\000\000è\224ÿ\v\000\000\000\000ê\224ÿ\v\000\000\000\000ì\224ÿ\v\000\000\000\000î\224ÿ\v\000\000\000\000ð\224ÿ\v\000\000\000\000ò\224ÿ\v\000\000\000\0003\2133[Ì,h&amp; \237\a´ª*\000\0000¾*´ª*\000\000\000\000\000\000\000\000\000\000Ð6#\f\000\000\000\000\b(,\f\000\000\000\000\b(,\f\000\000\000\000\037½§¾ª*\000\000.\237tA\000\000\000\000iú+¿ª*\000\000P³)´ª*\000\000&quot;...<br>
        ddir = &quot;/var/spool/asterisk/voicemail/admin/1369/Delete\000@\000\000\000\000\000\000\000\0371D*2\000\000\000°\222tA\000\000\000\000DÞF*2\000\000\000Ð\215tA\000\000\000\0000\223tA\000\000\000\000LVN\000\000\000\000\000LVN\000\000\000\000\000ð·tA\000\000\000\000JVN\000\000\000\000\000\000\223tA\000\000\000\000\002\000\000\000\000\000\000\000\020\216tA\000\000\000\000\000\000\000\000@&quot;, &#39;\0&#39; &lt;repeats 11 times&gt;, &quot;ÿÿÿÿÿÿÿÿKVN\000\000\000\000\000JVN&quot;, &#39;\0&#39; &lt;repeats 13 times&gt;, &quot;¸\221tA&quot;...<br>
        x = 31<br>        __PRETTY_FUNCTION__ = &quot;save_to_folder&quot;<br>#4  0x00002aaac132dc77 in close_mailbox (vms=0x4174bd60, vmu=0x41751e80) from /usr/lib/asterisk/modules/app_voicemail.so<br>        x = 0<br>        res = &lt;value optimized out&gt;<br>
        __PRETTY_FUNCTION__ = &quot;close_mailbox&quot;<br>#5  0x00002aaac1341b43 in vm_execmain (chan=0x2aaab42abe30, data=&lt;value optimized out&gt;)<br>   from /usr/lib/asterisk/modules/app_voicemail.so<br>        opts = {0xbe5a108 &quot;VoiceMailMain&quot;, 0x1b &lt;Address 0x1b out of bounds&gt;}<br>
---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---<br>        args = {argc = 1, argv = 0x41752928, argv0 = 0x4174bcc0 &quot;1369&quot;, argv1 = 0x0}<br>        res = -1<br>        cmd = 0<br>        valid = 1<br>
        u = (struct ast_module_user *) 0xbfcfcf0<br>        prefixstr = &#39;\0&#39; &lt;repeats 79 times&gt;<br>        ext_context = &#39;\0&#39; &lt;repeats 255 times&gt;<br>        useadsi = 0<br>        skipuser = 1098195280<br>
        vms = {curbox = &quot;INBOX&quot;, &#39;\0&#39; &lt;repeats 74 times&gt;, username = &quot;1369&quot;, &#39;\0&#39; &lt;repeats 75 times&gt;,<br>  context = &#39;\0&#39; &lt;repeats 79 times&gt;, curdir = &quot;/var/spool/asterisk/voicemail/admin/1369/INBOX&quot;, &#39;\0&#39; &lt;repeats 4049 times&gt;,<br>
  vmbox = &quot;vm-INBOX&quot;, &#39;\0&#39; &lt;repeats 4087 times&gt;,<br>  fn = &quot;/var/spool/asterisk/voicemail/admin/1369/INBOX/msg0000&quot;, &#39;\0&#39; &lt;repeats 4041 times&gt;,<br>  fn2 = &quot;/var/spool/asterisk/voicemail/admin/1369/INBOX/msg0000&quot;, &#39;\0&#39; &lt;repeats 4041 times&gt;, deleted = 0xbf44770,<br>
  heard = 0xc16d6a0, curmsg = -1, lastmsg = 0, newmessages = 0, oldmessages = 23, starting = 0, repeats = 0}<br>        vmu = (struct ast_vm_user *) 0x41751e80<br>        vmus = {context = &quot;admin&quot;, &#39;\0&#39; &lt;repeats 74 times&gt;, mailbox = &quot;1369&quot;, &#39;\0&#39; &lt;repeats 75 times&gt;,<br>
  password = &quot;1234&quot;, &#39;\0&#39; &lt;repeats 75 times&gt;, fullname = &quot;HR Temp&quot;, &#39;\0&#39; &lt;repeats 72 times&gt;,<br>  email = &#39;\0&#39; &lt;repeats 79 times&gt;, pager = &#39;\0&#39; &lt;repeats 79 times&gt;, serveremail = &#39;\0&#39; &lt;repeats 79 times&gt;,<br>
  mailcmd = &#39;\0&#39; &lt;repeats 159 times&gt;, language = &#39;\0&#39; &lt;repeats 19 times&gt;, zonetag = &#39;\0&#39; &lt;repeats 79 times&gt;,<br>  callback = &#39;\0&#39; &lt;repeats 79 times&gt;, dialout = &#39;\0&#39; &lt;repeats 79 times&gt;, uniqueid = &#39;\0&#39; &lt;repeats 79 times&gt;,<br>
  exit = &#39;\0&#39; &lt;repeats 79 times&gt;, attachfmt = &#39;\0&#39; &lt;repeats 19 times&gt;, flags = 608, saydurationm = 2, maxmsg = 100,<br>  volgain = 0, list = {next = 0x0}}<br>        context = 0x4174bcc5 &quot;admin&quot;<br>
        silentexit = 0<br>        flags = {flags = 0}<br>        record_gain = 0 &#39;\0&#39;<br>        play_auto = 0<br>        play_folder = 0<br>        __PRETTY_FUNCTION__ = &quot;vm_execmain&quot;<br>#6  0x0000000000481e2d in pbx_extension_helper (c=0x2aaab42abe30, con=&lt;value optimized out&gt;,<br>
    context=0x2aaab42ac080 &quot;staff-international&quot;, exten=0x2aaab42ac0d0 &quot;*97&quot;, priority=106, label=&lt;value optimized out&gt;,<br>    callerid=0xbff51d0 &quot;1369&quot;, action=E_SPAWN) at pbx.c:537<br>
        e = &lt;value optimized out&gt;<br>        app = (struct ast_app *) 0xbe5a0e0<br>        res = &lt;value optimized out&gt;<br>        q = {incstack = {0xc46cc48 &quot;&quot;, 0xc3467e8 &quot;&quot;, 0xc475fd8 &quot;&quot;, 0xc34a768 &quot;&quot;, 0xbddfad8 &quot;&quot;, 0xc316828 &quot;broadcast&quot;,<br>
    0xc360928 &quot;&quot;, 0xc361028 &quot;&quot;, 0xc3619a8 &quot;&quot;, 0xc362178 &quot;&quot;, 0xc362ae8 &quot;&quot;, 0xc362fb8 &quot;&quot;, 0xc363e48 &quot;&quot;, 0xc348338 &quot;&quot;,<br>    0xc349a08 &quot;&quot;, 0xc4f4478 &quot;&quot;, 0x0 &lt;repeats 112 times&gt;}, stacklen = 16, status = 5, swo = 0x0, data = 0x0,<br>
  foundcontext = 0xc46d423 &quot;&quot;}<br>        passdata = &quot;1369@admin&quot;, &#39;\0&#39; &lt;repeats 8181 times&gt;<br>        matching_action = &lt;value optimized out&gt;<br>        __PRETTY_FUNCTION__ = &quot;pbx_extension_helper&quot;<br>
#7  0x0000000000483b66 in __ast_pbx_run (c=0x2aaab42abe30) at pbx.c:2317<br>---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---<br>        waittime = &lt;value optimized out&gt;<br>        dst_exten = &quot;\000\000\000\000\000\000\000\000HpuA&quot;, &#39;\0&#39; &lt;repeats 20 times&gt;, &quot;ppuA&quot;, &#39;\0&#39; &lt;repeats 28 times&gt;, &quot;\030&quot;, &#39;\0&#39; &lt;repeats 15 times&gt;, &quot;PpuA\000\000\000\000XpuA\000\000\000\000`puA\000\000\000\000hpuA\000\000\000\000xpuA&quot;, &#39;\0&#39; &lt;repeats 12 times&gt;, &quot;\200puA\000\000\000\000$Ç\000+2&quot;, &#39;\0&#39; &lt;repeats 27 times&gt;, &quot; ét*2&quot;, &#39;\0&#39; &lt;repeats 11 times&gt;, &quot;@/n\f\000\000\000\000À\000\002\000\000\000\000\000\030\000\000\000\000\000\000\000 ét*2\000\000\000³+G*2&quot;, &#39;\0&#39; &lt;repeats 11 times&gt;, &quot;°Õþ\v\000\000\000\000PD\&quot;´ª*\000\000\000\000\000\000\000\000&quot;...<br>
        pos = 1098215488<br>        digit = 0<br>        found = 1<br>        res = 0<br>        error = &lt;value optimized out&gt;<br>        __PRETTY_FUNCTION__ = &quot;__ast_pbx_run&quot;<br>#8  0x0000000000484849 in pbx_thread (data=0x322b663b40) at pbx.c:2621<br>
No locals.<br>#9  0x00000000004aef5c in dummy_start (data=&lt;value optimized out&gt;) at utils.c:912<br>        __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {46912654951504, 1544153348009866706, 0, 1098217792,<br>
        4910848, 4096, 1544153346949956930, 1544153348004993680}, __mask_was_saved = 0}}, __pad = {0x417571d0, 0x0,<br>    0x322a749880, 0x322a749888}}<br>        __cancel_arg = (void *) 0x41757940<br>        not_first_call = &lt;value optimized out&gt;<br>
        ret = &lt;value optimized out&gt;<br>#10 0x000000322b006307 in start_thread () from /lib64/libpthread.so.0<br>No symbol table info available.<br>#11 0x000000322a4d1ded in clone () from /lib64/libc.so.6<br>No symbol table info available.<br>
<br><br>

<br>
Can any one please help me to trace down the issue using the core dump. 
<br>

<br>
Thanks in advance. 
<br>

<br>
vimurli</span><br clear="all"><br>-- <br>always   with    smile<br>