Skip to content

Commit

Permalink
Update valgrind supression
Browse files Browse the repository at this point in the history
  • Loading branch information
bynect committed Jan 24, 2025
1 parent fa89e61 commit 3b5e925
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
FIND: gfind
SED: gsed
AWK: gawk
RMDIR: grmdir

steps:
- uses: actions/checkout@v4
Expand All @@ -87,7 +88,7 @@ jobs:
- name: Test in FreeBSD
uses: vmactions/freebsd-vm@v1
with:
envs: "CC EXTRA_CFLAGS MAKE INSTALL FIND SED AWK"
envs: "CC EXTRA_CFLAGS MAKE INSTALL FIND SED AWK RMDIR"
usesh: true
sync: rsync
copyback: false
Expand Down
55 changes: 45 additions & 10 deletions .valgrind.suppressions
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@

# a librsvg memoryleak that shows up in arch, but not in the CI environment
{
<librsvg-arch>
librsvg-arch
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
Expand Down Expand Up @@ -215,20 +215,55 @@
}

{
# FreeBSD part1
glib_leak_freebsd1
Memchek:Leak
g_bus_own_name_supp
Memcheck:Leak
match-leak-kinds: definite
fun:*alloc
...
fun:g_dbus_address_get_stream_sync
obj:/usr/local/lib/libgio-2.0.so.0.8000.5
...
fun:g_bus_own_name
fun:dbus_init
fun:test_dbus_init
...
}

{
# FreeBSD part2
# XXX: Why isn't memory freed in g_bus_unown_name?
glib_leak_freebsd2
Memchek:Leak
gdk_pixbuf_new_from_file_freebsd
Memcheck:Leak
match-leak-kinds: definite
fun:calloc
...
fun:g_bus_own_name
obj:/usr/local/lib/librsvg-2.so.2.40.21
...
obj:/usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
obj:/usr/local/lib/libgdk_pixbuf-2.0.so.0.4200.10
fun:gdk_pixbuf_new_from_file
fun:notification_setup_raw_image
...
}

{
freebsd_dbus_leak
Memcheck:Leak
match-leak-kinds: definite
fun:calloc
fun:g_malloc0
fun:g_type_create_instance
fun:g_param_spec_internal
...
obj:/usr/local/lib/libgio-2.0.so.0.8000.5
obj:/usr/local/lib/libgobject-2.0.so.0.8000.5
...
fun:g_object_new
...
}

{
glib_freebsd
Memcheck:Leak
fun:*alloc
...
fun:g_dbus_address_get_stream_sync
...
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ uninstall-keepconf: uninstall-service uninstall-dunstctl uninstall-completions

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

uninstall-dunstctl:
rm -f ${DESTDIR}${BINDIR}/dunstctl
Expand Down
1 change: 1 addition & 0 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ MAKE ?= make
FIND ?= find
SED ?= sed
AWK ?= awk
RMDIR ?= rmdir

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

0 comments on commit 3b5e925

Please sign in to comment.