Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Use more recent glib suppression list #1179

Merged
merged 3 commits into from
Apr 15, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/build_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ cp -rf "$GITREPO_ROOT/tests/test_data/fake_root" "$TEST_INSTALL_DESTDIR"
cp -rf "$GITREPO_ROOT/src/aktualizr_repo/run/create_repo.sh" "$TEST_INSTALL_DESTDIR"
cp -rf "$GITREPO_ROOT/src/aktualizr_repo/run/serve_repo.py" "$TEST_INSTALL_DESTDIR"

git -C "$GITREPO_ROOT" fetch --tags --depth=10000 || true
git -C "$GITREPO_ROOT" fetch --tags --unshallow || true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too bad, I was worried that wouldn't work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, @mike-sul mentioned that it wouldn't work on his docker environment: #1160 (comment). But shouldn't be a problem, since it's suffixed by || true

git -C "$GITREPO_ROOT" describe > "$TEST_INSTALL_DESTDIR/aktualizr-version"
160 changes: 134 additions & 26 deletions tests/glib.supp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Taken from the suppression list in ostree's test suite
# From https://salsa.debian.org/debian/flatpak/blob/debian/master/tests/glib.supp

# Based on the libhif supressions
{
gobject_init_1
Memcheck:Leak
Expand All @@ -12,16 +14,16 @@
fun:g_type_register_static
}
{
g_type_register_dynamic
g_type_register_fundamental
Memcheck:Leak
...
fun:g_type_register_dynamic
fun:g_type_register_fundamental
}
{
g_type_register_fundamental
g_type_register_dynamic_1
Memcheck:Leak
...
fun:g_type_register_fundamental
fun:g_type_register_dynamic
}
{
g_type_init_with_debug_flags
Expand Down Expand Up @@ -51,12 +53,6 @@
...
fun:g_type_add_interface_static
}
{
g_type_add_interface_dynamic
Memcheck:Leak
...
fun:g_type_add_interface_dynamic
}
{
g_param_spec_internal
Memcheck:Leak
Expand Down Expand Up @@ -182,12 +178,18 @@
fun:g_cancellable_push_current
}
{
_g_io_module_get_default
g-io-module-default-singleton-malloc
Memcheck:Leak
...
fun:g_io_module_new
fun:g_io_modules_scan_all_in_directory_with_scope
fun:_g_io_modules_ensure_loaded
fun:g_type_create_instance
...
fun:_g_io_module_get_default
}
{
g-io-module-default-singleton-malloc2
Memcheck:Leak
fun:malloc
...
fun:_g_io_module_get_default
}
{
Expand Down Expand Up @@ -396,14 +398,6 @@
fun:g_thread_pool_push
fun:g_task_start_task_thread
}
{
g_task_to_pool
Memcheck:Leak
...
fun:g_thread_pool_start_thread
...
fun:g_task_run_in_thread
}
{
g_get_language_names
Memcheck:Leak
Expand All @@ -412,6 +406,20 @@
fun:g_malloc0
fun:g_get_language_names
}
{
g-get-language-names-malloc
Memcheck:Leak
fun:malloc
...
fun:g_get_language_names_with_category
}
{
g-get-language-names-malloc2
Memcheck:Leak
fun:calloc
...
fun:g_get_language_names_with_category
}
{
g_get_filename_charsets
Memcheck:Leak
Expand Down Expand Up @@ -550,9 +558,109 @@
fun:glib_worker_main
}
{
glib_worker_2
glib_dispatch_1
Memcheck:Leak
fun:malloc
fun:g_malloc
...
fun:g_thread_new
fun:g_get_worker_context
fun:get_dispatch
fun:g_main_dispatch
}
{
glib_dispatch_2
Memcheck:Leak
fun:calloc
fun:g_malloc0
...
fun:get_dispatch
fun:g_main_current_source
}
{
glib_dlopen_1
Memcheck:Leak
fun:calloc
fun:_dlerror_run
fun:dlopen*
...
fun:g_module_open
}
{
libc_tls
Memcheck:Leak
fun:calloc
fun:_dl_allocate_tls
fun:pthread_create*
}
{
soup_callback_1
Memcheck:Leak
fun:malloc
fun:g_malloc
fun:g_source_set_callback
fun:soup_add_completion_reffed
fun:soup_session_real_kick_queue
}
{
gio_namespace_cache_leak_ns_info
Memcheck:Leak
match-leak-kinds: definite
fun:calloc
fun:g_malloc0
fun:_lookup_namespace
}
{
gio_namespace_cache_leak_ns_name
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:g_malloc
fun:g_strdup
fun:_lookup_namespace
}
{
gio_extension_points_global
Memcheck:Leak
match-leak-kinds: definite
fun:calloc
fun:g_malloc0
fun:g_io_extension_point_register
}
{
glib_dbus_thread_private
Memcheck:Leak
match-leak-kinds: definite
fun:calloc
fun:g_malloc0
fun:g_private_set_alloc0
...
fun:gdbus_shared_thread_func
}
{
dbus_shared_socket
Memcheck:Leak
match-leak-kinds: definite
...
fun:g_socket_create_source
...
fun:gdbus_shared_thread_func
}
{
polkit_agent_leak
Memcheck:Leak
match-leak-kinds: definite
fun:calloc
fun:g_malloc0
fun:g_dbus_connection_register_object
...
fun:g_thread_proxy
}
{
polkit_agent_leak2
Memcheck:Leak
match-leak-kinds: definite
fun:calloc
fun:g_malloc0
fun:g_private_set_alloc0
...
fun:g_thread_proxy
}