base: libs_allocators test fails with glib 2.76.1
- Ubuntu 23.04
- glib 2.76.1
- gst-plugins-base 1.22.1
The libs_allocators build test is failing on Ubuntu 23.04. I was able to duplicate this issue on Debian 12 if I installed glib 2.76.1 there.
I suspect that this was triggered by glib's removal of the slice allocator which has uncovered use-after-free issues in several projects.
Build log excerpt
=================================== 55/127 ===================================
test: libs_allocators
start time: 02:01:35
duration: 0.04s
result: exit status 1
command: <dropped for brevity>
----------------------------------- stdout -----------------------------------
Running suite(s): allocators
Unexpected critical/warning: g_close(fd:4) failed with EBADF. The tracking of file descriptors got messed up
Stack trace:
gst_debug_get_stack_trace (/usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.2201.0:0x7f58044c93af)
?? (/usr/lib/x86_64-linux-gnu/libgstcheck-1.0.so.0.2201.0:0x7f580429640f)
g_logv (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.7600.1:0x7f58043084be)
g_log (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.7600.1:0x7f580430879f)
g_close (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.7600.1:0x7f580432716c)
test_fdmem (allocators.c:98)
srunner_run_tagged (/usr/lib/x86_64-linux-gnu/libgstcheck-1.0.so.0.2201.0:0x7f580429cfdb)
gst_check_run_suite (/usr/lib/x86_64-linux-gnu/libgstcheck-1.0.so.0.2201.0:0x7f580429a1be)
main (allocators.c:117)
?? (/usr/lib/x86_64-linux-gnu/libc.so.6:0x7f58040a0a8c)
__libc_start_main (/usr/lib/x86_64-linux-gnu/libc.so.6:0x7f58040a0b45)
_start (/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tests/check/libs_allocators:0x5560e5c96531)
50%: Checks: 2, Failures: 1, Errors: 0
../libs/gst/check/gstcheck.c:286:F:general:test_fdmem:0: Unexpected critical/warning: g_close(fd:4) failed with EBADF.
The tracking of file descriptors got messed up
Check suite allocators ran in 0.003s (tests failed: 1)
Full build log
Click amd64 at https://launchpad.net/ubuntu/+source/gst-plugins-base1.0/1.22.1-1
We only fail the build for test failures on amd64 and arm64. Somehow the build test passes on arm64.
Edited by Jeremy Bicha