Closed DavidGriffith closed 8 years ago
Originally reported at http://www.intfiction.org/forum/viewtopic.php?f=7&t=19461&p=105831#p105707
Problems began with cbb8983fca27e313023198e2b60c99afec9f498a
When compiled to Glulx, the bug causes a segfault.
Problem appears to be in WriteListR() in verblibm.h
Note how the correct text is this:
You can see the letters X, Y and Z from a Scrabble set and four featureless
white cubes here.
The wrong text is this:
You can see the letters X, Y and Z from a Scrabble set, four featureless
white cubes,
(errors)
Clearly there's a fencepost error.
senc is being incremented once too many?
For what it's worth, those two above commits are bad. I managed to delete them from my local repo and force push those changes to Github. You won't be able to get them if you clone this repo, but for some strange reason they still exist on the Github website. A trouble ticket has been filed about this.
More from vlaviano:
I've continued working through DM4, and I've encountered an issue related to the exercises in §27 (Listing and grouping objects).
I have a group of Scrabble letters with a list_together routine (DM exercise 67) and a group of identical featureless cubes. The library's item listing code produces a number of errors when these two groups of items coexist either in the same room or in the player's inventory. If they are separated (one group in the room and the other group in the player's inventory) or if only one group is implemented (comment out either of the chunks of code between dashed lines in the test program below), item listing behaves as expected.
Adding a regular item (e.g., Object -> rock "rock" with name 'rock';) doesn't appear to have an impact either way. When the letters and cubes are together, the issue manifests.
When the test program is compiled without strict mode (-~S), we get the following more readable summary of errors: