Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231005021539.GG4163@brightrain.aerifal.cx>
Date: Wed, 4 Oct 2023 22:15:39 -0400
From: Rich Felker <dalias@...c.org>
To: Carl Chave <online@...ve.us>
Cc: musl@...ts.openwall.com
Subject: Re: Hung processes with althttpd web server

On Wed, Oct 04, 2023 at 09:41:41PM -0400, Carl Chave wrote:
> Hello, I'm running the althttpd web server on Alpine Linux using a Ramnode VPS.
> 
> I've been having issues for quite a while with "hung" processes. There
> is a long lived parent process and then a short lived forked process
> for each http request. What I've been seeing is that the forked
> processes will sometimes get stuck:
> 
> sod01:/srv/www/log$ sudo strace -p 11329
> strace: Process 11329 attached
> futex(0x7f5bdcd77900, FUTEX_WAIT_PRIVATE, 4294967295, NULL
> 
> Please see this forum thread for additional information:
> https://sqlite.org/althttpd/forumpost/4dc31619341ce947
> 
> That thread is kind of all over the place though as I banged around
> trying to figure out how to troubleshoot the issue. The last thing I
> tried was to statically build althttpd in a glibc based Void Linux
> chroot. I ran that on the Alpine VPS for 37 days without issue. I
> switched back to the musl dynamically linked build and 14 hours later
> got a hung process.
> 
> Can you give me any tips on how to troubleshoot this further?

1. What Alpine/musl version are you using? If it's older, it might be
   something that would be different in current versions.

2. Can you attach gdb to the hung process and identify what lock
   object it's waiting on?

3. Is this stock althttpd from sqlite?

4. Is the process multithreaded? I don't see where althttpd is doing
   anything with threads but there could be library code I'm not aware
   of.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.