Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 16 Feb 2003 14:05:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 16 Feb 2003 14:05:49 -0500 Received: from caramon.arm.linux.org.uk ([212.18.232.186]:4370 "EHLO caramon.arm.linux.org.uk") by vger.kernel.org with ESMTP id ; Sun, 16 Feb 2003 14:05:48 -0500 Date: Sun, 16 Feb 2003 19:15:43 +0000 From: Russell King To: linux-kernel@vger.kernel.org, Linus Torvalds Subject: Signal/gdb oddity in 2.5.61 Message-ID: <20030216191543.D12489@flint.arm.linux.org.uk> Mail-Followup-To: linux-kernel@vger.kernel.org, Linus Torvalds Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2705 Lines: 73 Hi, I'm seeing some weird behaviour with signal handling/gdb on 2.5.61: [root@assabet /root]$cat /dev/zero > /dev/null & [1] 132 [root@assabet /root]$gdb /bin/cat GNU gdb 5.0 Copyright 2000 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 "armv4l-rmk-linux"...(no debugging symbols found)... (gdb) attach 132 Attaching to program: /bin/cat, Pid 132 Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 0x20027a0 in _IO_putc () (gdb) stepi Program received signal SIGSTOP, Stopped (signal). 0x20027a0 in _IO_putc () (gdb) 0x20027a4 in _IO_putc () (gdb) 0x4008d154 in putc () from /lib/libc.so.6 (gdb) quit Notice the "Program received signal SIGSTOP". Asking for the process list via t shows the following after attaching gdb: cat T C023CE94 3263624 132 135 (NOTLB) [] (schedule+0x0/0x3a0) from [] (get_signal_to_deliver+0x1c0/0x3e4) [] (get_signal_to_deliver+0x0/0x3e4) from [] (do_signal+0x5c/0x13c) [] (do_signal+0x0/0x13c) from [] (do_notify_resume+0x30/0x34) [] (do_notify_resume+0x0/0x34) from [] (work_pending+0x1c/0x28) and after the first stepi: cat T C023CE94 3263624 132 135 (NOTLB) [] (schedule+0x0/0x3a0) from [] (finish_stop+0xb0/0xc8) [] (finish_stop+0x0/0xc8) from [] (do_signal_stop+0x288/0x294) [] (do_signal_stop+0x0/0x294) from [] (get_signal_to_deliver+0x324/0x3e4) [] (get_signal_to_deliver+0x0/0x3e4) from [] (do_signal+0x5c/0x13c) [] (do_signal+0x0/0x13c) from [] (do_notify_resume+0x30/0x34) [] (do_notify_resume+0x0/0x34) from [] (work_pending+0x1c/0x28) subsequent stepi's appear as per the first trace above. -- Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/