MantisBT - Core Inform
View Issue Details
0001837Core InformPhrases and functional programmingpublic2016-01-07 10:522016-08-03 16:41
dfremont 
 
normalcriticalalways
confirmedopen 
x86Mac OS X10.10
 
 
(critical) Compiler crashes
0001837: Crash on wrongly-terminated if phrase
If an "if" phrase is terminated with a full stop, a semicolon, or a paragraph break instead of a colon, Inform crashes as below.
Foo is a room.
Every turn: if 0 is 0.
Backtrace:

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
No tags attached.
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 
Issue History
2016-01-07 10:52dfremontNew Issue
2016-02-02 22:51zarfRelationship addedduplicate of 0001863
2016-02-02 22:52zarfNote Added: 0004354
2016-02-02 22:52zarfStatusnew => confirmed
2016-02-03 00:54curiousdanniiRelationship deleted0001863
2016-02-03 00:54curiousdanniiRelationship addedhas duplicate 0001863
2016-04-26 10:34zarfRelationship addedhas duplicate 0001899
2016-06-22 12:51zarfRelationship addedhas duplicate 0001923
2016-08-03 16:41zarfNote Added: 0004517
2016-08-03 16:43zarfRelationship addedhas duplicate 0001938
2017-05-31 21:28zarfRelationship addedhas duplicate 0002018
2018-08-31 11:23zarfRelationship addedhas duplicate 0002070

Notes
(0004354)
zarf   
2016-02-02 22:52   
Check.
(0004517)
zarf   
2016-08-03 16:41   
Also applies to "repeat" phrases.