From owner-freebsd-bugs Sun Jun 20 23:15: 3 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from mail.dinoex.sub.org (mail.dinoex.sub.de [195.243.29.14]) by hub.freebsd.org (Postfix) with ESMTP id 5166F14C13 for ; Sun, 20 Jun 1999 23:14:54 -0700 (PDT) (envelope-from dirk.meyer@dinoex.sub.org) Received: (from uucp@localhost) by mail.dinoex.sub.org (8.9.3/8.9.3) with UUCP id IAA27726 for freebsd-bugs@freebsd.org; Mon, 21 Jun 1999 08:15:01 +0200 (CEST) Received: from gate.dinoex.sub.org (dinoex@localhost) by net2.dinoex.sub.org (8.9.3/8.9.3) with BSMTP id HAA22293 for ; Mon, 21 Jun 1999 07:45:03 +0200 (CEST) To: freebsd-bugs@freebsd.org Message-ID: From: dirk.meyer@dinoex.sub.org (Dirk Meyer) Organization: privat Subject: Re: kern/12247: userlevel program let kernel hang Date: Mon, 21 Jun 1999 07:39:52 +0200 X-Mailer: Dinoex 1.70 References: <199906180933.TAA03243@godzilla.zeta.org.au> X-Gateway: ZCONNECT gate.dinoex.sub.org [UNIX/Connect v0.78] X-PGP-Fingerprint: 44 16 EC 0A D3 3A 4F 28 8A 8A 47 93 F1 CF 2F 12 X-Copyright: (C) Copyright 1999 by Dirk Meyer -- All rights reserved. X-PGP-Key-Avail: mailto:pgp-public-keys@keys.de.pgp.net Subject:GET 0x331CDA5D X-ZC-VIA: 19990621000000S+2@dinoex.sub.org Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I wrote: > >Only if gdb try to exit in the second time, > >It keep hangin and kann be killed with > >the debugged application will terminate too. > >But the system keep runninng as intended. Bruce Evans wrote: > I think it is a bug in PT_ATTACH or PT_DETACH, since gdb hangs waiting > for the "hangme" process after it (gdb) issues PT_ATTACH the second time. I looked briefly over the code, and find a point I have to ask for. PT_DETACH reset the P_WAITED flag in sys/kern/sys_process.c, line 358. Does this harm if a process is already waiting for a signal? kind regards Dirk -- Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany -- Tel. +49-5606-6512 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message