mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Simon <simonhf@gmail.com>
To: musl@lists.openwall.com
Subject: [musl] Bug report: Reproduction of seg fault caused by musl thread creation race condition
Date: Sun, 26 Jan 2020 16:33:57 -0800	[thread overview]
Message-ID: <CABkUXbdOP8d=BzFTpYetmEEKyEwWqwaW7NmmB9vdJacu-wXABQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 672 bytes --]

Hello! I recently had some C code which works normally with glibc but seg
faults sometimes with musl. I managed to reproduce the seg fault via
musl-gcc and Alpine Linux and document it here [1]. Seems to be some kind
of race condition, so hopefully you guys also get a seg fault when you
follow my reproduction steps. Hope this helps and looking forward to any
feedback or helping further if possible, Simon

P.S. musl newbie question: Why does my binary built on Alpine Linux report
a .so being loaded by ldd, but on Ubuntu the same binary is reported as
being static? Also, detail that here [1] too.

[1] https://gist.github.com/simonhf/6d8097f4d6caa572cc42354f494b20ef

[-- Attachment #2: Type: text/html, Size: 836 bytes --]

             reply	other threads:[~2020-01-27  0:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-27  0:33 Simon [this message]
2020-01-27  5:28 ` Markus Wichmann
2020-01-27 17:51 ` Rich Felker
2020-01-27 19:59   ` Simon
2020-01-27 20:37     ` Szabolcs Nagy
2020-01-27 20:46       ` Rich Felker
2020-02-03 21:14 ` [musl] Why does musl printf() use so much more stack than other implementations when printf()ing floating point numbers? Simon
2020-02-03 21:57   ` Rich Felker
2020-02-03 23:05     ` Szabolcs Nagy
2020-02-03 23:52       ` Szabolcs Nagy

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='CABkUXbdOP8d=BzFTpYetmEEKyEwWqwaW7NmmB9vdJacu-wXABQ@mail.gmail.com' \
    --to=simonhf@gmail.com \
    --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).