From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.2 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by inbox.vuxu.org (OpenSMTPD) with SMTP id 0cb872bd for ; Mon, 27 Jan 2020 00:34:24 +0000 (UTC) Received: (qmail 25672 invoked by uid 550); 27 Jan 2020 00:34:21 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 25634 invoked from network); 27 Jan 2020 00:34:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=I/qYDJ71NZaNq31Hs7EsCcgqS1S5CtaGT6WUiZ7D2Ok=; b=jw1R9i6sScdH9MPNlXcuRoucDEksgY+06j/SlRh50I5/OW5k/+9vfj5bahEjimBERK gfbIVOVbjcXQbzvqQuz8NKW7rImajqQmU171AxUK+yeECrXlhj+kNTX0oDc6DnEuQ0Gz D33Sz3s4525HGCXm+sGfj8ExwIgb4uDINQzfUoLFOdsBhYCnM7IkV1V2Gqm5DXWSpnXW 7r9YkL0HrNi1r77Wj50neBEYotp5oYR0Jcz33HNwmiewtLg2/97jhJuUcDC91rIBA7dH /OnDrvFgs07WErm6IBp2fCaoP8BOKTUYYEFC1T9SB9UPT24mbSoWPCSOju0XWJlBglbV OvXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=I/qYDJ71NZaNq31Hs7EsCcgqS1S5CtaGT6WUiZ7D2Ok=; b=iMUHHtHC/OOwFCE3ZZGCgtoTVF5zQ6S5ew/P+TKuk40bD7wS5PvemXWOPNxMZD9AkA bEoi1NYsOxU8pqbmmkpkTv/Nak+4/2q7pz4EJdRDV25YC8VzblDmsnFNd5NN4+GrErcT P3JOiMZhmotfZB3BsQ1omqcCJ2dwebj90Gb1Lxo38WxgzQ+5IX1L0SHtEMCMUtS0abLr WONMI3tcPyYBiX2hd7zBNAxlYRyqS3vqgrMgouECjMUOeK4VNnRAx0cymcEnrCluAow+ 169XYpWuBPmxq8nT7l3goFTjek117S7vLX6niyl7hq2cOGw+Ndy04kkGLK08yX+V51QX HwVw== X-Gm-Message-State: APjAAAVnfD69Qtiwbu+BEzqff2kbEY3fR9173R45ILbX0/kDKCOH87rR UseW+dfadPR93jLqfGt7+fJvVT4zWa7EwjxUSkxitVxzIXg= X-Google-Smtp-Source: APXvYqxJJcUGl3bNxa/mYdPsq+M1K4+n3WWGjp1OtVqsD4BhM9uChEglCfQE/nB8NXDXhwrT6sIMh7Ms2K9DloKNEcM= X-Received: by 2002:a17:906:580a:: with SMTP id m10mr11120850ejq.296.1580085248793; Sun, 26 Jan 2020 16:34:08 -0800 (PST) MIME-Version: 1.0 From: Simon Date: Sun, 26 Jan 2020 16:33:57 -0800 Message-ID: To: musl@lists.openwall.com Content-Type: multipart/alternative; boundary="000000000000f82266059d144321" Subject: [musl] Bug report: Reproduction of seg fault caused by musl thread creation race condition --000000000000f82266059d144321 Content-Type: text/plain; charset="UTF-8" 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 --000000000000f82266059d144321 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello! I recently had some C code which works normall= y 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 re= port a .so being loaded by ldd, but on Ubuntu the same binary is reported a= s being static? Also, detail that here [1] too.

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