#3215: Valgrind support
-----------------------------+----------------------------------------------
 Reporter:  cmcq             |          Owner:          
     Type:  feature request  |         Status:  reopened
 Priority:  normal           |      Milestone:          
Component:  Runtime System   |        Version:  6.10.3  
 Severity:  trivial          |     Resolution:          
 Keywords:  valgrind         |       Testcase:  yes     
       Os:  Linux            |   Architecture:  x86     
-----------------------------+----------------------------------------------
Comment (by cmcq):

 Also see #793 regarding use of libffi.

 I get this unrelated problem using UseLibFFIForAdjustors=YES on GHC from
 darcs:

 {{{
 $ gdb -q ./finalizer_queue
 (gdb) break MallocFailHook
 Breakpoint 1 at 0x8194826: file rts/hooks/MallocFail.c, line 14.
 (gdb) r
 Starting program: /home/colin/FinalizerQueue/finalizer_queue
 [Thread debugging using libthread_db enabled]
 [New Thread 0xb7ce86d0 (LWP 13368)]
 [New Thread 0xb7affb90 (LWP 13371)]
 [New Thread 0xb72feb90 (LWP 13372)]
 [Switching to Thread 0xb72feb90 (LWP 13372)]

 Breakpoint 1, MallocFailHook (request_size=4294967292, msg=0x81d3870
 "createAdjustor")
     at rts/hooks/MallocFail.c:14
 14          fprintf(stderr, "malloc: failed on request for %lu bytes;
 message: %s\n", request_size, msg);
 (gdb) where
 #0  MallocFailHook (request_size=4294967292, msg=0x81d3870
 "createAdjustor")
     at rts/hooks/MallocFail.c:14
 #1  0x08187b87 in stgMallocBytes (n=-4, msg=0x81d3870 "createAdjustor")
     at rts/RtsUtils.c:201
 #2  0x08182800 in createAdjustor (cconv=1, hptr=0xc, wptr=0x804b9c0
 <Main_dDP>,
     typeString=0x81c0008 "") at rts/Adjustor.c:97
 #3  0x0804ac7f in sG9_info ()
 #4  0x00000001 in ?? ()
 #5  0x080750bc in base_GHCziIOBase_a23_info ()
 #6  0xb7b8004a in ?? ()
 Backtrace stopped: previous frame inner to this frame (corrupt stack?)
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3215#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to