If non-root with CAP_SYS_RESOURCE: thread.c:155:test_thread4: assertion failed: (thread == NULL)
On !1339 (merged), mcatanzaro writes:
I've given up on trying to merge this. We'll have to try again when CI is in better shape. I've rerun the CI as many times as I care to; it's basically always failing on unrelated tests.
One of those unrelated test failures in job #583337 is this:
72/270 glib:glib / thread FAIL 0.08 s (killed by signal 6 SIGABRT) --- command --- G_DEBUG='gc-friendly' G_TEST_BUILDDIR='/builds/GNOME/glib/_build/glib/tests' G_TEST_SRCDIR='/builds/GNOME/glib/glib/tests' MALLOC_PERTURB_='115' MALLOC_CHECK_='2' /builds/GNOME/glib/_build/glib/tests/thread --- stdout --- # random seed: R02Sf69bcc68d533e7283b6096977fa5d3d6 1..6 # Start of thread tests ok 1 /thread/thread1 ok 2 /thread/thread2 ok 3 /thread/thread3 Bail out! GLib:ERROR:../glib/tests/thread.c:155:test_thread4: assertion failed: (thread == NULL) --- stderr --- ** GLib:ERROR:../glib/tests/thread.c:155:test_thread4: assertion failed: (thread == NULL) -------
In this test, we are expecting
RLIMIT_NPROC rlim_cur = 1 to fail with
G_THREAD_ERROR_AGAIN, but in fact it succeeded for some reason.