Skip to content

Commit 3b5e925

Browse files
committed
Update valgrind supression
1 parent fa89e61 commit 3b5e925

File tree

4 files changed

+49
-12
lines changed

4 files changed

+49
-12
lines changed

.github/workflows/main.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
FIND: gfind
7979
SED: gsed
8080
AWK: gawk
81+
RMDIR: grmdir
8182

8283
steps:
8384
- uses: actions/checkout@v4
@@ -87,7 +88,7 @@ jobs:
8788
- name: Test in FreeBSD
8889
uses: vmactions/freebsd-vm@v1
8990
with:
90-
envs: "CC EXTRA_CFLAGS MAKE INSTALL FIND SED AWK"
91+
envs: "CC EXTRA_CFLAGS MAKE INSTALL FIND SED AWK RMDIR"
9192
usesh: true
9293
sync: rsync
9394
copyback: false

.valgrind.suppressions

+45-10
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110

111111
# a librsvg memoryleak that shows up in arch, but not in the CI environment
112112
{
113-
<librsvg-arch>
113+
librsvg-arch
114114
Memcheck:Leak
115115
match-leak-kinds: definite
116116
fun:malloc
@@ -215,20 +215,55 @@
215215
}
216216

217217
{
218-
# FreeBSD part1
219-
glib_leak_freebsd1
220-
Memchek:Leak
218+
g_bus_own_name_supp
219+
Memcheck:Leak
220+
match-leak-kinds: definite
221+
fun:*alloc
221222
...
222-
fun:g_dbus_address_get_stream_sync
223+
obj:/usr/local/lib/libgio-2.0.so.0.8000.5
224+
...
225+
fun:g_bus_own_name
226+
fun:dbus_init
227+
fun:test_dbus_init
223228
...
224229
}
225230

226231
{
227-
# FreeBSD part2
228-
# XXX: Why isn't memory freed in g_bus_unown_name?
229-
glib_leak_freebsd2
230-
Memchek:Leak
232+
gdk_pixbuf_new_from_file_freebsd
233+
Memcheck:Leak
234+
match-leak-kinds: definite
235+
fun:calloc
231236
...
232-
fun:g_bus_own_name
237+
obj:/usr/local/lib/librsvg-2.so.2.40.21
238+
...
239+
obj:/usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
240+
obj:/usr/local/lib/libgdk_pixbuf-2.0.so.0.4200.10
241+
fun:gdk_pixbuf_new_from_file
242+
fun:notification_setup_raw_image
243+
...
244+
}
245+
246+
{
247+
freebsd_dbus_leak
248+
Memcheck:Leak
249+
match-leak-kinds: definite
250+
fun:calloc
251+
fun:g_malloc0
252+
fun:g_type_create_instance
253+
fun:g_param_spec_internal
254+
...
255+
obj:/usr/local/lib/libgio-2.0.so.0.8000.5
256+
obj:/usr/local/lib/libgobject-2.0.so.0.8000.5
257+
...
258+
fun:g_object_new
259+
...
260+
}
261+
262+
{
263+
glib_freebsd
264+
Memcheck:Leak
265+
fun:*alloc
266+
...
267+
fun:g_dbus_address_get_stream_sync
233268
...
234269
}

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ uninstall-keepconf: uninstall-service uninstall-dunstctl uninstall-completions
281281

282282
uninstall-dunstrc:
283283
rm -f ${DESTDIR}${SYSCONFFILE}
284-
rmdir --ignore-fail-on-non-empty ${DESTDIR}${SYSCONFDIR}/dunst
284+
${RMDIR} --ignore-fail-on-non-empty ${DESTDIR}${SYSCONFDIR}/dunst
285285

286286
uninstall-dunstctl:
287287
rm -f ${DESTDIR}${BINDIR}/dunstctl

config.mk

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ MAKE ?= make
2929
FIND ?= find
3030
SED ?= sed
3131
AWK ?= awk
32+
RMDIR ?= rmdir
3233

3334
# Disable systemd service file installation,
3435
# if you don't want to use systemd albeit installed

0 commit comments

Comments
 (0)