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.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 31954 invoked from network); 5 Oct 2023 05:04:12 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 5 Oct 2023 05:04:12 -0000 Received: (qmail 5164 invoked by uid 550); 5 Oct 2023 05:04:07 -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 11627 invoked from network); 5 Oct 2023 02:43:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chave-us.20230601.gappssmtp.com; s=20230601; t=1696473807; x=1697078607; darn=lists.openwall.com; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WK/ncOJS7wGwYFp3A0xNAEyXD3KafOvwEe0OJxHe0xw=; b=2K44GbI/BVRhnRIMz9rKo2E8OTVoqdqZ1lqLThIy62x49Pl66vPLxnk2vQa2Go5UPN Pj8U4JQDjnT7YCFomOMDESyU1+opC7ujOqHmxvOooaBkAAZVW8I5/sRqxSuHZedrCZEO GLVAbdVV534WDyMs47DhxZMU6bg9CRLh4HF8q+AhSnl4Z3KiJgXTUvIE+KzPQqBy1NBr hJlcGALW3ipTOL8OVd27GavcCrkIXCI2loz+I8v6GV3DMNkApZKdn5xbve50ry2A3LWV xHbO6iLSN+FwTpEjwR1D9Cs0P4+N1Qgc8LdMPigAaFQFapYHN+JL3Mz0NWhKS7V16HPy yAPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696473807; x=1697078607; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WK/ncOJS7wGwYFp3A0xNAEyXD3KafOvwEe0OJxHe0xw=; b=hqynFIkO+Ni4vCmFFg0xXo4mPJ5IFNdfyBdhtbNgKIlCxGjwcH8zyWlH7Z/2SEroUC op6RsPZBOtfCMeHqcapCCDaJRBYx+Ie1o4d6hcCDb1s0RFbrN3UUKctUpvQHtX2uc7jF 6UoOcaaKZRQqj/IVGNng+HHHMC7K2LTpdsrYyyVjV5IeFuX3IhP8PGrKQOrI2FLyVt/H X2/kkIAciFs57dMnKvCL10Frh0zxWsPcoYwyVi3xRKtBSfkKTlPwHho5o6VLF7tvTAF9 fcGT7KsCmMgrkDt+DiPbHmoM8Cl4o+YCYRAYRRuIv55SsVqovt6IMYGkVOj1qveoKHqh BFQg== X-Gm-Message-State: AOJu0YxKUuldC8IJ5tsPqetaroA2BB1KaQRuwEJUQMCLy+TrN3Nsl8Xx j+tP+kN8UVej4MCC2tNUCcYo3gxD5KO8985w2MxN5yZLLzinlHCMWWo= X-Google-Smtp-Source: AGHT+IEL0mgQ02+T+EwhtKEJNVO3T5OfCJRnphsgqRFPbRFHmXZzeTviztrWvD/2MC4yBIrm1CHe8JffnkJx8MCWO5w= X-Received: by 2002:a50:ee84:0:b0:531:2b0b:9b8 with SMTP id f4-20020a50ee84000000b005312b0b09b8mr3830705edr.7.1696473807497; Wed, 04 Oct 2023 19:43:27 -0700 (PDT) MIME-Version: 1.0 References: <20231005021539.GG4163@brightrain.aerifal.cx> In-Reply-To: <20231005021539.GG4163@brightrain.aerifal.cx> From: Carl Chave Date: Wed, 4 Oct 2023 22:43:16 -0400 Message-ID: To: Rich Felker Cc: musl@lists.openwall.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [musl] Hung processes with althttpd web server > 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.