Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002099I6 LibraryGeneralpublic2019-05-12 17:382019-06-17 04:44
ReporterDavidG 
Assigned ToDavidG 
PriorityhighSeverityseriousReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version6/12 
Target Version6/12Fixed in Version6/12 
Summary0002099: Ambiguity of HER as object pronoun versus possessive pronoun causes errors
DescriptionA longstanding bug dating at least as far back as version 6/3 concerns trouble with correctly distinguishing between HER as an object pronoun versus HER as a possessive pronoun. This was first brought to my attention with Balances.z5 by Graham Nelson (Release 5 / Serial number 961216 / Inform v6.10 Library 6/3). I was told that TAKE HER on the first move would trigger the bug. That was brought to me by someone who didn't fully understand the implications of the -i flag in Frotz. Then I got a report that a similar problem happens with the current Library codebase. This time it was TALK TO HER ABOUT STUFF.

With strict error checking turned on, the error message would be a nonfatal complaint of an "in" or "notin" test being done on something not an object. Without strict error checking, the error would be a fatal error about an attempt to access an illegal object.
Minimal Source Text To Reproduce
Include "parser.h";
Include "verblib.h";

Object here "Here or anywhere"
   with description "You are somewhere.",
   has light;

Object ball "ball" here
   with name 'ball';

Object rock "rock" here
   with name 'rock';

[ Initialise;
	location = here;
];


Include "grammar.h";
Additional InformationBalances crash:
BALANCES
An Interactive Short Story
Copyright (c) 1994, 1995, 1996 by Graham Nelson.
Release 5 / Serial number 961216 / Inform v6.10 Library 6/3
Standard interpreter 1.0

Ramshackle Hut
Until quite recently, someone lived here, you feel sure. Now the furniture is
matchwood and the windows are glassless. Outside, it is a warm, sunny day, and
grasslands extend to the low hills on the horizon.
Warning: @get_child called with object 0 (PC = ad67) (will ignore further
occurrences)

>take her
You can't see "her" (@Attempt to address illegal object -1.  This is normally
fatal.
Fatal error: Illegal object
[Hit any key to exit.]


Newer report:
Release 1 / Serial number 190512 / Inform v6.33 Library v6.12.3pre S

Here or anywhere
You are somewhere.

You can see a ball and a rock here.

>ask her about stuff

[** Programming error: tried to test "in" or "notin" of <routine 7223> **]


[** Programming error: tried to test "in" or "notin" of <routine 7223> **]


[** Programming error: tried to test "in" or "notin" of <routine 7223> **]

I'm not sure what "her" refers to.

>


Same as previous, but compiled without strict checking (inform '-~S' test.inf).

Release 1 / Serial number 190512 / Inform v6.33 Library v6.12.3pre

Here or anywhere
You are somewhere.

You can see a ball and a rock here.

>ask her about stuff
@Attempt to address illegal object 7223.  This is normally fatal.
Fatal error: Illegal object
[Hit any key to exit.]
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004854)
DavidG (developer)
2019-05-12 17:42

Curiously, Balances when compiled with 6.21 and 6/10 would not show this behavior.

BALANCES
An Interactive Short Story
Copyright (c) 1994, 1995, 1996 by Graham Nelson.
Release 5 / Serial number 961216 / Inform v6.21 Library 6/10 D

Ramshackle Hut
Until quite recently, someone lived here, you feel sure. Now the furniture is
matchwood and the windows are glassless.  Outside, it is a warm, sunny day, and
grasslands extend to the low hills on the horizon.

>take her
I'm not sure what "her" refers to.

>


BALANCES
An Interactive Short Story
Copyright (c) 1994, 1995, 1996 by Graham Nelson.
Release 5 / Serial number 961216 / Inform v6.21 Library 6/10 D

Ramshackle Hut
Until quite recently, someone lived here, you feel sure. Now the furniture is
matchwood and the windows are glassless.  Outside, it is a warm, sunny day, and
grasslands extend to the low hills on the horizon.

>ask her about stuff
I'm not sure what "her" refers to.

>
(0004855)
DavidG (developer)
2019-05-12 17:51

First reported at https://intfiction.org/t/inform-6-12-lib-fatal-error/41261/ [^]

Cross-filed at https://gitlab.com/DavidGriffith/inform6lib/issues/65 [^]
(0004856)
DavidG (developer)
2019-05-12 17:52

It seems that I have solved the problem with https://gitlab.com/DavidGriffith/inform6lib/commit/455bd379f234c0233e237b794c026dd14b500582, [^] but the person who gave me the report about trouble with the current library tells me it's still happening. After a couple checks, I've confirmed this. Curiouser, the problem manifests on MacOS, but not Linux.
(0004871)
DavidG (developer)
2019-06-17 04:43

The problem is now completely fixed.
See https://gitlab.com/DavidGriffith/inform6lib/commit/686ab9708cfc886ee166e1deef03f986a546deae [^]

- Issue History
Date Modified Username Field Change
2019-05-12 17:38 DavidG New Issue
2019-05-12 17:38 DavidG Status new => assigned
2019-05-12 17:38 DavidG Assigned To => DavidG
2019-05-12 17:42 DavidG Note Added: 0004854
2019-05-12 17:51 DavidG Note Added: 0004855
2019-05-12 17:52 DavidG Note Added: 0004856
2019-06-17 04:43 DavidG Note Added: 0004871
2019-06-17 04:44 DavidG Status assigned => resolved
2019-06-17 04:44 DavidG Fixed in Version => 6/12
2019-06-17 04:44 DavidG Resolution open => fixed


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker