Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262228AbVDXB7z (ORCPT ); Sat, 23 Apr 2005 21:59:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262227AbVDXB7z (ORCPT ); Sat, 23 Apr 2005 21:59:55 -0400 Received: from mail.dif.dk ([193.138.115.101]:61847 "EHLO saerimmer.dif.dk") by vger.kernel.org with ESMTP id S262229AbVDXB7s (ORCPT ); Sat, 23 Apr 2005 21:59:48 -0400 Date: Sun, 24 Apr 2005 04:02:59 +0200 (CEST) From: Jesper Juhl To: mbellett@cs.unibo.it Cc: linux-kernel@vger.kernel.org Subject: Re: PROBLEM: Kernel BUG() in exit.c in ptrace/pthread interaction In-Reply-To: <20050424014834.GA31463@cs.unibo.it> Message-ID: References: <20050424014834.GA31463@cs.unibo.it> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1047 Lines: 35 On Sun, 24 Apr 2005 mbellett@cs.unibo.it wrote: > When you run the program in attachment, *even as an ordinary user*, the kernel > panic. Tested kernel is a 2.6.11.7 vanilla with alleged .config. Tested with Just tried running it on my box here with a 2.6.12-rc2-mm3 kernel and it survived just fine. Here's what I did and the output I got : $ gcc -lpthread ptrace-thread-bug.c ptrace-thread-bug.c:158:2: warning: no newline at end of file $ ./a.out child: pid=5664 child: self sigstopping father: pid=5663 father: waiting child's selfstopping father: making child go again under ptrace father: detaching father: thread creation father: waiting for end thread 16386: attaching thread 16386: unlocking father: destroying semaphore father: all done thread 16386: unlocking child $ -- Jesper Juhl - 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/