-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.9.2: core dump in self tests #1171
Comments
could you add the result of test-valgrind please? |
Sorry, no, valgrind does not support NetBSD. |
But here's a backtrace of the core dump:
|
I see. I am not sure but this seems similar to a problem I have encountered (#1228) |
I made a temporary fix #1269 which is merged on master. Could you try doing this on the master branch to see if it is resolved? |
git head completes the test suite for me, with:
and the following tests failing (but no core dumps):
I had to remove the |
While I don't know why basically the icon fails to load and then the test explodes trying to use a null value. Adding a check for null prevents the segfault at least. The reason as to why the icon is not loaded still eludes me, but maybe you don't have the right icon in the project so they are not found? |
Which icon is it trying to load? Which icon set is usually used to provide that? |
I think the code tries to check if the regex "" matches "asd".
I also checked POSIX https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_04 and it's not quite as clear to me but I think it says the same. If you follow the grammar:
the name Anyway, at least on NetBSD "" is not a valid regular expression, so perhaps adapt the test? |
You are totally right, I think that tests relies on some undefined behavior on the linux regex implementation. So it should probably be changed altogheter |
The code that loads the icon is
where base is
So it should always refer to the test directory itself. The icon in question is test/data/icons/valid.svg |
With some printf debugging and guessing: The problem is that the file is an SVG. |
The fact that this is not included in the dependencies is quite strange honestly, I will have to look into that |
@fwsmit how can we require librsvg? It is a runtime dependency of gdk-pixbuf. The tests and dunst won't load svg icons if it isn't present |
Dependencies should be documented in the README. Currently they are not all well documented I think. |
does this still occur? |
With 1.10.0, if librsvg is not installed, yes:
|
I will change the fail to a skip since it does not seem to be an error on our code 👍🏻 |
could you try #1329 ? it should handle this situation gracefully |
Manually applying #1329 on top of 1.10.0 makes the tests succeed, even without librsvg installed:
Thank you! |
Thanks for trying it, I'll merge that pr 👍🏻 |
When running the self tests on NetBSD 10.99.3/amd64, I see a segfault:
The text was updated successfully, but these errors were encountered: