<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=313485916-02102007>I have
been testing with asterisk 1.4.11 and have found a segmentation fault while
using voicemail.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=313485916-02102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=313485916-02102007>It
happens when I try to forward a voicemail. As soon as I press the option the
server crashes.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=313485916-02102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=313485916-02102007>I ran
asterisk up inside gdb and got the following stack trace</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=313485916-02102007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=313485916-02102007>====================================================================</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=313485916-02102007>Program received signal SIGSEGV, Segmentation
fault.<BR>0x00140adf in CI_read_fields () from /usr/lib/libodbcpsql.so<BR>(gdb)
bt<BR>#0 0x00140adf in CI_read_fields () from
/usr/lib/libodbcpsql.so<BR>#1 0x001594dc in QR_fetch_tuples () from
/usr/lib/libodbcpsql.so<BR>#2 0x0014255e in CC_send_query () from
/usr/lib/libodbcpsql.so<BR>#3 0x0015c87c in SC_execute () from
/usr/lib/libodbcpsql.so<BR>#4 0x0014bd60 in PG_SQLExecute () from
/usr/lib/libodbcpsql.so<BR>#5 0x0014bf4d in SQLExecute () from
/usr/lib/libodbcpsql.so<BR>#6 0x00356cf7 in SQLExecute () from
/usr/lib/libodbc.so.1<BR>#7 0x00128e76 in ast_odbc_prepare_and_execute
(obj=0x86e76e0, prepare_cb=0x113120 <custom_prepare>, data=0xb7d83794) at
res_odbc.c:96<BR>#8 0x00113511 in realtime_odbc (database=0xb7d838ec
"asterisk", table=0xb7d837ec "miniminder.voicemail_users", ap=0xb7d83a04
"C�B")<BR> at res_config_odbc.c:148<BR>#9 0x0808c4c7
in ast_load_realtime (family=0x42b12d "voicemail") at config.c:1327<BR>#10
0x0041de88 in find_user (ivm=0xb7d8df60, context=0xb7d8e3cb "miniminder",
mailbox=0xb7d8e3c4 "123456") at app_voicemail.c:717<BR>#11 0x0041e5b3 in
leave_voicemail (chan=0x878be98, ext=0xb7d9005a "<A
href="mailto:123456@miniminder">123456@miniminder</A>", options=0xb7d900fc) at
app_voicemail.c:2804<BR>#12 0x00425b13 in advanced_options (chan=0x878be98,
vmu=0xb7d972c8, vms=0xb7d90208, msg=0, option=1, record_gain=0 '\0') at
app_voicemail.c:8111<BR>#13 0x00429ab4 in vm_execmain (chan=0x878be98,
data=0xb7d9bf28) at app_voicemail.c:6630<BR>#14 0x080c587e in
pbx_extension_helper (c=0x878be98, con=0x0, context=0x878c018 "miniminder",
exten=0x878c068 "2000", priority=1, label=0x0, <BR>
callerid=0x878c358 "123456", action=E_SPAWN) at pbx.c:532<BR>#15 0x080c7566 in
__ast_pbx_run (c=0x878be98) at pbx.c:2288<BR>#16 0x080c850e in pbx_thread
(data=0x878be98) at pbx.c:2603<BR>#17 0x080f3dbb in dummy_start (data=0x878c8b0)
at utils.c:775<BR>#18 0x007d945b in start_thread () from
/lib/libpthread.so.0<BR>#19 0x0067c23e in clone () from /lib/libc.so.6<BR>(gdb)
step<BR>Single stepping until exit from function CI_read_fields, <BR>which has
no line number information.<BR>[Stepped over thread exit]</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=313485916-02102007>Program terminated with signal SIGSEGV, Segmentation
fault.<BR>The program no longer exists.<BR><SPAN
class=313485916-02102007>====================================================================</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=313485916-02102007><SPAN
class=313485916-02102007></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=313485916-02102007><SPAN
class=313485916-02102007>Which suggests to me that the problem is in
libodbcpgsql, although it might be that asterisk is passing it a bad request. I
am using version 2.2.11 of unixODBC and version 8.01.0200 of
postgresql-odbc.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=313485916-02102007><SPAN
class=313485916-02102007></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=313485916-02102007><SPAN
class=313485916-02102007>Can anybody suggest how to take this
further?</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<P class=Section1 align=left><B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Steve Hindmarch</SPAN></B><SPAN
style="FONT-FAMILY: Arial"> </SPAN> </P>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV></BODY></HTML>