Ticket #5226 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

<<loop>> with -threaded -feager-blackholing, but only sometimes

Reported by: dreixel Owned by: simonmar
Priority: high Milestone: 7.0.4
Component: Runtime System Version: 7.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Runtime crash Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

While benchmarking the performance of GHC's SMP parallelism, I ran into an issue where (rarely) a test would fail with <<loop>>. I tried hard to reduce this to a single file, which I am attaching to this report.

To reproduce, compile the program with --make -threaded -feager-blackholing -rtsopts -O1 and run multiple times with -Nm with m>=2. In my case, using N8 (on a machine with 8 cores), I once got the error after 35 tries, but sometimes it takes thousands of attempts. I'm also attaching a bash script to compile and run the test repeatedly.

Tested with current HEAD, built on a Intel Xeon E5320, "perf" settings without dynamic linking. But I think I also encountered this behavior in GHC 7.0.3.

Attachments

LoopPar.hs Download (1.2 KB) - added by dreixel 2 years ago.
LoopPar.sh Download (336 bytes) - added by dreixel 2 years ago.

Change History

Changed 2 years ago by dreixel

Changed 2 years ago by dreixel

Changed 2 years ago by simonmar

  • owner set to simonmar
  • failure changed from None/Unknown to Runtime crash
  • priority changed from normal to high
  • component changed from Compiler to Runtime System
  • milestone set to 7.2.1

Changed 2 years ago by simonmar

  • status changed from new to merge
  • milestone changed from 7.2.1 to 7.0.4

Fixed: changeset:d77cec05ebc9abe62b8af990b519fc9f36684239

We should get this fix into 7.0.4.

Changed 2 years ago by igloo

  • status changed from merge to closed
  • resolution set to fixed

Merged.

Note: See TracTickets for help on using tickets.