rsmmr / hilti

**NOTE**: This is outdated and no longer maintained. There's a new version at https://github.com/zeek/spicy.
Other
40 stars 22 forks source link

tests/hilti/tuple/wrong-index.hlt segmentation fault #35

Open dloss opened 7 years ago

dloss commented 7 years ago

The hilti/tuple/wrong-index unit test fails because of a segmentation fault:

# btest -d hilti/tuple/wrong-index.hlt
[ 33%] hilti.tuple.wrong-index-2 ... failed
  % 'btest-diff output' failed unexpectedly (exit code 1)
  % cat .diag
  == File ===============================

  >>> b = tuple.index a b
  wrong-index.hlt:8-9: error, operand must be a constant [pass::hilti::Validator]
  Segmentation fault
  error running hiltic, aborting
  == Diff ===============================
  --- /tmp/test-diff.2274.output.baseline.tmp   2017-01-13 10:27:06.998718128 +0000
  +++ /tmp/test-diff.2274.output.tmp    2017-01-13 10:27:07.038688438 +0000
  @@ -1,4 +1,5 @@

  >>> b = tuple.index a b
  wrong-index.hlt:XXX: error, operand must be a constant [pass::hilti::Validator]
  +Segmentation fault
  error running hiltic, aborting
  =======================================

  % cat .stderr

1 of 3 tests failed

Tested in the rsmmr/hilti Docker image:

# hilti-config --version
HILTI 0.5-4