Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,866
    • Issues 4,866
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 451
    • Merge requests 451
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #807
Closed
Open
Created Jun 28, 2006 by amiddelk@cs.uu.nl@trac-amiddelk

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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking