Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000036Core InformAssertions and creationspublic2010-06-15 08:412010-06-20 19:31
Reporterjmcgrew 
Assigned Tograham 
PrioritynormalSeveritycriticalReproducibilityalways
StatusclosedResolutionfixed 
Platformx86OSWindowsOS Version7
Product Version6E59 
Target VersionFixed in Version6E59 (re-release) 
Summary0000036: Code 10 error from creating too many duplicate objects
DescriptionAs discussed at http://groups.google.com/group/rec.arts.int-fiction/msg/ea531e4e56345cfe [^] the following code crashes the Windows compiler with code 10.
Minimal Source Text To Reproduce
"Test" by Mikawa

Testroom is a room. "For testers only.".

A Ipad is a kind of thing. in the Testroom are 99 Ipads.
A Ipod is a kind of thing. in the Testroom are 99 Ipods.
A Imac is a kind of thing. in the Testroom are 99 Imacs. 
Additional InformationIt reportedly works on OS X.

99, 99, and 13 compiles, but 99, 99, and 14 crashes.
TagsNo tags attached.
Effect(critical) Compiler crashes
Attached Files

- Relationships

-  Notes
(0000005)
Jim Aikin (reporter)
2010-06-15 14:49

Duplicate objects are only one of the potential causes. I suspect a more general memory allocation error, as I'm able to produce the same phenomenon by adding one too many ordinary objects to a test game that has NO duplicates.
(0000006)
graham (administrator)
2010-06-15 15:09

This works just as it should on OS X, creating 99 of each. We're investigating.
(0000011)
DavidK (developer)
2010-06-16 03:46

Initial testing indicates that by the time the failure occurs there's no usable stack backtrace: most likely the result of stack corruption. This will take a bit of work to track down.
(0000013)
jmcgrew (administrator)
2010-06-16 11:15

This also causes a code 10:

Include Unicode Character Names by Graham Nelson.
Home is a room.
When play begins: say "[unicode latin small letter e with acute]".
(0000019)
DavidK (developer)
2010-06-17 00:08

Okay, now I've got a stack backtrace. Both test cases in the above and a separate test case from Benjamin Penney fail at the same point, so they all look to be the same bug.
(0000021)
graham (administrator)
2010-06-17 11:08

Thanks to David's detective work, we believe we understand this issue now and have fixed it. The Windows build of 6E59 is being reissued immediately with this fix, given its criticality.

- Issue History
Date Modified Username Field Change
2010-06-15 08:41 jmcgrew New Issue
2010-06-15 08:41 jmcgrew Status new => confirmed
2010-06-15 08:42 jmcgrew Description Updated View Revisions
2010-06-15 14:49 Jim Aikin Note Added: 0000005
2010-06-15 15:09 graham Note Added: 0000006
2010-06-16 03:46 DavidK Note Added: 0000011
2010-06-16 11:15 jmcgrew Note Added: 0000013
2010-06-17 00:08 DavidK Note Added: 0000019
2010-06-17 11:08 graham Note Added: 0000021
2010-06-17 11:08 graham Status confirmed => resolved
2010-06-17 11:08 graham Resolution open => fixed
2010-06-17 11:08 graham Assigned To => graham
2010-06-17 17:01 jmcgrew Status resolved => closed
2010-06-17 17:01 jmcgrew Fixed in Version => 6E59
2010-06-20 19:31 jmcgrew Fixed in Version 6E59 => 6E59 (re-release)


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker