#3167: Segmentation fault with compacting GC, and multiple threads
------------------------------+---------------------------------------------
 Reporter:  guest             |          Owner:                  
     Type:  bug               |         Status:  new             
 Priority:  normal            |      Milestone:                  
Component:  Runtime System    |        Version:  6.8.2           
 Severity:  major             |     Resolution:                  
 Keywords:                    |       Testcase:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
------------------------------+---------------------------------------------
Changes (by dons):

  * summary:  segmentation fault => Segmentation fault with compacting GC,
              and multiple threads

Comment:

 Can't reproduce this with ghc 6.10.1.

 It allocates about 2G and starts churning away happily:

 {{{
 $ ghc --make -O2 main.hs -threaded -fforce-recomp
 [1 of 1] Compiling Main             ( main.hs, main.o )
 Linking main ...

 $ ./main +RTS -A128M -s -c -N4 -RTS 5000000 500
 ./main 5000000 500 +RTS -A128M -s -c -N4
 500
 processing 1
 processing 126
 processing 251
 processing 2
 processing 3
 processing 4
 ...
 processing 486
 processing 487
 processing 488
 processing 489
 processing 490
 processing 491
 processing 492
 processing 493
 processing 494
 processing 495
 processing 496
 processing 497
 processing 498
 processing 499
 processing 500
 256

   15,191,954,480 bytes allocated in the heap
    1,847,859,512 bytes copied during GC
      738,284,008 bytes maximum residency (12 sample(s))
       15,017,912 bytes maximum slop
             3019 MB total memory in use (47 MB lost due to fragmentation)
   INIT  time    0.00s  (  0.03s elapsed)
   MUT   time   42.61s  ( 44.45s elapsed)
   GC    time   32.33s  ( 33.54s elapsed)
   EXIT  time    0.00s  (  0.10s elapsed)
   Total time   74.88s  ( 78.03s elapsed)

   %GC time      43.2%  (43.0% elapsed)

   Alloc rate    357,005,002 bytes per MUT second

   Productivity  56.8% of total user, 54.5% of total elapsed
 }}}


 Looks like it was fixed in GHC 6.10.x

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