From owner-freebsd-bugs Tue Dec 25 21:40: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3392137B41B for ; Tue, 25 Dec 2001 21:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBQ5e1q82679; Tue, 25 Dec 2001 21:40:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 80B6A37B419 for ; Tue, 25 Dec 2001 21:35:05 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBQ5Z5o82241; Tue, 25 Dec 2001 21:35:05 -0800 (PST) (envelope-from nobody) Message-Id: <200112260535.fBQ5Z5o82241@freefall.freebsd.org> Date: Tue, 25 Dec 2001 21:35:05 -0800 (PST) From: Kip Macy To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: gnu/33182: gdb seg faults when given handle SIGALRM nopass for threaded app Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 33182 >Category: gnu >Synopsis: gdb seg faults when given handle SIGALRM nopass for threaded app >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: Tue Dec 25 21:40:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Kip Macy >Release: 4.4 >Organization: Extended Solutions >Environment: FreeBSD netherworld.eventdriven.org 4.4-STABLE FreeBSD 4.4-STABLE #0: Sat Nov 3 20:42:16 PST 2001 root@netherworld.eventdriven.org:/usr/src/sys/compile/NETHERWORLD i386 >Description: GNU gdb 4.18 Copyright 1998 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"... (gdb) b main Breakpoint 1 at 0x804864a: file alrmtest.c, line 55. (gdb) r Starting program: /usr/home/kmacy/netapp/dvlp/alrmtest Breakpoint 1, main () at alrmtest.c:55 55 sk_init_timer(); (gdb) list 50 } 51 52 int 53 main() { 54 int i, j; 55 sk_init_timer(); 56 while (1) { 57 /* useless assignment to demonstrate lack of progress */ 58 i = 0; 59 /* useless assignment to demonstrate lack of progress */ (gdb) n 56 while (1) { (gdb) n Program received signal SIGTRAP, Trace/breakpoint trap. 0x280f1150 in _thread_sys_sigprocmask () from /usr/lib/libc_r.so.4 (gdb) n Single stepping until exit from function _thread_sys_sigprocmask, which has no line number information. Program received signal SIGTRAP, Trace/breakpoint trap. 0x280f1150 in _thread_sys_sigprocmask () from /usr/lib/libc_r.so.4 (gdb) handle SIGALRM nopass Segmentation fault (core dumped) >How-To-Repeat: link app with libc_r type handle SIGALRM nopass in gdb >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message