Ticket #1076 (closed bug: duplicate)

Opened 6 years ago

Last modified 5 years ago

runhaskell crash with .hi/.o files in the directory

Reported by: guest Owned by:
Priority: normal Milestone: 6.6.1
Component: Compiler Version: 6.6
Keywords: Cc:
Operating System: Windows Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description (last modified by simonmar) (diff)

I've been playing around with the ICFP "universal machine" puzzle ( http://icfpcontest.org/task.shtml) For prototyping, I'm using runhaskell as a "script engine" from the SciTE editor on Win32. I'm running Windows XP Home 2002 SP2 with the package GHC6.6 downloaded from haskell.org.

I have some leftover .o/.hi files from compiling a previous version the project via the command line. If I delete those, the problem goes away.

I'll attach a zip of the directory contents as a repro case if the bug tracker allows me to.

>runhaskell um.hs
trying to Allocate array of size 0..
trying to Abandon size 0 allocation..
trying to Allocate size 11..
trying Array Index on allocated array..
trying Amendment of allocated array..
checking Amendment of allocated array..
trying Alloc(a,a) and amending it..
comparing multiple allocations..
pointer arithmetic..
check old allocation..
simple tests ok!
um.hs: internal error: interpretBCO: unknown or unimplemented opcode 22656
    (GHC version 6.6 for i386_unknown_mingw32)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
>Exit code: 3

Attachments

um.zip Download (70.2 KB) - added by guest 6 years ago.
Repro case

Change History

Changed 6 years ago by guest

Repro case

Changed 6 years ago by guest

More info: - If I delete unit.o, utils.o or unit.hi, the crash goes away - If I delete utils.hi, I get the following error message:

runhaskell um.hs

<interactive>: Unit.o: unknown symbol `_Utils_z3fU_closure'

Exit code: 1

Note that I haven't changed either of those .hs files since I last compiled them, and, in fact, the code doesn't reference anything defined in either of them except the import statement.

Changed 6 years ago by simonmar

  • description modified (diff)

Possibly the same as #1013.

Is it possible to reproduce the bug from scratch?

Changed 6 years ago by igloo

  • milestone set to 6.6.1

Changed 6 years ago by simonmar

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

No answer from submitter; I tried the example code and couldn't reproduce any bugs. The "unknown or unimplemented opcode" crash is almost certainly the same as #1013, and the other problems are most likely due to inconsistent .o/.hi files.

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.