From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id 80505214FE for ; Wed, 29 May 2024 14:04:45 +0200 (CEST) Received: (qmail 20409 invoked by uid 550); 29 May 2024 12:04:40 -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 20377 invoked from network); 29 May 2024 12:04:40 -0000 X-Envelope-To: musl@lists.openwall.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1716984272; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fxGUTa01E0GlaHxA9v/SuvkFLOg62cjxm0IMTYMyPlc=; b=hQOlwp56On0/lFCEsJ/qfw2f1fd4gqf/CPpfcqodg1v424kNWxLlMsvb9gE5OF+0r7ecus 3VmvOPH+ctWRtpm9cCeZLgx2EDbCxSv7NSqk813vRRI2lstoQfpRnc0jnNxHamDOTP2nS2 iNyL3XQpS4IC4ho3IaIBGM5FkZG61/iB+rK5z9jeQIx4rOvXsWyhki9dnXofrBlE+d+pPV R2Vjg3puG+YouDbgyhc7IoMosdNNAu96NcktB1ybSVAyLMEqsBx/TIbawXKxb5LUMzPdit s/Mi6C46AAdEb8BTQWibBPJSYMRAFqK0XZC+tv9Z4RJHsOyMmgrLCgxTNFP3pA== Message-ID: X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Pablo Correa Gomez To: musl@lists.openwall.com Date: Wed, 29 May 2024 14:04:25 +0200 Organization: postmarketOS Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Subject: [musl] Crash in kill(..., SIGHUP) when using SA_ONSTACK Hi everybody, I am responsible for musl CI in GNOME's GLib, and we have recently bumped into a crash that I have been unable to resolve.=20 https://gitlab.gnome.org/GNOME/glib/-/commit/137db219a7266300ffde1aa75d7812= 84fb0807cb introduced in GLib an alternate stack by setting the signal action SA_ONSTACK if available. However, the tests that were introduced, and that pass in most other libc's (there's CI for a lot more than just glibc and musl) crash in my alpine linux edge installation with SIGSEGV (stack trace below) while doing: kill (getpid(), SIGHUP) I have verified that not adding SA_ONSTACK fixes the crash. Would anybody have some pointers of what could possibly be going wrong? If anybody is really interested, the public issue is https://gitlab.gnome.org/GNOME/glib/-/issues/3315 Stack trace ------------ Thread 1 "unix" received signal SIGSEGV, Segmentation fault. 0x00007ffff7fa96e8 in __syscall2 (a2=3D1, a1=3D17483, n=3D62) at ./arch/x86_64/syscall_arch.h:21 warning: 21 ./arch/x86_64/syscall_arch.h: No such file or directory (gdb) bt #0 0x00007ffff7fa96e8 in __syscall2 (a2=3D1, a1=3D17483, n=3D62) at ./arch/x86_64/syscall_arch.h:21 #1 kill (pid=3D17483, sig=3Dsig@entry=3D1) at src/signal/kill.c:6 #2 0x0000555555556e96 in test_signal (signum=3Dsignum@entry=3D1) at ../glib/tests/unix.c:534 #3 0x0000555555557200 in test_signal_alternate_stack (signal=3D1) at ../glib/tests/unix.c:590 #4 0x00007ffff7e8f364 in test_case_run (path=3D, test_run_name=3D0x55555555d3f0 "/glib-unix/sighup/alternate-stack", tc=3D0x55555555db60) at ../glib/gtestutils.c:2988 #5 g_test_run_suite_internal (suite=3Dsuite@entry=3D0x55555555da70, path=3Dpath@entry=3D0x0) at ../glib/gtestutils.c:3090 #6 0x00007ffff7e8f2db in g_test_run_suite_internal (suite=3Dsuite@entry=3D0x7ffff7ffee20, path=3Dpath@entry=3D0x0) at ../glib/gtestutils.c:3109 #7 0x00007ffff7e8f2db in g_test_run_suite_internal (suite=3Dsuite@entry=3D0x7ffff7ffede0, path=3Dpath@entry=3D0x0) at ../glib/gtestutils.c:3109 #8 0x00007ffff7e8f86a in g_test_run_suite (suite=3Dsuite@entry=3D0x7ffff7ffede0) at ../glib/gtestutils.c:3189 #9 0x00007ffff7e8f8ea in g_test_run () at ../glib/gtestutils.c:2275 #10 0x00005555555561f7 in main (argc=3D, argv=3D) at ../glib/tests/unix.c:910 Best and thanks for your time, Pablo.