mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Carl Chave <online@chave.us>
To: Rich Felker <dalias@libc.org>
Cc: musl@lists.openwall.com
Subject: Re: [musl] Hung processes with althttpd web server
Date: Wed, 4 Oct 2023 22:43:16 -0400	[thread overview]
Message-ID: <CAGP1gyM6P76mrJyXuLrdfCswGdtxrQZgPm2QY8xpU2ayzY_O-Q@mail.gmail.com> (raw)
In-Reply-To: <20231005021539.GG4163@brightrain.aerifal.cx>

> 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 ?? ()

> 3. Is this stock althttpd from sqlite?

I have some patches applied which can be seen here:
http://www.sodface.com/repo/index/aports/althttpd
I applied the same patches to the static glibc build.


> 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.

From the althttpd homepage:
Because each althttpd process only needs to service a single
connection, althttpd is single threaded. Furthermore, each process
only lives for the duration of a single connection, which means that
althttpd does not need to worry too much about memory leaks. These
design factors help keep the althttpd source code simple, which
facilitates security auditing and analysis.

  reply	other threads:[~2023-10-05  5:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-05  1:41 Carl Chave
2023-10-05  2:15 ` Rich Felker
2023-10-05  2:43   ` Carl Chave [this message]
2023-10-05 13:39     ` Szabolcs Nagy
2023-10-05 18:26       ` Carl Chave
2023-10-05 18:48         ` Markus Wichmann
2023-10-05 19:06           ` Carl Chave
2023-10-05  3:37 ` Markus Wichmann
2023-10-05 12:39   ` Rich Felker
2023-10-05 18:34     ` Markus Wichmann
2023-10-05 18:52   ` Carl Chave

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGP1gyM6P76mrJyXuLrdfCswGdtxrQZgPm2QY8xpU2ayzY_O-Q@mail.gmail.com \
    --to=online@chave.us \
    --cc=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).