View Issue Details

IDProjectCategoryView StatusLast Update
0000866LDMud 3.5LPC Compiler/Preprocessorpublic2019-04-05 19: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 18: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 21: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-26 22:43 willem New Issue
2018-08-26 22:43 willem Tag Attached: crash
2018-08-27 18:12 zesstra Assigned To => zesstra
2018-08-27 18:12 zesstra Status new => confirmed
2018-08-27 18:12 zesstra Note Added: 0002462
2018-08-27 18:15 zesstra Priority normal => high
2018-08-27 18:15 zesstra Target Version => 3.5.2
2018-08-30 20:49 Gnomi Assigned To zesstra => Gnomi
2018-08-30 21:28 Gnomi Source_changeset_attached => ldmud.git master ee2d87d7
2018-08-30 21:28 Gnomi Note Added: 0002463
2018-08-30 21:28 Gnomi Status confirmed => resolved
2018-08-30 21:28 Gnomi Resolution open => fixed
2019-04-05 19:31 zesstra Fixed in Version => 3.5.2