Recently we've found that FreeBSD is segfaulting or hanging frequently when dealing with what we suspect is a multithreaded forking situation. I've written a small program (attached) which exhibits the bug. This program will segfault or trip an assertion in libthr frequently, but not always. Fix: Patch attached with submission follows: How-To-Repeat: 1. Download attached bug.c 2. clang -o bug bug.c -lthr 3. Run the program repeatedly until it segfaults, normally requiring less than 500 runs. When running the program, I've been using this script: for i in {1..1000}; do; echo $i; ./bug || break; done
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped