Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001837Core InformPhrases and functional programmingpublic2016-01-07 10:522016-08-03 16:41
Reporterdfremont 
Assigned To 
PrioritynormalSeveritycriticalReproducibilityalways
StatusconfirmedResolutionopen 
Platformx86OSMac OS XOS Version10.10
Product Version 
Target VersionFixed in Version 
Summary0001837: Crash on wrongly-terminated if phrase
DescriptionIf an "if" phrase is terminated with a full stop, a semicolon, or a paragraph break instead of a colon, Inform crashes as below.
Minimal Source Text To Reproduce
Foo is a room.
Every turn: if 0 is 0.
Additional InformationBacktrace:

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008

VM Regions Near 0x8:
-->
    __TEXT 0000000000001000-000000000026a000 [ 2468K] r-x/rwx SM=COW /Applications/Inform.app/Contents/MacOS/ni

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ni 0x0018d521 Frames__Blocks__supply_kind_and_stream + 33
1 ni 0x0019087f Invocations__Inline__csi_inline + 1295
2 ni 0x0019021b Invocations__Compiler__compile_single_invocation + 299
3 ni 0x0014088b Invocations__Compiler__compile_invocation_list + 10187
4 ni 0x00199208 Routines__Compile__line + 568
5 ni 0x0019766b Routines__Compile__code_line + 2699
6 ni 0x0015d332 Routines__Compile__code_block + 274
7 ni 0x00183252 Routines__Compile__routine + 802
8 ni 0x0017127d Phrases__compile + 285
9 ni 0x001710a4 Rules__compile_definition + 164
10 ni 0x00174b45 Rules__Bookings__list_compile_rule_phrases + 645
11 ni 0x0017774e Rulebooks__compile_rule_phrases + 254
12 ni 0x0017f1d3 Phrases__Manager__compile_first_block + 243
13 ni 0x001a3e0e TemplateFiles__interpret + 36142
14 ni 0x001a0cb2 TemplateFiles__interpret + 23506
15 ni 0x001fa820 Main__core_inform_main + 1568
16 ni 0x001fa1fb main + 43
17 ni 0x00001bfd _start + 212
18 ni 0x00001b28 start + 40
TagsNo tags attached.
Effect(critical) Compiler crashes
Attached Files

- Relationships
has duplicate 0001863closed Translating the Source - Failed 
has duplicate 0001899new Error Code 10 when collecting names. 
has duplicate 0001923new I7 compiler error 11 on mispunctuated phrase involving regular expressions 
has duplicate 0001938new Semicolon instead of colon in repeat construct causes code 10 fault in compiler 
has duplicate 0002018new The compiler crashes with Error 10 when an if statement in an after rule has a simple syntax error 
has duplicate 0002070new error in source text and indentation for "repeat with" causes compiler error 11 

-  Notes
(0004354)
zarf (developer)
2016-02-02 22:52

Check.
(0004517)
zarf (developer)
2016-08-03 16:41

Also applies to "repeat" phrases.

- Issue History
Date Modified Username Field Change
2016-01-07 10:52 dfremont New Issue
2016-02-02 22:51 zarf Relationship added duplicate of 0001863
2016-02-02 22:52 zarf Note Added: 0004354
2016-02-02 22:52 zarf Status new => confirmed
2016-02-03 00:54 curiousdannii Relationship deleted 0001863
2016-02-03 00:54 curiousdannii Relationship added has duplicate 0001863
2016-04-26 10:34 zarf Relationship added has duplicate 0001899
2016-06-22 12:51 zarf Relationship added has duplicate 0001923
2016-08-03 16:41 zarf Note Added: 0004517
2016-08-03 16:43 zarf Relationship added has duplicate 0001938
2017-05-31 21:28 zarf Relationship added has duplicate 0002018
2018-08-31 11:23 zarf Relationship added has duplicate 0002070


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker