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,869
    • Issues 4,869
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 455
    • Merge requests 455
  • 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
  • #21490
Closed
Open
Created May 04, 2022 by Guillaume Bouchard@guibouReporter

Live lock in acquire_spin_lock_slow_path

Summary

My program is sometime stuck, tacking CPU (100% of one capability), and making no progress.

When using perf top, I can observe that all the time is spent in acquire_spin_lock_slow_path, see image

Steps to reproduce

Unfortunately, I cannot reproduce easilly. What I know is:

  • I'm using GHC 9.2.1
  • This program is complex, involve multi threading, using -N8
  • The program uses weak reference finalizers

Expected behavior

My program should not live lock?

Environment

  • GHC version used: 9.2.1

Optional:

  • Operating System: Linux
  • System Architecture: x86_64

I found this log $2047 posted by @bgamari which may be related, but no ticket associated. At least, if the problem is already known / fixed, this ticket will be an entrypoint for reference.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking