[Bug 219399] System panics after several hours of 14-threads-compilation orgies using poudriere on AMD Ryzen...

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 24 23:19:29 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219399

--- Comment #113 from Don Lewis <truckman at FreeBSD.org> ---
(In reply to Nils Beyer from comment #112)
Hmn ... what I though of a bug may not have been a bug after all ...

I missed the fact that that main initially set the lock, so the first instance
of threadx() should have properly initialized things afterall.  With the init
code removed, that instance of threadx() just spins on the lock instead of
doing the init stuff and then unlocking things and letting the other threads
run.

In this code in main():
         atomic_store(&flg, 1);
         atomic_store(&locked, 1);
change the second line so that locked is initialized to zero.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list