From owner-freebsd-hackers Wed Jul 15 00:02:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA04010 for freebsd-hackers-outgoing; Wed, 15 Jul 1998 00:02:20 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp01.primenet.com (daemon@smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA04005 for ; Wed, 15 Jul 1998 00:02:18 -0700 (PDT) (envelope-from tlambert@usr06.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id AAA12911; Wed, 15 Jul 1998 00:02:11 -0700 (MST) Received: from usr06.primenet.com(206.165.6.206) via SMTP by smtp01.primenet.com, id smtpd012890; Wed Jul 15 00:02:05 1998 Received: (from tlambert@localhost) by usr06.primenet.com (8.8.5/8.8.5) id AAA08476; Wed, 15 Jul 1998 00:02:01 -0700 (MST) From: Terry Lambert Message-Id: <199807150702.AAA08476@usr06.primenet.com> Subject: Re: Detecting the presence of threads (for a port) To: tlambert@primenet.com (Terry Lambert) Date: Wed, 15 Jul 1998 07:02:00 +0000 (GMT) Cc: andre@pipeline.ch, pvh@leftside.wcape.school.za, freebsd-hackers@FreeBSD.ORG In-Reply-To: <199807150629.XAA06869@usr06.primenet.com> from "Terry Lambert" at Jul 15, 98 06:29:06 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > For what it's worth, the code with all the agregate patches I did, > plus all of my own patches I did on top of that, appears to run fine > on RedHat Linux. > > The bug is a result of linking the dbm stuff against libc_r, and is > a libc_r bug, not a bug in the patches. Oops. I may have spoke too soon. If the patches posted here by another able engineer actually work, this is tantamount to the common Linux assumption of bzero'ed stack pages for sockaddr_in structs... in other words, a real coding error, not a threads bug on BSD. If this holds true, my theory is that the user space nature of the threads triggered the bug by scribbling on the stack before it was used (something that should not have caused a problem, but did because of the coding error). This is totally cool. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message