mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Cc: jens.gustedt@inria.fr, Salman.Ahmed@weidmueller.com
Subject: Re: segmentation fault on pthread_detach
Date: Tue, 27 Mar 2018 15:00:59 +0200	[thread overview]
Message-ID: <20180327130058.GB4418@port70.net> (raw)
In-Reply-To: <E9B8FCA610BB6249B7C397BE4A01AE194122A1@SRVDE355.weidmueller.com>

* Salman.Ahmed@weidmueller.com <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.


      reply	other threads:[~2018-03-27 13:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-27 12:00 Salman.Ahmed
2018-03-27 12:32 ` Jens Gustedt
2018-03-27 12:51   ` AW: " Salman.Ahmed
2018-03-27 13:00     ` Szabolcs Nagy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180327130058.GB4418@port70.net \
    --to=nsz@port70.net \
    --cc=Salman.Ahmed@weidmueller.com \
    --cc=jens.gustedt@inria.fr \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).