View Issue Details

IDProjectCategoryView StatusLast Update
0000866LDMud 3.5LPC Compiler/Preprocessorpublic2019-04-05 21:31
Reporterwillem Assigned ToGnomi  
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.5.1 
Target Version3.5.2Fixed in Version3.5.2 
Summary0000866: Improper use of reserved word 'function' crashes the driver
DescriptionImproper use of reserved word 'function' crashes the driver.
Steps To ReproduceCompile this file:
#pragma weak_types

test1() {

  function = allocate(1);
}

test2(str) {
  string who;

  if (sscanf(str,"%s arrives", who) != 1) return 0;
}
Additional InformationDriver version: 3.5.1-4-g7466f90d
Error in debug log: List of locals clobbered: depth 3, block_depth 2
Tagscrash

Activities

zesstra

2018-08-27 20:12

administrator   ~0002462

Thank you for reporting!

Works for me as well with even a bit more reduction:

void test1() {
  function = 42;
}
void test2() {
  int who;
  printf(who);
}

Gnomi

2018-08-30 23:28

manager   ~0002463

Fix committed in revision ee2d87d7d999978422d24b739f42330c533e48bc to master branch (see changeset 4152 for details). Thank you for reporting!

Issue History

Date Modified Username Field Change
2018-08-27 00:43 willem New Issue
2018-08-27 00:43 willem Tag Attached: crash
2018-08-27 20:12 zesstra Assigned To => zesstra
2018-08-27 20:12 zesstra Status new => confirmed
2018-08-27 20:12 zesstra Note Added: 0002462
2018-08-27 20:15 zesstra Priority normal => high
2018-08-27 20:15 zesstra Target Version => 3.5.2
2018-08-30 22:49 Gnomi Assigned To zesstra => Gnomi
2018-08-30 23:28 Gnomi Source_changeset_attached => ldmud.git master ee2d87d7
2018-08-30 23:28 Gnomi Note Added: 0002463
2018-08-30 23:28 Gnomi Status confirmed => resolved
2018-08-30 23:28 Gnomi Resolution open => fixed
2019-04-05 21:31 zesstra Fixed in Version => 3.5.2