Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,265
    • Issues 4,265
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 419
    • Merge Requests 419
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #14310

Closed
Open
Opened Oct 03, 2017 by mbw@trac-mbw

Assertion triggered by STM invariant.

The program attached depends on the async and stm packages. It will push some numbers through a pipeline, while keeping track of some state.

If invoked without arguments, the program will output the state and result of each iteration. If invoked via ./repro check, an STM invariant will be installed when the state is initialized. This invariant will cause the program to

  1. hangup, presumably due to a livelock, if the program has been compiled without -debug, or
  2. crash with the following error:

internal error: ASSERTION FAILED: file rts/RaiseAsync.c, line 1001",

if the "-debug" flag has been used for compilation.

The latter case also happens with GHC 8.0.2:

internal error: ASSERTION FAILED: file rts/RaiseAsync.c, line 997

Furthermore, this problem only occurs if the program is compiled using the additional flags -rtsopts -threaded -with-rtsopts=-N.

Edited Mar 10, 2019 by Ben Gamari
Assignee
Assign to
8.6.1
Milestone
8.6.1 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#14310