Closed bfredl closed 6 years ago
It seems
ts_parser_parse_string
returns a NULL tree.
That often means that the parser doesn't have a language assigned to it, which can happen if one of the test fixture languages javascript
or python
failed to load or needs to be re-built.
Does it help if you run script/fetch-fixtures
again? If not, you can run the tests under a debugger by running script/test -f fuzzing -d
. In that test, if you retrieve the language using ts_parser_language
, is it null?
./script/configure; ./script/test
fetched a lot of stuff already, I wasn't aware there was an extra step to fetch fixtures. load_real_language
shows some debug messages already, perhaps it should show one for missing file?
Yeah, we should add a proper error message for that.
@bfredl Did fetching the fixture grammars resolve the issue for you though?
Yes, seems to work now.
When I tried to run the test suite, I got a segfault in the
fuzzing-examples.cc
tests:It seems
ts_parser_parse_string
returns a NULL tree. This happens with bothTest/tests
andRelease/tests
.I run a x86_64 Arch Linux system with GCC version 8.2.1.