Skip to content
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

Suppress alpine allocation issue #1284

Merged

Conversation

zappolowski
Copy link
Member

This is related to the introduction of wordexp in e9a27c0 but did go unnoticed as it seems to be detected just by newer versions of valgrind (I would rule out musl here as the wordexp code was not touched in ages and getdelim was last mentioned in the 1.1.22 version while the old alpine image already shipped 1.1.24).

This isn't an issue with the current images but newer versions of alpine fail to complete without it (see this comment).

The callback is just used when `WL_OUTPUT_NAME_SINCE_VERSION` is defined
and so, this function should defined only then as well as it otherwise
is flagged as being unused which breaks the build.
The current output is:
```
==208== HEAP SUMMARY:
==208==     in use at exit: 848,426 bytes in 8,621 blocks
==208==   total heap usage: 89,284 allocs, 80,663 frees, 11,942,430 bytes allocated
==208==
==208== 3 bytes in 1 blocks are definitely lost in loss record 384 of 2,994
==208==    at 0x48A97C1: realloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==208==    by 0x404C47C: getdelim (in /lib/ld-musl-x86_64.so.1)
==208==
==208== 6 bytes in 2 blocks are definitely lost in loss record 591 of 2,994
==208==    at 0x48A97C1: realloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==208==    by 0x404C47C: getdelim (in /lib/ld-musl-x86_64.so.1)
==208==    by 0x14FA9C: ??? (in /srv/dunstrepo-1708244844/test/test)
==208==
==208== 12 bytes in 4 blocks are definitely lost in loss record 839 of 2,994
==208==    at 0x48A97C1: realloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==208==    by 0x404C47C: getdelim (in /lib/ld-musl-x86_64.so.1)
==208==    by 0x1564DC: ??? (in /srv/dunstrepo-1708244844/test/test)
==208==
==208== 15 bytes in 5 blocks are definitely lost in loss record 901 of 2,994
==208==    at 0x48A97C1: realloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==208==    by 0x404C47C: getdelim (in /lib/ld-musl-x86_64.so.1)
==208==    by 0xFFFFFFFE: ???
==208==
==208== 24 bytes in 8 blocks are definitely lost in loss record 1,480 of 2,994
==208==    at 0x48A97C1: realloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==208==    by 0x404C47C: getdelim (in /lib/ld-musl-x86_64.so.1)
==208==    by 0x1FFEFFF80F: ???
==208==
==208== 42 bytes in 14 blocks are definitely lost in loss record 1,941 of 2,994
==208==    at 0x48A97C1: realloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==208==    by 0x404C47C: getdelim (in /lib/ld-musl-x86_64.so.1)
==208==    by 0x4E15FC8: ??? (in /usr/lib/libglib-2.0.so.0.7600.6)
```
@codecov-commenter
Copy link

codecov-commenter commented Feb 18, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (ed5bcb4) 64.53% compared to head (415d8b3) 64.48%.
Report is 5 commits behind head on master.

Files Patch % Lines
src/wayland/wl.c 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1284      +/-   ##
==========================================
- Coverage   64.53%   64.48%   -0.05%     
==========================================
  Files          48       48              
  Lines        7914     7918       +4     
==========================================
- Hits         5107     5106       -1     
- Misses       2807     2812       +5     
Flag Coverage Δ
unittests 64.48% <0.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zappolowski
Copy link
Member Author

@fwsmit This also includes the changes from #1282 to have a working pipeline. The branches should be merged in creation order (the superflous commit) should vanish then.

@fwsmit fwsmit merged commit 8196755 into dunst-project:master Feb 18, 2024
18 checks passed
@fwsmit
Copy link
Member

fwsmit commented Feb 18, 2024

Hopefully the ci works now

@zappolowski zappolowski deleted the suppress-alpine-allocation-issue branch February 19, 2024 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants