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 461
    • Merge requests 461
  • 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
  • #2047
Closed
Open
Created Jan 15, 2008 by mte@trac-mte

ghc compiled program crashes with segfault when using -M and/or -c

When running my program with limited heap size (-H128m) and/or using the compacting procedure (-c) in garbage collection, the program crashes with the following message:

Segmentation fault/access violation in generated code

It seems that the segfault occurs the first time the garbage collector runs as the log file generated with -S contains the headline only.

The program runs fine without the -M and -c options.

This problem is critical from my point of view as I cannot control what kind of data the customer will supply to the algorithm and I would the prefer the algorithm (then deployed as a DLL) to gracefully report a heap overflow instead of eating all the customer's terminal server's memory.

Let me know how I can help to fix this bug.

As the source code is proprietary, I cannot attach it here.

Trac metadata
Trac field Value
Version 6.8.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
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