#2398: segfault in cmpLocks on 64 bit multicore
----------------------------+-----------------------------------------------
 Reporter:  sclv            |          Owner:         
     Type:  bug             |         Status:  new    
 Priority:  low             |      Milestone:  6.10.1 
Component:  Runtime System  |        Version:  6.8.3  
 Severity:  major           |     Resolution:         
 Keywords:                  |     Difficulty:  Unknown
 Testcase:                  |   Architecture:  Unknown
       Os:  Linux           |  
----------------------------+-----------------------------------------------
Comment (by sclv):

 {{{
 > ghc --make -threaded -O2 -debug testfi.hs
 > gdb --args ./testfi +RTS -N4
 (gdb) run

 [Lots of text removed]

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 0x43806950 (LWP 1248)]
 0x000000000043990c in cmpLocks (w1=531, w2=1132470304) at
 posix/FileLock.c:35
 35          return (l1->device == l2->device && l1->inode == l2->inode);

 (gdb) bt

 #0  0x000000000043990c in cmpLocks (w1=531, w2=1132470304) at
 posix/FileLock.c:35
 #1  0x0000000000458166 in lookupHashTable (table=0x6ae110, key=1132470304)
 at Hash.c:197
 #2  0x0000000000439a1d in lockFile (fd=533, dev=2055, ino=10584501,
 for_writing=0)    at posix/FileLock.c:73
 #3  0x000000000040597a in s7AW_info ()
 #4  0x0000000600000012 in ?? ()
 #5  0x0000000000405e28 in scJ1_info ()
 #6  0x0000000000405e10 in scJ1_info ()
 #7  0x0000000000444a00 in ?? ()
 #8  0x00002aaaaab15c50 in ?? ()
 #9  0x0000000000405e40 in scJ1_info ()
 #10 0x00002aaaaab15c50 in ?? ()
 #11 0x0000000000000000 in ?? ()
 }}}

 Again this is on an Intel Core 2 Quad. I'm now running it on a 6.9
 snapshot from June 15, by the way, and getting the same result. Note that
 it seems to happen 75% of the time at least at -N4. At -N3 I'm getting it
 25% of the time or so. I'll attach the file I'm using as well, although I
 doubt that should have much impact on the results.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2398#comment:5>
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

Reply via email to