From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 26 23:55:50 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6F9916A4CE for ; Mon, 26 Apr 2004 23:55:50 -0700 (PDT) Received: from ack.Berkeley.EDU (ack.berkeley.edu [128.32.206.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id A030D43D46 for ; Mon, 26 Apr 2004 23:55:50 -0700 (PDT) (envelope-from mhunter@ack.Berkeley.EDU) Received: (from mhunter@localhost) by ack.Berkeley.EDU (8.11.3/8.11.3) id i3R6tkX14683; Mon, 26 Apr 2004 23:55:46 -0700 (PDT) Date: Mon, 26 Apr 2004 23:55:46 -0700 From: Mike Hunter To: "Daniel O'Connor" Message-ID: <20040427065545.GA14636@ack.Berkeley.EDU> References: <20040426173848.GA24490@ack.Berkeley.EDU> <200404271044.11474.doconnor@gsoft.com.au> <20040427051102.GA7662@ack.Berkeley.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040427051102.GA7662@ack.Berkeley.EDU> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: Core dump with tip (ucom0 -> external modem) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 06:55:50 -0000 On Apr 26, "To Daniel O'Connor" wrote: > > then bt at the gdb prompt. > > Thanks for taking a look at it. > > GNU gdb 5.2.1 (FreeBSD) > Copyright 2002 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-unknown-freebsd"... > (no debugging symbols found)... > Core was generated by `tip'. > Program terminated with signal 11, Segmentation fault. > Reading symbols from /lib/libc.so.5...(no debugging symbols found)...done. > Loaded symbols for /lib/libc.so.5 > Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)... > done. > Loaded symbols for /libexec/ld-elf.so.1 > #0 0x08049bd2 in connect () > (gdb) bt > #0 0x08049bd2 in connect () > #1 0x0804d055 in send () > #2 0x08049942 in sigprocmask () > (gdb) I went and built tip with debugging symbols... (gdb) set args -9600 33230 (gdb) run Starting program: /usr/src/usr.bin/tip/tip/tip -9600 33230 Stale lock on ucom0 PID=6696... overriding. Program received signal SIGSEGV, Segmentation fault. 0x08049cd7 in connect () at acu.c:110 110 if (*cp != '\0') (gdb) bt 10 #0 0x08049cd7 in connect () at acu.c:110 #1 0x0804d4bd in main (argc=1, argv=0xbfbfec48) at tip.c:202 #2 0x08049a42 in _start () (gdb) checking for cp != NULL fixes the seg fault, but it still hangs for me...sigh. Mike