Summary: | dev-libs/glib-2.74.0: fails test 116/281 glib:glib+no-valgrind / assert-msg-test.py with sys-devel/gdb installed (tried to access /proc) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | tka <tka> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3304 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log.xz
environment testlog.txt.xz |
Description
tka
2022-09-18 12:36:15 UTC
Created attachment 811105 [details]
build.log.xz
Created attachment 811108 [details]
environment
Created attachment 811111 [details]
testlog.txt.xz
# Output: Bail out! GLib:ERROR:../glib-2.74.0/glib/tests/assert-msg-test.c:5:main: assertion failed: (42 < 0)
#
# Program received signal SIGABRT, Aborted.
# 0x00007ffff7ce32ac in ?? ()
# Error: warning: opening /proc/PID/mem file for lwp 4238.4238 failed: Permission denied (13)
# Failed to read a valid object file image from memory.
# **
# GLib:ERROR:../glib-2.74.0/glib/tests/assert-msg-test.c:5:main: assertion failed: (42 < 0)
# /var/tmp/portage/dev-libs/glib-2.74.0/temp/assert-msg-test-tfvb7285.gdb:7: Error in sourced command file:
# No symbol table is loaded. Use the "file" command.
# CompletedProcess(args=['gdb', '--batch', '-x', '/var/tmp/portage/dev-libs/glib-2.74.0/temp/assert-msg-test-tfvb7285.gdb', '/var/tmp/portage/dev-libs/glib-2.74.0/work/glib-2.74.0-abi_x86_64.amd64/glib/tests/assert-msg-test'], returncode=1, stdout='Bail out! GLib:ERROR:../glib-2.74.0/glib/tests/assert-msg-test.c:5:main: assertion failed: (42 < 0)\n\nProgram received signal SIGABRT, Aborted.\n0x00007ffff7ce32ac in ?? ()\n', stderr='warning: opening /proc/PID/mem file for lwp 4238.4238 failed: Permission denied (13)\nFailed to read a valid object file image from memory.\n**\nGLib:ERROR:../glib-2.74.0/glib/tests/assert-msg-test.c:5:main: assertion failed: (42 < 0)\n/var/tmp/portage/dev-libs/glib-2.74.0/temp/assert-msg-test-tfvb7285.gdb:7: Error in sourced command file:\nNo symbol table is loaded. Use the "file" command.\n')
---
message: |
Traceback (most recent call last):
File "/var/tmp/portage/dev-libs/glib-2.74.0/work/glib-2.74.0-abi_x86_64.amd64/../glib-2.74.0/glib/tests/assert-msg-test.py", line 162, in test_gdb_gassert
self.assertEqual(result.info.returncode, 0)
AssertionError: 1 != 0
...
1..2
Looks like an automagic test based on whether sys-devel/gdb is installed: https://gitlab.gnome.org/GNOME/glib/-/blob/a1c5845b0f8c68d1457fb44daacd799e119d8e8f/tests/run-assert-msg-test.sh#L40. gdb if invoked needs access to memory maps, not allowed by default in sandbox. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c759e1314a540cc5d08ca4b5b7b7ccbfce7fa277 commit c759e1314a540cc5d08ca4b5b7b7ccbfce7fa277 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2023-03-04 00:47:55 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2023-03-04 00:48:02 +0000 dev-libs/glib: Add patch to skip test The assert-msg-test.py test doesn't work under sandbox. Closes: https://bugs.gentoo.org/871330 Signed-off-by: Matt Turner <mattst88@gentoo.org> ...ests-Skip-assert-msg-test.py-if-gdb-fails.patch | 33 ++++++++++++++++++++++ dev-libs/glib/glib-2.74.5.ebuild | 2 ++ 2 files changed, 35 insertions(+) |