From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 13 15:00:11 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64123106567F for ; Sun, 13 Jul 2008 15:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2C7DE8FC1F for ; Sun, 13 Jul 2008 15:00:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6DF08Mo071559 for ; Sun, 13 Jul 2008 15:00:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6DF08eO071558; Sun, 13 Jul 2008 15:00:08 GMT (envelope-from gnats) Resent-Date: Sun, 13 Jul 2008 15:00:08 GMT Resent-Message-Id: <200807131500.m6DF08eO071558@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, GNUtoo Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1404106566B for ; Sun, 13 Jul 2008 14:54:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 89DE78FC16 for ; Sun, 13 Jul 2008 14:54:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m6DEsWBR070140 for ; Sun, 13 Jul 2008 14:54:32 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m6DEsWJ2070139; Sun, 13 Jul 2008 14:54:32 GMT (envelope-from nobody) Message-Id: <200807131454.m6DEsWJ2070139@www.freebsd.org> Date: Sun, 13 Jul 2008 14:54:32 GMT From: GNUtoo To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/125569: net/asterisk segfault X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2008 15:00:11 -0000 >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@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 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 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 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: