#807: glibc double free error when running program compiled for profiling with
-px RTS option
----------------------------------+-----------------------------------------
    Reporter:  [EMAIL PROTECTED]  |        Owner:                         
        Type:  bug                |       Status:  new                    
    Priority:  low                |    Milestone:  6.4.2                  
   Component:  Compiler           |      Version:  6.5                    
    Severity:  minor              |     Keywords:  profiling px glibc free
          Os:  Linux              |   Difficulty:  Unknown                
Architecture:  x86                |  
----------------------------------+-----------------------------------------
After compiling a Haskell program for profiling, running the program with
 the RTS option -px results into a glibc error:

 {{{*** glibc detected *** double free or corruption (!prev): 0x087285d8
 ***}}}

 It happens at the very end of the execution of a program. A `.prof'-file
 is generated and I can view it with ghcprof. So, I guess it's not
 important, but I just wanted to mention it.


 To reproduce:

 {{{
 ---
 $ cat Main.hs
 module Main where
   main = putStrLn "hello world"
 ---
 $ rm Main *.o *.hi
 ---
 $ ghc --make -prof -auto-all Main.hs
 ---
 $ ./Main +RTS -px -RTS
 hello world
 *** glibc detected *** double free or corruption (!prev): 0x09f275d8 ***
 Aborted
 ---
 $ cat Main.prof
 "Wed Jun 28 14:15 2006"
 "20 ms"
 1 81 "CAF" "Text.Read"
 1 80 "CAF" "Data.Bool"
 1 79 "CAF" "Data.Eq"
 1 78 "CAF" "Data.Ord"
 ... snip ...
 ---
 }}}

 GHC versions:
 * 6.5.20060627
 * 6.4.2

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