Ticket #7387 (closed bug: fixed)

Opened 7 months ago

Last modified 7 months ago

threaded2 failures in HEAD

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

Description

I've been trying to track down the cause of some failures in HEAD:

   concurrent/prog001             concprog001 [bad exit code] (threaded2)
   concurrent/should_run          conc023 [bad exit code] (threaded2)
   concurrent/should_run          throwto001 [bad exit code] (threaded2)
   concurrent/should_run          throwto002 [bad exit code] (threaded2)

these are non-deterministic crashes that only happen with -N2 or greater. They probably resulted from the recent rewrite of the RTS .cmm code, but after a day or so spent trying to track down the cause I haven't been able to identify it yet.

Change History

Changed 7 months ago by simonmar

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

I believe these are fixed by

commit 9f68cceca364600e2ed8d8b4c9e2684eb83549fc

Author: Simon Marlow <marlowsd@gmail.com>
Date:   Mon Nov 5 14:49:05 2012 +0000

    loadThreadState should set HpAlloc=0

This was a change in the old code generator that didn't get propagated to the new code generator. A difficult bug to find! I'm looking into the best place to put an ASSERT() to catch bugs of this kind earlier.

Note: See TracTickets for help on using tickets.