Ticket #1947 (closed task: fixed)

Opened 5 years ago

Last modified 5 years ago

Segmentation fault/access violation in generated code

Reported by: NeilMitchell Owned by: igloo
Priority: normal Milestone: 6.8.3
Component: Compiler Version: 6.8.1
Keywords: Cc:
Operating System: Windows Architecture: x86
Type of failure: Difficulty: Unknown
Test Case: simplrun010 Blocked By:
Blocking: Related Tickets:

Description

F:\Temp\supero\supero-msg\tak>ghc --make Main_.hs -o foo -O2
[1 of 1] Compiling Main             ( Main_.hs, Main_.o )
Linking foo.exe ...

F:\Temp\supero\supero-msg\tak>foo 24 16 8
Segmentation fault/access violation in generated code

F:\Temp\supero\supero-msg\tak>ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.8.1

Windows XP. The test case is rather big, and needs reducing - I'll come back and do that in a few days time unless anyone beats me to it (I have a paper deadline in 23 hours...)

Attachments

Main_.hs Download (13.0 KB) - added by NeilMitchell 5 years ago.

Change History

Changed 5 years ago by NeilMitchell

Changed 5 years ago by NeilMitchell

I should point out that I'm fairly certain that this code doesn't do what it was intended to (the tak benchmark), but it still shouldn't segfault.

Changed 5 years ago by simonmar

  • difficulty set to Unknown
  • milestone set to 6.8.3

Thanks Neil, I think we have enough to go on. (hint: the binding f34 is an infinite loop, avoiding that somehow will probably work around the problem).

Simon: let's discuss this one next week, I have some suspicious-looking entrails but I'm not entirely sure where to place the blame.

Changed 5 years ago by simonpj

  • owner set to igloo
  • type changed from bug to merge

Fixed, thank you.

Tue Dec  4 14:58:03 GMT 2007  simonpj@microsoft.com
  * Make eta reduction check more carefully for bottoms (fix Trac #1947)

Ian: please merge. And could you make this program into a test? (Compile with -O2 and run as above.) Thanks

Simon

Changed 5 years ago by igloo

  • type changed from merge to task

Merged. Still need to make the test.

Changed 5 years ago by igloo

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

I couldn't reproduce the problem with 6.8.2, but I have now added the program as test simplrun010 nevertheless.

Note: See TracTickets for help on using tickets.