commit c809367cb503830346bfb1d1fd927c09d3f3cb16
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Feb 16 00:32:00 2026 +0100

    crash: Fix hang on x86_64 core generation
    
    The produced core file still make gdb crash, but at least crash doen't
    hang.

diff --git a/exec/elfcore.c b/exec/elfcore.c
index 8c85b13b4..a2360965a 100644
--- a/exec/elfcore.c
+++ b/exec/elfcore.c
@@ -97,6 +97,11 @@ fetch_thread_fpregset (thread_t thread, prfpregset_t *fpregs)
   struct i386_float_state st;
   mach_msg_type_number_t count = i386_FLOAT_STATE_COUNT;
 
+  if (!*fpregs)
+    /* FIXME: having a pointer here is bogus actually, prfpregset_t should be a
+       struct, not a pointer, like on i386.  This needs to be fixed in glibc
+       etc.  */
+    return;
   memset (*fpregs, 0, sizeof (**fpregs));
 
   err = thread_get_state (thread, i386_FLOAT_STATE,
