[Pkg-gauche-devel] Bug#779949: gauche: possible data race around PORT_UNLOCK

James Cowgill james410 at cowgill.org.uk
Fri Mar 6 17:21:55 UTC 2015

Source: gauche
Version: 0.9.4-5
Severity: normal
Tags: patch


After applying the libatomic-ops patch [1], gauche almost finishes
building on mips64el but it sometimes fails the "threads" test. I found
this was caused by a possible data race in the PORT_UNLOCK macro because
it doesn't issue a memory barrier when unlocking the lock (and so
earlier stores might be moved AFTER the unlock macro).

I've attached a patch which fixes this. I've tried to add the equivalent
for Windows (if you wanted to upstream it) but I haven't tested it


[1] https://bugs.debian.org/774886
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 41_port_unlock_race.patch
Type: text/x-patch
Size: 1679 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gauche-devel/attachments/20150306/86e54f57/attachment.bin>

More information about the Pkg-gauche-devel mailing list