Skip to content
GitLab
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 5,400
    • Issues 5,400
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 590
    • Merge requests 590
  • 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 CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #23071
Closed
Open
Issue created Mar 04, 2023 by Chris Wendt@chrismwendtReporter

Segfault using listThreads

Summary

listThreads causes a segfault.

Steps to reproduce

-- A.hs
main = forever $ listThreads >>= print
$ _build/stage1/bin/ghc A.hs && ./A
...snip about 1000 of the same line
[ThreadId 1]
[ThreadId 1]
[ThreadId 1]
fish: Job 1, './A' terminated by signal SIGSEGV (Address boundary error)

Expected behavior

Don't segfault.

Environment

  • GHC version used: 9.6.1-rc1 compiled from source at commit fbc98e66
  • Operating System: Mac M1 13.1
  • System Architecture: arm
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking