#1992: 6.8.2 intermittent build failure on multiple OS X versions
----------------------+-----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 6.8.3
Component: Compiler | Version: 6.8.2
Severity: normal | Resolution: duplicate
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Multiple
Os: MacOS X |
----------------------+-----------------------------------------------------
Comment (by gw):
Of course, what I meant was
{{{
--- rts/posix/FileLock.c.sav 2008-03-03 11:40:14.000000000 -0500
+++ rts/posix/FileLock.c 2008-03-03 11:43:40.000000000 -0500
@@ -88,6 +88,17 @@
if (for_writing || lock->readers < 0) {
return -1;
}
+
+ // have we seen this fd before?
+ if (lookupHashTable(fd_hash, fd) == NULL) {
+ insertHashTable(fd_hash, fd, lock);
+ }
+ else
+ {
+ errorBelch("fd %d tries to lock the same file twice", fd);
+ return -1;
+ }
+
lock->readers++;
return 0;
}
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1992#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs