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 21795 invoked from network); 5 Oct 2023 13:39:43 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 5 Oct 2023 13:39:43 -0000 Received: (qmail 12033 invoked by uid 550); 5 Oct 2023 13:39:38 -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 11998 invoked from network); 5 Oct 2023 13:39:38 -0000 Date: Thu, 5 Oct 2023 15:39:26 +0200 From: Szabolcs Nagy To: Carl Chave Cc: Rich Felker , musl@lists.openwall.com Message-ID: <20231005133926.GC1427497@port70.net> Mail-Followup-To: Carl Chave , Rich Felker , musl@lists.openwall.com References: <20231005021539.GG4163@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [musl] Hung processes with althttpd web server * Carl Chave [2023-10-04 22:43:16 -0400]: > > 1. What Alpine/musl version are you using? If it's older, it might be > > something that would be different in current versions. > > Alpine 3.18.3 with musl package musl-1.2.4-r1 x86_64 > > > 2. Can you attach gdb to the hung process and identify what lock > > object it's waiting on? > > I don't really know what I'm doing with gdb. This is probably not helpful: > (gdb) bt > #0 0x00007f5fb449c0dd in ?? () from /lib/ld-musl-x86_64.so.1 > #1 0x0000000000000002 in ?? () > #2 0x0000000000000000 in ?? () you might want to apk add musl-dbg the bt should be more useful then. in this case you can also look at (gdb) disas $rip-40,+80 (gdb) info reg since the address is the first arg to a futex syscall (rdi). then you can try to dig around to see where rdi points to (gdb) x/4wx $rdi-4 (gdb) info sym $rdi etc