[Bug 206396] Crash while concurrent POSIX semaphore access

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 19 10:57:49 UTC 2016


            Bug ID: 206396
           Summary: Crash while concurrent POSIX semaphore access
           Product: Base System
           Version: 10.2-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: xelfium at gmail.com
                CC: freebsd-amd64 at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org

Created attachment 165809
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=165809&action=edit
Test code

I have faced a strange issue with POSIX semaphores. Program crashes when
several threads concurrently access POSIX semaphore under the same name. I
attached a test code to illustrate it. I have tried to compile this code using
Clang and GCC but it was the same result. If you add a pause between threads
creation then it executes fine.
The same code works fine on Linux and latest DragonFlyBSD.

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

More information about the freebsd-bugs mailing list