Mercury Bugs - mercury
View Issue Details
0000385mercuryBugpublic2015-04-06 18:472015-07-22 09:08
Reporterdirkz 
Assigned Tojuliensf 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformMinGW/MSYS 32bit rotd-2015-03-10OSWindows 7 Professional 64 bitOS VersionWin 7 64 bit
Product Version 
Target VersionFixed in Version 
Summary0000385: mercury_compile.exe crashes during compilation of large fact table on MinGW/MSYS
Descriptionmercury_compile.exe crashes without giving any error message at all.

It seems that the crash occurs where Mercury normally makes the .int3-file.

The same module compiles without any problems on Mac OS X version 10.10.

Mercury-Version: rotd-2015-03-10
Steps To Reproducemmc --make --grade none.gc contextOfDataPoints
Additional InformationAs a workaround, I can use pragma fact_table.
TagsNo tags attached.
Attached Filesgz contextOfDataPoints.m.gz (138,275) 2015-04-06 18:47
https://bugs.mercurylang.org/file_download.php?file_id=243&type=bug

Notes
(0000824)
juliensf   
2015-04-07 13:56   
The compiler built from the source distribution (for 32-bit MinGW/MSYS) is aborting with error status
0XC0000FD (i.e. STATUS_STACK_OVERFLOW).
(0000845)
zs   
2015-07-22 09:08   
As discussed on the mailing list, the problem was stack exhaustion while parsing a very long item list.

Fixed by commit f2043fc9bd58b084701fc8e7618e0a5ccbf83d7f. It should be in the next release of the day. (It is NOT in the rotd for july 20.)

Issue History
2015-04-06 18:47dirkzNew Issue
2015-04-06 18:47dirkzFile Added: contextOfDataPoints.m.gz
2015-04-07 13:56juliensfNote Added: 0000824
2015-04-07 13:56juliensfAssigned To => juliensf
2015-04-07 13:56juliensfStatusnew => confirmed
2015-07-22 09:08zsNote Added: 0000845
2015-07-22 09:08zsStatusconfirmed => resolved
2015-07-22 09:08zsResolutionopen => fixed