[Bug 252579] fork() causes process to hang in rare circumstances.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jan 12 07:05:27 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252579
--- Comment #2 from shamaz.mazum at gmail.com ---
This is a smaller case: just a library linked against pthread which spawns a
thread and a main program which loads that library and forks.
Instructions are similar:
1) Download newtest.tar.gz
2) Compile the library: cc -shared -fPIC -pthread -o bug-lib.so bug-lib.c
3) Compile the main program: cc -o demo demo.c
4) Run it: env LD_LIBRARY_PATH=. ./demo
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-threads
mailing list