From owner-freebsd-stable Fri Sep 29 13: 6:31 2000 Delivered-To: freebsd-stable@freebsd.org Received: from moon.harmonic.co.il (moon.harmonic.co.il [192.116.140.65]) by hub.freebsd.org (Postfix) with ESMTP id 60F1F37B4A9 for ; Fri, 29 Sep 2000 13:06:23 -0700 (PDT) Received: (from nobody@localhost) by moon.harmonic.co.il (8.9.3/8.9.3) id WAA29994; Fri, 29 Sep 2000 22:05:33 +0200 To: Ron Scott Subject: Re: pthreads bug? Message-ID: <970257933.39d4f60dad0dd@webmail.harmonic.co.il> Date: Fri, 29 Sep 2000 22:05:33 +0200 (IST) From: Roman Shterenzon Cc: freebsd-stable@FreeBSD.ORG References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.2 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Quoting Ron Scott : > Today Alfred Perlstein wrote: > > > * Roman Shterenzon [000929 01:23] wrote: > > > btw, linux doesn't dump core on threaded application, how one's > supposed to > > > debug it? > > > > No clue on that one. :( > > > > Maybe with abort(), raise(SIGSEGV), kill(getpid(), SIGSEGV) ??? Have you tried? I think not. The linux creates a _process_ for every thread. These processes share memory. That's the linux's threads implementation. For good and for bad. But, the fact remains that if one of the threads does something bad, no core is dumped. I guess that Linux people haven't decided what to do when one of the processes which is a "thread" dies. They just kill other processes. No core is dumped. --Roman Shterenzon, UNIX System Administrator and Consultant [ Xpert UNIX Systems Ltd., Herzlia, Israel. Tel: +972-9-9522361 ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message