[asterisk-bugs] [Asterisk 0014783]: segfault in ast_cdr_start() at cdr.c

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Apr 1 06:57:41 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14783 
====================================================================== 
Reported By:                caspy
Assigned To:                mnicholson
====================================================================== 
Project:                    Asterisk
Issue ID:                   14783
Category:                   CDR/General
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.0.6 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-03-30 04:34 CDT
Last Modified:              2009-04-01 06:57 CDT
====================================================================== 
Summary:                    segfault in ast_cdr_start() at cdr.c
Description: 
Program terminated with signal 11, Segmentation fault.
http://bugs.digium.com/view.php?id=0  0x0808c705 in ast_cdr_start (cdr=0x1) at
cdr.c:680
680                     if (!ast_test_flag(cdr, AST_CDR_FLAG_LOCKED)) {

(gdb) bt
http://bugs.digium.com/view.php?id=0  0x0808c705 in ast_cdr_start (cdr=0x1) at
cdr.c:680
http://bugs.digium.com/view.php?id=1  0x0808df1e in ast_cdr_specialized_reset
(cdr=0xb79edb48, _flags=0x0)
at cdr.c:1090
http://bugs.digium.com/view.php?id=2  0x080ca680 in ast_bridge_call
(chan=0xb79d0760, peer=0x8486510,
config=0xb5ab990c) at features.c:2548
http://bugs.digium.com/view.php?id=3  0xb751e9cc in dial_exec_full
(chan=0xb79d0760, data=0xb5abbdd8,
peerflags=0xb5ab9c60, continue_exec=0x0) at app_dial.c:1913
http://bugs.digium.com/view.php?id=4  0xb751f0c8 in dial_exec (chan=0xb79d0760,
data=0xb5abbdd8) at
app_dial.c:1969
http://bugs.digium.com/view.php?id=5  0x080faa6d in pbx_exec (c=0xb79d0760,
app=0xb790fa30, data=0xb5abbdd8)
at pbx.c:936
http://bugs.digium.com/view.php?id=6  0x08101bd4 in pbx_extension_helper
(c=0xb79d0760, con=0x0,
context=0xb79d09a8 "macro-stdexten", exten=0xb79d09f8 "s", priority=16,
label=0x0, callerid=0xb6f56608 "h?C?",
    action=E_SPAWN, found=0xb5abe548, combined_find_spawn=1) at
pbx.c:3105
http://bugs.digium.com/view.php?id=7  0x081037e1 in ast_spawn_extension
(c=0xb79d0760, context=0xb79d09a8
"macro-stdexten", exten=0xb79d09f8 "s", priority=16, callerid=0xb6f56608
"h?C?", found=0xb5abe548,
    combined_find_spawn=1) at pbx.c:3600
http://bugs.digium.com/view.php?id=8  0xb7076750 in _macro_exec
(chan=0xb79d0760, data=0xb5ac0f78,
exclusive=0) at app_macro.c:333
http://bugs.digium.com/view.php?id=9  0xb7077f39 in macro_exec (chan=0xb79d0760,
data=0xb5ac0f78) at
app_macro.c:496
http://bugs.digium.com/view.php?id=10 0x080faa6d in pbx_exec (c=0xb79d0760,
app=0xb79634a8, data=0xb5ac0f78)
at pbx.c:936
http://bugs.digium.com/view.php?id=11 0x08101bd4 in pbx_extension_helper
(c=0xb79d0760, con=0x0,
context=0xb79d09a8 "macro-stdexten", exten=0xb79d09f8 "s", priority=8,
label=0x0, callerid=0xb6f56608 "h?C?",
    action=E_SPAWN, found=0xb5ac33bc, combined_find_spawn=1) at
pbx.c:3105
http://bugs.digium.com/view.php?id=12 0x081037e1 in ast_spawn_extension
(c=0xb79d0760, context=0xb79d09a8
"macro-stdexten", exten=0xb79d09f8 "s", priority=8, callerid=0xb6f56608
"h?C?", found=0xb5ac33bc,
    combined_find_spawn=1) at pbx.c:3600
http://bugs.digium.com/view.php?id=13 0x08103e65 in __ast_pbx_run (c=0xb79d0760,
args=0x0) at pbx.c:3687
http://bugs.digium.com/view.php?id=14 0x0810505e in pbx_thread (data=0xb79d0760)
at pbx.c:3960
http://bugs.digium.com/view.php?id=15 0x08153db4 in dummy_start
(data=0xb7955f98) at utils.c:861
http://bugs.digium.com/view.php?id=16 0xb7ccf240 in start_thread () from
/lib/tls/i686/cmov/libpthread.so.0
http://bugs.digium.com/view.php?id=17 0xb7daf49e in clone () from
/lib/tls/i686/cmov/libc.so.6

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

