multiple tests from 1.0.2 segfault on musl libc
Summary:
Multiple tests segfault on Void Linux when using musl:
The following tests FAILED:
2 - test_drag-and-drop-svgz (SEGFAULT)
5 - test_color-profile (SEGFAULT)
7 - test_sp-object (SEGFAULT)
8 - test_object-set (SEGFAULT)
9 - test_object-style (SEGFAULT)
10 - test_style-elem (SEGFAULT)
13 - test_sp-gradient (SEGFAULT)
14 - test_object (SEGFAULT)
17 - test_lpe-bool (SEGFAULT)
18 - test_sp-item-group (SEGFAULT)
130 - cli_export-latex_check_output (Failed)
For 130, I opened an issue already, and it also happens on glibc, so it should be completely unrelated.
All of them seemed to be caused by a strlen(NULL)
call inside the Extension
initializer, but I couldn't find it. The only strlen
calls in extension.cpp were using hardcoded strings, so they should be harmless. I expect it was generated and inlined by the C++ code.
If necessary, I can try and test patches locally.
Steps to reproduce:
- build inkscape from source on a system with musl
- run
ninja check
Sample attachments:
A backtrace for each test is linked below:
gdb.txt gdb.txt gdb.txt gdb.txt gdb.txt gdb.txt gdb.txt gdb.txt gdb.txt gdb.txt
Version Info:
- Inkscape Version: 1.0.2 release tarball
- Operating System: Void Linux with musl