wingo pushed a commit to branch wip-whippet
in repository guile.

commit 89328fc5702bb595fa2810b7ef74895fc2cdefed
Author: Andy Wingo <wi...@pobox.com>
AuthorDate: Tue Jul 15 11:15:11 2025 +0200

    Fix error when tracing exited thread
    
    * libguile/threads.c (on_thread_exit): Set dynstack tag to 0.
---
 libguile/threads.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libguile/threads.c b/libguile/threads.c
index 93d5b9888..1bb6e4559 100644
--- a/libguile/threads.c
+++ b/libguile/threads.c
@@ -477,6 +477,7 @@ on_thread_exit (void *v)
 
   /* Although this thread has exited, the thread object might still be
      alive.  Release unused memory.  */
+  t->dynstack.tag = 0; /* Indicate that the dynstack should not be traced.  */
   t->dynstack.base = NULL;
   t->dynstack.top = NULL;
   t->dynstack.limit = NULL;

Reply via email to