[asterisk-bugs] [Asterisk 0010973]: several crashes in Trunk using cdr_odbc and func_odbc with SQL Server. fretds 0.64 (latest)

noreply at bugs.digium.com noreply at bugs.digium.com
Sun Oct 14 22:44:08 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10973 
====================================================================== 
Reported By:                falves11
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   10973
Category:                   CDR/cdr_odbc
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 85058 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             10-14-2007 00:02 CDT
Last Modified:              10-14-2007 22:44 CDT
====================================================================== 
Summary:                    several crashes in Trunk using cdr_odbc and
func_odbc with SQL Server. fretds 0.64 (latest)
Description: 
http://bugs.digium.com/view.php?id=0  0xb6f11ab1 in tds_open_socket (tds=0x0,
ip_addr=0x0, port=0, timeout=0)
at net.c:242
242                             tds_client_msg(tds->tds_ctx, tds, 20003,
9, 0, 0, "SQL Server connection timed out.");
(gdb) bt
http://bugs.digium.com/view.php?id=0  0xb6f11ab1 in tds_open_socket (tds=0x0,
ip_addr=0x0, port=0,
timeout=0) at net.c:242


http://bugs.digium.com/view.php?id=0  0x00000017 in ?? ()
(gdb) bt
http://bugs.digium.com/view.php?id=0  0x00000017 in ?? ()
http://bugs.digium.com/view.php?id=1  0x08790980 in ?? ()
http://bugs.digium.com/view.php?id=2  0x00000001 in ?? ()
http://bugs.digium.com/view.php?id=3  0xb0e641a8 in ?? ()
http://bugs.digium.com/view.php?id=4  0xb6f01de1 in tds_flush_packet (tds=Cannot
access memory at address
0x30e04188
) at write.c:291
Previous frame inner to this frame (corrupt stack?)


http://bugs.digium.com/view.php?id=0  tds_flush_packet (tds=Cannot access memory
at address 0x108
) at write.c:298
298     }
(gdb) bt
http://bugs.digium.com/view.php?id=0  tds_flush_packet (tds=Cannot access memory
at address 0x108
) at write.c:298
Cannot access memory at address 0x100

http://bugs.digium.com/view.php?id=0  0xb6f11b2b in tds_open_socket (tds=0x0,
ip_addr=0x0, port=1433,
timeout=90000) at net.c:250
250             if (getsockopt(tds->s, SOL_SOCKET, SO_ERROR, (char *)
&len, &optlen) != 0) {
(gdb) bt
http://bugs.digium.com/view.php?id=0  0xb6f11b2b in tds_open_socket (tds=0x0,
ip_addr=0x0, port=1433,
timeout=90000) at net.c:250
http://bugs.digium.com/view.php?id=1  0x00000000 in ?? ()
(gdb)

http://bugs.digium.com/view.php?id=0  0xb6f11b2b in tds_open_socket (tds=0x0,
ip_addr=0x0, port=1433,
timeout=90000) at net.c:250
250             if (getsockopt(tds->s, SOL_SOCKET, SO_ERROR, (char *)
&len, &optlen) != 0) {
(gdb) bt
http://bugs.digium.com/view.php?id=0  0xb6f11b2b in tds_open_socket (tds=0x0,
ip_addr=0x0, port=1433,
timeout=90000) at net.c:250
http://bugs.digium.com/view.php?id=1  0x00000000 in ?? ()
(gdb)

quit




====================================================================== 

---------------------------------------------------------------------- 
 falves11 - 10-14-07 22:44  
---------------------------------------------------------------------- 
Dear Corydon76
I am posting all I get. if you look at the latest upload, I posted a bunch
of useless lines and all the output that  get when I type bt full
This is the command:
 gdb /usr/sbin/asterisk core.8152

and I get only this
Reading symbols from /usr/lib/asterisk/modules/res_realtime.so...done.
Loaded symbols for /usr/lib/asterisk/modules/res_realtime.so
http://bugs.digium.com/view.php?id=0  0xb6f4bca7 in SQLDescribeCol () from
/usr/lib/libodbc.so.1
(gdb) bt full
http://bugs.digium.com/view.php?id=0  0xb6f4bca7 in SQLDescribeCol () from
/usr/lib/libodbc.so.1
No symbol table info available.
http://bugs.digium.com/view.php?id=1  0xb6ecc711 in acf_odbc_read
(chan=0x82c7950, cmd=0xb622ec60
"MINIXEL_ROUTING", s=0xb622ec70 "S208-1192411686.2653", buf=0xb622ed40
"9122188444,SIP/19124224052 at 69.67.248.28\\,90\\,L(5400000),", len=4096)
    at func_odbc.c:349
        res1 = Variable "res1" is not available.
(gdb) quit

Please contact me via email and you may log into the box and research the
issue. I had to take it out of production. Another weird fact is that I
cannot make AGi work on this box. The dialplan line exten =>
_X,1,agi,anything.pl does not work. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-14-07 22:44  falves11       Note Added: 0071953                          
======================================================================




More information about the asterisk-bugs mailing list