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,968
    • Issues 4,968
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 474
    • Merge requests 474
  • 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
  • #7953
Closed
Open
Created May 31, 2013 by Ian Lynagh <igloo@earth.li>@trac-igloo

Segfault on x86 with -O2

First reported by Kazu Yamamoto in http://www.haskell.org/pipermail/ghc-devs/2013-May/001346.html

On OSX x86 with 7.7.20130530:

$ ghc --make Main -O2 -Wall
[1 of 1] Compiling Main             ( Main.hs, Main.o )
Linking Main ...
$ ./Main
Winner (E {_key = 156, prio = 9.443531728518195e-3}) (LLoser [...]
Before atMost
[E {_key = 2, prio = 6.2447874501499356e-2},[...]prio = 0.35312841343485957}Segmentation fault: 11

It randomly fails with either "Segmentation fault: 11" or "Bus error: 10". Sometimes it succeeds.

With -O it apparently always succeeds.

Trac metadata
Trac field Value
Version 7.7
Type Bug
TypeOfFailure OtherFailure
Priority highest
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