spiffs: build/linux_spiffs_test fails (segfault) on first test
I’m using gcc version 5.1.0 on Linux64 (arch). Just running make; and make test fails with
adding suites...
adding test evil_write
[...]
72 tests added
running tests...
fish: “./linux_spiffs_test” terminated by signal SIGSEGV (Address boundary error)
Looks like the SUITE(check_tests) macro creates a function, then the subsequent TEST(...) macros create nested functions. However, it looks like pointers to these nested functions are assigned into a global variable. As far as I can tell, these function pointers are accessed after the call to __suite_check_tests(...) is called. I’m trying to piece together how this could ever run, given how I understand GCC creates nested functions with trampolines.
But from other comments, this test suite clearly works for other folks. What toolchain successfully builds the test suite?
Thanks, Daniel
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (9 by maintainers)
Commits related to this issue
- remove gcc dependencies from testbench #86 — committed to pellepl/spiffs by pellepl 8 years ago
Heh, sometimes I actually do get the thumb out 😉
Sounds fun, as far as I know spiffs has never been used on WICED. Let me know how it works and if you stumble on any problems.
Cheers!