[asterisk-bugs] [Asterisk 0012309]: * segfault when not using DONT_OPTIMIZE flag
noreply at bugs.digium.com
noreply at bugs.digium.com
Fri Apr 11 09:57:04 CDT 2008
The following issue has been RESOLVED.
======================================================================
http://bugs.digium.com/view.php?id=12309
======================================================================
Reported By: junky
Assigned To: putnopvut
======================================================================
Project: Asterisk
Issue ID: 12309
Category: Core-General
Reproducibility: always
Severity: crash
Priority: normal
Status: resolved
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): 1.4
SVN Revision (number only!): 110474
Disclaimer on File?: N/A
Request Review:
Resolution: no change required
Fixed in Version:
======================================================================
Date Submitted: 03-26-2008 12:43 CDT
Last Modified: 04-11-2008 09:56 CDT
======================================================================
Summary: * segfault when not using DONT_OPTIMIZE flag
Description:
If i dont use DONT_OPTIMIZE flag, im getting sefault like:
(gdb) bt
http://bugs.digium.com/view.php?id=0 0x0000003895d6829b in arena_get2 () from
/lib64/tls/libc.so.6
http://bugs.digium.com/view.php?id=1 0x0000003895d6b4b3 in calloc () from
/lib64/tls/libc.so.6
http://bugs.digium.com/view.php?id=2 0x00000000004a4519 in
ast_sched_add_variable (con=0x6d4420, when=2000,
callback=0x2a9a5b31e0 <attempt_transmit>, data=0x7c8330, variable=0) at
/usr/src/ah_ast_1.4/include/asterisk/utils.h:359
http://bugs.digium.com/view.php?id=3 0x0000002a9a5b5fad in network_thread
(ignore=Variable "ignore" is not
available.
) at chan_iax2.c:971
http://bugs.digium.com/view.php?id=4 0x00000000004eb595 in
__PRETTY_FUNCTION__.1 ()
http://bugs.digium.com/view.php?id=5 0x00000000004eb6a4 in
__PRETTY_FUNCTION__.1 ()
http://bugs.digium.com/view.php?id=6 0x0000003895d3ff83 in vfprintf () from
/lib64/tls/libc.so.6
http://bugs.digium.com/view.php?id=7 0x00000000004eb595 in
__PRETTY_FUNCTION__.1 ()
http://bugs.digium.com/view.php?id=8 0x00000000004eb6a4 in
__PRETTY_FUNCTION__.1 ()
http://bugs.digium.com/view.php?id=9 0x0000003895d3ff83 in vfprintf () from
/lib64/tls/libc.so.6
http://bugs.digium.com/view.php?id=10 0x0000000000000000 in ?? ()
(gdb)
http://bugs.digium.com/view.php?id=0 0x0000003895d6829b in arena_get2 () from
/lib64/tls/libc.so.6
No symbol table info available.
http://bugs.digium.com/view.php?id=1 0x0000003895d6b4b3 in calloc () from
/lib64/tls/libc.so.6
No symbol table info available.
http://bugs.digium.com/view.php?id=2 0x00000000004a4519 in
ast_sched_add_variable (con=0x6d4420, when=2000,
callback=0x2a9a5b31e0 <attempt_transmit>, data=0x7c8330, variable=0) at
/usr/src/ah_ast_1.4/include/asterisk/utils.h:359
res = -1
__PRETTY_FUNCTION__ = "ast_sched_add_variable"
http://bugs.digium.com/view.php?id=3 0x0000002a9a5b5fad in network_thread
(ignore=Variable "ignore" is not
available.
) at chan_iax2.c:971
__list_next = (struct iax_frame *) 0x7d38e0
__list_prev = (struct iax_frame *) 0x752480
__new_prev = (struct iax_frame *) 0x7c8330
res = Variable "res" is not available.
(gdb) p *con
$5 = {lock = {__m_reserved = 2, __m_count = 1, __m_owner = 0x1ffffc7c0,
__m_kind = 1, __m_lock = {__status = 0, __spinlock = 0}}, eventcnt = 434,
schedcnt = 129, schedq = {first = 0x2aabe02a00,
last = 0x2a9a95e560}, schedc = {first = 0x0, last = 0x0}, schedccnt =
0}
======================================================================
----------------------------------------------------------------------
putnopvut - 04-11-08 09:56
----------------------------------------------------------------------
I'm closing this since this is almost certainly a compiler bug, considering
that the problem only occurs when optimizations are turned on, and the
backtrace points to the problem originating in libc.
If this can be later determined to be an Asterisk bug, then please
re-open.
Issue History
Date Modified Username Field Change
======================================================================
04-11-08 09:56 putnopvut Note Added: 0085345
======================================================================
More information about the asterisk-bugs
mailing list