Calling g_slice_set_config() within a glib test cause assertion 'sys_page_size == 0' to fail
Calling the function g_slice_set_config()
after calling g_test_init()
cause the assertion 'sys_page_size == 0'
to fail.
I have created this branch to exemplify this bug: https://gitlab.gnome.org/emmanuel.fleury/glib/-/tree/g_slice_set_config_bug
Go to a build directory and type: meson test slice-bug
----------------------------------- output -----------------------------------
stdout:
# random seed: R02Sa890b34f7f930612d37b4db3996583df
Bail out! GLib-FATAL-CRITICAL: g_slice_set_config: assertion 'sys_page_size == 0' failed
stderr:
(/build/tests/slice-bug:673): GLib-CRITICAL **: 11:54:10.859: g_slice_set_config: assertion 'sys_page_size == 0' failed
------------------------------------------------------------------------------
Edited by Emmanuel Fleury