From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,URIBL_BLACK autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26630 invoked from network); 26 Oct 2020 18:52:51 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 26 Oct 2020 18:52:51 -0000 Received: (qmail 3347 invoked by uid 550); 26 Oct 2020 18:52:48 -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 3329 invoked from network); 26 Oct 2020 18:52:48 -0000 X-Virus-Scanned: Debian amavisd-new at disroot.org Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1603738355; bh=K/5TejuYrovYH9TbPtQdSlXdZVYLjvLe1GxBgTmJO8E=; h=Subject:From:To:Date:In-Reply-To; b=gThi509NWnu12ObB1AdkVj2SBQih0tN7rBLoKu/KtGKKicc2orSxKq3WBZW0ey1TY QRH+BRbsqqAaD6iPBdoiLPe0JdZtv3MXcKfvdUCyqEzGRBv3sVaDSU+qF/+agatoPV 1q8Su+A8cVW05dDndWxV1fE6dCRHiPED56jWlhoyMfQiwzPTMHhCLEEUjVPaf0uC2T sP++YT0nNL8IL1Eux0sFbOQjmEUBRoFVLFrWFZHQaZFA0BZpQOx/a5l/0ANtwO47Pq uvaBL20uWj2P9ThDl3NN0yaE/yrnIkj4pHO6W4q/hjBjje3gU2iixp3UqzP5LN7lPV x58VmfKx/oV0Q== Content-Type: text/plain; charset=UTF-8 From: =?utf-8?q?=C3=89rico_Nogueira?= To: , Date: Mon, 26 Oct 2020 15:44:51 -0300 Message-Id: In-Reply-To: <20201026032943.GK534@brightrain.aerifal.cx> Subject: Re: [musl] Status report and MT fork On Sun Oct 25, 2020 at 8:29 PM -03, Rich Felker wrote: > > + for (i=3D0; ictor_visitor->tid < 0) { > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Invalid access as-is, should be queue[i]->ctor_visitor && ... > > > + error("State of %s is inconsistent due to multithreaded fork\n", > > + queue[i]->name); > > + free(queue); > > + if (runtime) longjmp(*rtld_fail, 1); > > + } > > =20 > > return queue; > > } > > Rich As a warning, don't install the resulting libc.so on your system without the above fix! It segfaulted even with simple applications here. Re. the patches, I am now able to import an image into gscan2pdf (a Perl GTK application) - though it required building Perl with a bigger thread stack size. With musl 1.2.1 it simply hung on a futex syscall. Cheers, =C3=89rico