Subject: Re: bin/30756
To: None <gnats-bugs@netbsd.org>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: netbsd-bugs
Date: 08/15/2005 19:11:04
This is a multipart MIME message.

--==_Exmh_53492548679310
Content-Type: text/plain; charset=us-ascii


rpaulo@NetBSD.org said:
> thread_resume_suspend_cb: td_thr_suspend(0xa3bc2c0): generic error

The appended patch helps for this problem.
It seems that the thread debugging stuff needs some cleanup...

best regards
Matthias



--==_Exmh_53492548679310
Content-Type: text/plain ; name="pthgdb.txt"; charset=us-ascii
Content-Description: pthgdb.txt
Content-Disposition: attachment; filename="pthgdb.txt"

--- nbsd-thread.c.~1.15.~	Wed Oct 13 14:37:17 2004
+++ nbsd-thread.c	Mon Aug 15 19:00:32 2005
@@ -222,7 +222,7 @@ thread_resume_suspend_cb (td_thread_t *t
   if (td_thr_info (th, &ti) != 0)
       return -1;
 
-  if ((ti.thread_id != GET_THREAD (*pt)) &&
+  if ((ti.thread_id != GET_THREAD (*pt) + 1) &&
       (ti.thread_type == TD_TYPE_USER) &&
       (ti.thread_state != TD_STATE_SUSPENDED) &&
       (ti.thread_state != TD_STATE_ZOMBIE))

--==_Exmh_53492548679310--