glibc double free error when running program compiled for profiling with -px RTS option
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
Trac metadata
Trac field | Value |
---|---|
Version | 6.5 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | low |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |