misc/125569: net/asterisk segfault
GNUtoo
GNUtoo at no-log.org
Sun Jul 13 15:00:11 UTC 2008
>Number: 125569
>Category: misc
>Synopsis: net/asterisk segfault
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 13 15:00:07 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: GNUtoo
>Release: FreeBSD 7.0
>Organization:
>Environment:
FreeBSD router 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
I first installed asterisk without debug and the rc.d script didn't start asterisk so i ran it without the rc script with the command:
asterisk -c /usr/local/etc/asterisk/asterisk.conf -d -v
sometime it started but as soon as i wanted to connect to it(with the command asterisk -r) it crashed:
then i compiled it with the debug flags:
setenv CFLAGS "-O1 -pipe -g -ggdb"
setenv CXXFLAGS "${CFLAGS}"
cd /usr/ports/net/asterisk
make clean
make
make deinstall
make install
then it worked, i could connect to it with asterisk -r
but when i typed dialplan show in the command line interface it has crashed again
and from now it crash like before
>How-To-Repeat:
asterisk -c /usr/local/etc/asterisk/asterisk.conf -d -v
# asterisk -c /usr/local/etc/asterisk/asterisk.conf -d -v
Asterisk 1.4.20.1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
[ Booting...
[ Reading Master Configuration ]
[ Initializing Custom Configuration Options ]
[Jul 13 16:42:54] NOTICE[70989]: loader.c:851 load_modules: 1 modules will be loaded.
[Jul 13 16:42:54] WARNING[70989]: loader.c:416 load_dynamic_module: Error loading module 'chan_sip.so': /usr/local/lib/asterisk/modules/chan_sip.so: Undefined symbol "ast_park_call"
[Jul 13 16:42:54] WARNING[70989]: loader.c:657 load_resource: Module 'chan_sip.so' could not be loaded.
[Jul 13 16:42:54] NOTICE[70989]: cdr.c:1366 do_reload: CDR simple logging enabled.
[Jul 13 16:42:54] NOTICE[70989]: loader.c:851 load_modules: 140 modules will be loaded.
.......[Jul 13 16:42:54] WARNING[70989]: res_smdi.c:1264 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
....Segmentation fault (core dumped)
router# asterisk -c /usr/local/etc/asterisk/asterisk.conf -d -v
Asterisk 1.4.20.1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
[ Booting...
[ Reading Master Configuration ]
[ Initializing Custom Configuration Options ]
[Jul 13 16:42:58] NOTICE[70990]: loader.c:851 load_modules: 1 modules will be loaded.
[Jul 13 16:42:58] WARNING[70990]: loader.c:416 load_dynamic_module: Error loading module 'chan_sip.so': /usr/local/lib/asterisk/modules/chan_sip.so: Undefined symbol "ast_park_call"
[Jul 13 16:42:58] WARNING[70990]: loader.c:657 load_resource: Module 'chan_sip.so' could not be loaded.
[Jul 13 16:42:58] NOTICE[70990]: cdr.c:1366 do_reload: CDR simple logging enabled.
[Jul 13 16:42:58] NOTICE[70990]: loader.c:851 load_modules: 140 modules will be loaded.
.......[Jul 13 16:42:58] WARNING[70990]: res_smdi.c:1264 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
.Segmentation fault (core dumped)
router# asterisk -c /usr/local/etc/asterisk/asterisk.conf -d -v
Asterisk 1.4.20.1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
[ Booting...
[ Reading Master Configuration ]
[ Initializing Custom Configuration Options ]
[Jul 13 16:42:59] NOTICE[70991]: loader.c:851 load_modules: 1 modules will be loaded.
[Jul 13 16:42:59] WARNING[70991]: loader.c:416 load_dynamic_module: Error loading module 'chan_sip.so': /usr/local/lib/asterisk/modules/chan_sip.so: Undefined symbol "ast_park_call"
[Jul 13 16:42:59] WARNING[70991]: loader.c:657 load_resource: Module 'chan_sip.so' could not be loaded.
[Jul 13 16:42:59] NOTICE[70991]: cdr.c:1366 do_reload: CDR simple logging enabled.
[Jul 13 16:42:59] NOTICE[70991]: loader.c:851 load_modules: 140 modules will be loaded.
...Segmentation fault (core dumped)
the last segmentation fault was done trying to connect to it...
>Fix:
this time it started the first time without crashing and i connected to it and it crashed so i used the coredump in gdb:
# gdb asterisk asterisk.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `asterisk'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libncurses.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libncurses.so.7
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libcrypto.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypto.so.5
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/asterisk/modules/res_musiconhold.so...done.
Loaded symbols for /usr/local/lib/asterisk/modules/res_musiconhold.so
Reading symbols from /usr/local/lib/liblthread.so.6...done.
Loaded symbols for /usr/local/lib/liblthread.so.6
Reading symbols from /usr/local/lib/asterisk/modules/res_adsi.so...done.
Loaded symbols for /usr/local/lib/asterisk/modules/res_adsi.so
Reading symbols from /usr/local/lib/asterisk/modules/res_agi.so...done.
Loaded symbols for /usr/local/lib/asterisk/modules/res_agi.so
Reading symbols from /usr/local/lib/asterisk/modules/res_crypto.so...done.
Loaded symbols for /usr/local/lib/asterisk/modules/res_crypto.so
Reading symbols from /usr/lib/libssl.so.5...done.
Loaded symbols for /usr/lib/libssl.so.5
Reading symbols from /usr/local/lib/asterisk/modules/res_features.so...done.
Loaded symbols for /usr/local/lib/asterisk/modules/res_features.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x28318ff7 in pthread_attr_setstacksize () from /lib/libthr.so.3
[New Thread 0x28501900 (LWP 100102)]
[New Thread 0x28501800 (LWP 100083)]
[New Thread 0x28501100 (LWP 100055)]
(gdb) thread apply all bt
Thread 3 (Thread 0x28501100 (LWP 100055)):
#0 0x2836232b in _umtx_op () from /lib/libc.so.7
#1 0x28319bed in pthread_cleanup_push () from /lib/libthr.so.3
#2 0x283154e8 in pthread_mutex_getprioceiling () from /lib/libthr.so.3
#3 0x0808e75d in ast_device_state ()
#4 0x0808e879 in ast_device_state_changed ()
#5 0x284b3a6b in load_config () at res_features.c:286
#6 0x284b49b1 in load_module () at res_features.c:2513
#7 0x080a417c in ast_module_ref ()
#8 0x080a47c4 in load_modules ()
#9 0x0806ab4a in main ()
Thread 2 (Thread 0x28501800 (LWP 100083)):
#0 0x28318ff7 in pthread_attr_setstacksize () from /lib/libthr.so.3
#1 0x080e98d9 in ast_pthread_create_stack ()
#2 0x0806c929 in main ()
Thread 1 (Thread 0x28501900 (LWP 100102)):
#0 0x28436dd7 in pthread_cond_wait () from /usr/local/lib/liblthread.so.6
#1 0x0808e6dd in ast_device_state ()
#2 0x080e8ba9 in ast_wait_for_input ()
#3 0x28311b1f in pthread_getprio () from /lib/libthr.so.3
#4 0x00000000 in ?? ()
#0 0x28318ff7 in pthread_attr_setstacksize () from /lib/libthr.so.3
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list