From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12641 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: segmentation fault on pthread_detach Date: Tue, 27 Mar 2018 15:00:59 +0200 Message-ID: <20180327130058.GB4418@port70.net> References: <20180327143255.67c8b2c5@inria.fr> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1522155551 8128 195.159.176.226 (27 Mar 2018 12:59:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Mar 2018 12:59:11 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) Cc: jens.gustedt@inria.fr, Salman.Ahmed@weidmueller.com To: musl@lists.openwall.com Original-X-From: musl-return-12655-gllmg-musl=m.gmane.org@lists.openwall.com Tue Mar 27 14:59:06 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1f0oBu-00020l-Lh for gllmg-musl@m.gmane.org; Tue, 27 Mar 2018 14:59:06 +0200 Original-Received: (qmail 23987 invoked by uid 550); 27 Mar 2018 13:01:11 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 23966 invoked from network); 27 Mar 2018 13:01:11 -0000 Mail-Followup-To: musl@lists.openwall.com, jens.gustedt@inria.fr, Salman.Ahmed@weidmueller.com Content-Disposition: inline In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:12641 Archived-At: * Salman.Ahmed@weidmueller.com [2018-03-27 12:51:54 +0000]: > Thanks for the clarification. So I guess with musl I have to remove the pthread_detach (which is redundant anyways after a successful join) or call it only if pthread_join returns an error? this is a bug on all systems, not just on musl if it works anywhere that's just luck, it can certainly crash on glibc too, but i'd be surprised if it worked reliably on any system, the crash may be rare though. don't use pthread_detach it does not help there.