Skip to content
Snippets Groups Projects
Commit 6c823b58 authored by Samuel Thibault's avatar Samuel Thibault
Browse files

hurd: Fix calling pthread_sigmask when no thread was created yet.

debian/patches/hurd-i386/git-pthread_sigmask_nothread.diff
parent 60977a30
No related branches found
No related tags found
No related merge requests found
Pipeline #827433 passed with warnings
......@@ -9,6 +9,8 @@ glibc (2.41-4) UNRELEASED; urgency=medium
[ Samuel Thibault ]
* debian/patches/hurd-i386/git-pthread_once.diff: Move pthread_once symbol
to libc, to fix bison.
* debian/patches/hurd-i386/git-pthread_sigmask_nothread.diff: Fix calling
pthread_sigmask when no thread was created yet.
 
-- Aurelien Jarno <aurel32@debian.org> Sat, 01 Mar 2025 23:26:33 +0100
 
......
Upstream 2.42 has a much more involved cleanup fix which in the end
boils down to this.
Index: glibc-upstream/sysdeps/mach/hurd/htl/pt-sigstate.c
===================================================================
--- glibc-upstream.orig/sysdeps/mach/hurd/htl/pt-sigstate.c
+++ glibc-upstream/sysdeps/mach/hurd/htl/pt-sigstate.c
@@ -36,7 +36,10 @@ __pthread_sigstate (struct __pthread *th
if (set != NULL)
new = *set;
- ss = _hurd_thread_sigstate (thread->kernel_thread);
+ if (thread == _pthread_self ())
+ ss = _hurd_self_sigstate ();
+ else
+ ss = _hurd_thread_sigstate (thread->kernel_thread);
assert (ss);
_hurd_sigstate_lock (ss);
......@@ -29,6 +29,7 @@ hurd-i386/git-proc_reauth.diff
# Commited for 2.42
hurd-i386/git-mig-strncpy.diff
hurd-i386/local-pthread_once.diff
hurd-i386/git-pthread_sigmask_nothread.diff
hurd-i386/local-intr-msg-clobber.diff
hurd-i386/local-enable-ldconfig.diff
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment