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=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4867 invoked from network); 29 Sep 2020 18:38:05 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 29 Sep 2020 18:38:05 -0000 Received: (qmail 1371 invoked by uid 550); 29 Sep 2020 18:37:00 -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 1279 invoked from network); 29 Sep 2020 18:36:59 -0000 Date: Tue, 29 Sep 2020 14:36:44 -0400 From: Rich Felker To: Jesse Hathaway Cc: musl@lists.openwall.com Message-ID: <20200929183644.GE17637@brightrain.aerifal.cx> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] Re: Pending patches for MT-fork stuff On Tue, Sep 29, 2020 at 01:04:06PM -0500, Jesse Hathaway wrote: > I was experiencing a hang when calling setreuid from a thread on musl > 1.2.1 as well as on master with these patches applied. I have attached > a Go program which hangs when run as the root user outputting only: > > main.go:31: Calling setreuid > > Whereas with glibc the setreuid call completes successfully, with the > following output: > > test.go:31: Calling setreuid > test.go:40: Running command > test.go:45: root > test.go:46: Command complete > > I am happy to help troubleshoot the issue, yours kindly, Jesse Can you provide an strace (with -f) showing the hang? It's probably not related to this since fork does not seem to be involved. Depending on how you're using Go, it may just be Go bypassing libc then trying to use libc functions, which at least used to be a big problem; I don't know if it's fixed nowadays or not. Rich