debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #02619
[Bug 2114514] Re: trace-cmd: autopkgtest fails on s390x with seg fault
The immediate cause of the segfault is that in
test_trace_library_read(), we have:
...
handle = tracecmd_open(TRACECMD_FILE, 0);
CU_TEST(handle != NULL);
ret = tracecmd_iterate_events(handle, NULL, 0, read_events, &data);
CU_TEST(ret == 0);
...
and tracecmd_open() returns NULL. But, CU_TEST() failing is not fatal,
so the tracecmd_iterate_events() call still happens.
However, *why* tracecmd_open() fails (and returns NULL) on s390x only is
not clear. I found *where* it's failing, which is in handle_section():
...
section->data_offset = lseek(handle->fd, 0, SEEK_CUR);
if ((section->flags & TRACECMD_SEC_FL_COMPRESS) && in_uncompress_block(handle))
return -1;
...
Adding --compression none to the relevant trace-cmd invocations does
mask the issue.
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to trace-cmd in Ubuntu.
https://bugs.launchpad.net/bugs/2114514
Title:
trace-cmd: autopkgtest fails on s390x with seg fault
Status in trace-cmd package in Ubuntu:
Confirmed
Bug description:
On s390x, the trace-utest is reliably failing with:
386s ++ pkg-config --cflags --libs libtracecmd
386s + cc -o utest/trace-utest utest/trace-utest.c utest/tracecmd-utest.c -I/usr/include/trace-cmd -I/usr/include/tracefs -I/usr/include/traceevent -ltracecmd -ltracefs -ltraceevent -lcunit
388s
388s
388s CUnit - A unit testing framework for C - Version 2.1-3
388s http://cunit.sourceforge.net/
388s
388s
388s Suite: trace-cmd
388s Test: Simple record and report ...+ ./utest/trace-utest
388s In tree trace-cmd executable not found
435s FAILED
435s 1. utest/tracecmd-utest.c:337 - ret == 0
462s Test: Create a histogram ...passed
462s Test: Test convert from v7 to v6 ...passed
463s Test: Use libraries to read file .../tmp/autopkgtest.Glw2oK/build.fQe/src/debian/tests/trace-utest: line 19: 3091 Segmentation fault (core dumped) ./utest/trace-utest
464s autopkgtest [17:42:38]: test trace-utest: -----------------------]
464s autopkgtest [17:42:38]: test trace-utest: - - - - - - - - - - results - - - - - - - - - -
464s trace-utest FAIL non-zero exit status 139
See
https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-
questing/questing/s390x/t/trace-cmd/20250612_174750_59fc2@/log.gz for
a full log.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/trace-cmd/+bug/2114514/+subscriptions
References