---------------------------------------------------------------------- 
 (0102530) alex001 (reporter) - 2009-04-01 06:57
 http://bugs.digium.com/view.php?id=14783#c102530 
---------------------------------------------------------------------- 
http://bugs.digium.com/view.php?id=0  ast_cdr_specialized_reset (cdr=0x90,
_flags=0x619432d) at cdr.c:680
680                     if (!ast_test_flag(cdr, AST_CDR_FLAG_LOCKED)) {
(gdb) bt
http://bugs.digium.com/view.php?id=0  ast_cdr_specialized_reset (cdr=0x90,
_flags=0x619432d) at cdr.c:680
http://bugs.digium.com/view.php?id=1  0x000001f2c336c146 in ast_bridge_call
(chan=0x1f2c5006330,
peer=0x6d00cc5b8650, config=0x6d00d1d92340) at features.c:2548
http://bugs.digium.com/view.php?id=2  0x00006d00e5e5e7d2 in dial_exec_full
(chan=0x1f2c5006330, data=<value
optimized out>, peerflags=0x6d00d1d924f0, continue_exec=0x0) at
app_dial.c:1927
http://bugs.digium.com/view.php?id=3  0x00006d00e5e60ee6 in dial_exec
(chan=0x49d1ee60, data=0x619432d) at
app_dial.c:1983
http://bugs.digium.com/view.php?id=4  0x000001f2c33aaebf in pbx_extension_helper
(c=0x1f2c5006330,
con=<value optimized out>, context=0x1f2c50065c0 "macro-stdExten",
exten=0x1f2c5006610 "s", priority=1, label=0x0,
    callerid=0x1f2c4225d80 "??;??\001", action=E_SPAWN,
found=0x6d00d1d978ec, combined_find_spawn=1) at pbx.c:936
http://bugs.digium.com/view.php?id=5  0x000001f2c33ab3e0 in ast_spawn_extension
(c=0x49d1ee60,
context=<value optimized out>, exten=<value optimized out>, priority=<value
optimized out>,
    callerid=<value optimized out>, found=<value optimized out>,
combined_find_spawn=1) at pbx.c:3600
http://bugs.digium.com/view.php?id=6  0x00006d00e36f790b in _macro_exec
(chan=0x1f2c5006330, data=<value
optimized out>, exclusive=0) at app_macro.c:333
http://bugs.digium.com/view.php?id=7  0x000001f2c33aaebf in pbx_extension_helper
(c=0x1f2c5006330,
con=<value optimized out>, context=0x1f2c50065c0 "macro-stdExten",
exten=0x1f2c5006610 "s", priority=1, label=0x0,
    callerid=0x1f2c4225d80 "??;??\001", action=E_SPAWN,
found=0x6d00d1d9c02c, combined_find_spawn=1) at pbx.c:936
http://bugs.digium.com/view.php?id=8  0x000001f2c33ac56f in __ast_pbx_run
(c=0x1f2c5006330, args=0x0) at
pbx.c:3600
http://bugs.digium.com/view.php?id=9  0x000001f2c33ad90b in pbx_thread
(data=0x49d1ee60) at pbx.c:3960
http://bugs.digium.com/view.php?id=10 0x000001f2c33e475c in dummy_start
(data=<value optimized out>) at
utils.c:861
http://bugs.digium.com/view.php?id=11 0x00006d00f2caf017 in start_thread () from
/lib/libpthread.so.0
http://bugs.digium.com/view.php?id=12 0x00006d00f141b19d in clone () from
/lib/libc.so.6


(gdb) frame 1
http://bugs.digium.com/view.php?id=1  0x000001f2c336c146 in ast_bridge_call
(chan=0x1f2c5006330,
peer=0x6d00cc5b8650, config=0x6d00d1d92340) at features.c:2548
2548                            ast_cdr_specialized_reset(chan_cdr,0); /*
nothing changed, reset the chan_cdr  */
(gdb) print chan_cdr
$3 = (struct ast_cdr *) 0x1f2c5003a70



My system:
uname -a
Linux *** 2.6.28-hardened http://bugs.digium.com/view.php?id=5 SMP PREEMPT Sun
Mar 29 21:44:07 MSD 2009
x86_64 Intel(R) Xeon(R) CPU 5110 @ 1.60GHz GenuineIntel GNU/Linux
gcc -v
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/specs
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.2
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-fixed-point --enable-nls --without-included-gettext
--with-system-zlib --disable-checking --disable-werror --enable-secureplt
--disable-multilib --disable-libmudflap --disable-libssp --disable-libgomp
--enable-cld --disable-libgcj --enable-languages=c,c++,treelang
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/
--with-pkgversion='Gentoo 4.3.2-r3 p1.6, pie-10.1.5'
Thread model: posix
gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-01 06:57 alex001        Note Added: 0102530                          
======================================================================




More information about the asterisk-bugs mailing list