From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6850 Path: news.gmane.org!not-for-mail From: Sebastian Gottschall Newsgroups: gmane.linux.lib.musl.general Subject: Re: pthreads broken (freeradius testcase) Date: Fri, 16 Jan 2015 02:53:00 +0100 Message-ID: <54B86EFC.4030108@dd-wrt.com> References: <54B844B4.1000500@dd-wrt.com> <20150115231037.GT4574@brightrain.aerifal.cx> <20150115234218.GU4574@brightrain.aerifal.cx> <54B85738.1040503@dd-wrt.com> <20150116002331.GV4574@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1421373197 8330 80.91.229.3 (16 Jan 2015 01:53:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2015 01:53:17 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6863-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jan 16 02:53:16 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YBw68-00068S-Em for gllmg-musl@m.gmane.org; Fri, 16 Jan 2015 02:53:16 +0100 Original-Received: (qmail 29957 invoked by uid 550); 16 Jan 2015 01:53:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 29941 invoked from network); 16 Jan 2015 01:53:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dd-wrt.com; s=mikd; h=Subject:Content-Transfer-Encoding:Content-Type:In-Reply-To:References:To:MIME-Version:From:Date:Message-ID; bh=Bwl2P79YUYVP8dqsqI3EiVXuMkgZYkJHLiQgfVV0Chg=; b=Qk7slJl6kV7xHvpm6lXofPMXsw1W+xZuF2RrlJtu1yH0PBIZ3l62pb/RxOLDtIs2XmuR4lbk0m2R+GWXC34vsOa2B6oWxr68plx7r2nuWru+b6lSOOIhFBow19PHcs+KgUdHDzAK9LWEOI77BiOTRpG103LPFP18FLt42Le70Sk=; User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: <20150116002331.GV4574@brightrain.aerifal.cx> X-SA-Exim-Connect-IP: 93.195.14.51 X-SA-Exim-Mail-From: s.gottschall@dd-wrt.com X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on webmail.newmedia-net.de X-Spam-Level: X-Spam-Status: No, score=-2.5 required=4.0 tests=ALL_TRUSTED,BAYES_00, DNS_FROM_AHBL_RHSBL,RATWARE_GECKO_BUILD autolearn=no version=3.1.9, No X-SA-Exim-Version: 4.2.1 (built Thu, 26 May 2011 15:22:33 +0200) X-SA-Exim-Scanned: Yes (on webmail.newmedia-net.de) X-NMN-MailScanner-Information: Please contact the ISP for more information X-NMN-MailScanner-ID: 1YBw5s-0005yK-8a X-NMN-MailScanner: Found to be clean X-NMN-MailScanner-From: s.gottschall@dd-wrt.com X-Received: from [93.195.14.51] (helo=[10.88.193.128]) by webmail.newmedia-net.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1YBw5s-0005yK-8a for musl@lists.openwall.com; Fri, 16 Jan 2015 02:53:00 +0100 Xref: news.gmane.org gmane.linux.lib.musl.general:6850 Archived-At: Am 16.01.2015 um 01:23 schrieb Rich Felker: > On Fri, Jan 16, 2015 at 01:11:36AM +0100, Sebastian Gottschall wrote: >> sorry i forgot the full content. of the message. the first attemt >> failed due a too big attachment >> >> >> i can help you more. because i found the deadlocking function. >> its setresuid which hangs forever. (i know that you submitted a >> patch recently which is related to that function, but i dont know if >> this will help here) >> debugging is more complicated with gdb here. its a embedded system >> without any remote debugging support >> >> its exact the same problem which is described here, but without any >> further solution or problem cause >> >> http://freeradius.1045715.n5.nabble.com/Hack-way-to-compile-freeradius-causing-freeradius-to-hang-under-multithread-mode-td2794760.html > Interesting. If the deadlock happens in setresuid, this may actually > be a very timely bug report. The mailing list threads about > multithreaded set*id/synccall, and my new blog post based on them, > http://ewontfix.com/17, are about fixing longstanding problems in this > area. I'll look into how it's being used in freeradius and see if I > can tell what's going on. I'm also going to be committing new code for > this soon (probably in the next 24 hrs) so you could give it a try > with that too and see if the problem goes away. i will immediatly test it as soon as you commit it and give response thank you for your help Sebastian > Rich >