[asterisk-bugs] [Asterisk 0014563]: Segmentation fault caused by sqlite3_log

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Mar 2 10:58:09 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14563 
====================================================================== 
Reported By:                alerios
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   14563
Category:                   CDR/cdr_sqlite3_custom
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.0.5 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-02-26 13:12 CST
Last Modified:              2009-03-02 10:58 CST
====================================================================== 
Summary:                    Segmentation fault caused by sqlite3_log
Description: 
Asterisk 1.6.0.5 randomly crashes, apparently because of the
cdr_sqlite3_custom module.

I'm using debian etch, with these versions of libsqlite:

ii  libsqlite3-0         3.3.8-1.1            SQLite 3 shared library
ii  libsqlite3-dev       3.3.8-1.1            SQLite 3 development files


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

---------------------------------------------------------------------- 
 (0101005) alerios (reporter) - 2009-03-02 10:58
 http://bugs.digium.com/view.php?id=14563#c101005 
---------------------------------------------------------------------- 
Sorry,.. here is the backtrace:

Core was generated by `/usr/sbin/asterisk -F -g -vvv -p -g -U asterisk'.
Program terminated with signal 11, Segmentation fault.
http://bugs.digium.com/view.php?id=0  sqlite3_exec (db=0x0, 
    zSql=0x83116f8 "INSERT INTO cdr
(clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,start,answer,end,duration,billsec,disposition,amaflags,accountcode,uniqueid,userfield,pbx,intrunk,outtrunk,dialout)
VALUES ('"..., xCallback=0, pArg=0x0, pzErrMsg=0xb5fbc1a8) at
sqlite3.c:60343
60343	  sqlite3_mutex_enter(db->mutex);
(gdb) backtrace 
http://bugs.digium.com/view.php?id=0  sqlite3_exec (db=0x0, 
    zSql=0x83116f8 "INSERT INTO cdr
(clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,start,answer,end,duration,billsec,disposition,amaflags,accountcode,uniqueid,userfield,pbx,intrunk,outtrunk,dialout)
VALUES ('"..., xCallback=0, pArg=0x0, pzErrMsg=0xb5fbc1a8) at
sqlite3.c:60343
http://bugs.digium.com/view.php?id=1  0xb7750e9f in sqlite3_log (cdr=0x8462d38)
at cdr_sqlite3_custom.c:274
http://bugs.digium.com/view.php?id=2  0x08084186 in post_cdr (cdr=0x8462d38) at
cdr.c:1021
http://bugs.digium.com/view.php?id=3  0x080843a8 in ast_cdr_detach
(cdr=0x8462d38) at cdr.c:1217
http://bugs.digium.com/view.php?id=4  0x0808d86b in ast_hangup (chan=0x83cfc80)
at channel.c:1664
http://bugs.digium.com/view.php?id=5  0x080f51d8 in __ast_pbx_run (c=0x83cfc80)
at pbx.c:3866
http://bugs.digium.com/view.php?id=6  0x080f653e in pbx_thread (data=0x83cfc80)
at pbx.c:3956
http://bugs.digium.com/view.php?id=7  0x081306b0 in dummy_start (data=0x883c038)
at utils.c:917
http://bugs.digium.com/view.php?id=8  0xb7c5e240 in start_thread () from
/lib/tls/i686/cmov/libpthread.so.0
http://bugs.digium.com/view.php?id=9  0xb7d3a49e in clone () from
/lib/tls/i686/cmov/libc.so.6
(gdb) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-02 10:58 alerios        Note Added: 0101005                          
======================================================================




More information about the asterisk-bugs mailing list