test_core_dump_packaged test flaky on arm64 and ppc64el
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
Fix Released
|
High
|
Unassigned | ||
apport (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
The test_core_
=======
FAIL: test_core_
packaged executables create core dumps on proper ulimits
-------
Traceback (most recent call last):
File "/tmp/autopkgte
self.
File "/tmp/autopkgte
self.
AssertionError: False is not true : #0 0x00007ffff7fb60a0 in ?? ()
No symbol table info available.
#1 0x0000000000000000 in ?? ()
No symbol table info available.
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
-------
and five times on arm64 [2] with
=======
FAIL: test_core_
packaged executables create core dumps on proper ulimits
-------
Traceback (most recent call last):
File "/tmp/autopkgte
self.
File "/tmp/autopkgte
self.
AssertionError: False is not true : #0 0x0000fffff7fd9c00 in ?? ()
No symbol table info available.
Backtrace stopped: not enough registers or memory available to unwind further
-------
[1] https:/
[2] https:/
Changed in apport: | |
milestone: | none → 2.23.0 |
Changed in apport: | |
status: | Fix Committed → Fix Released |
Reproduced with upstream apport on arm64:
$ pytest-3 -ra --durations=0 tests/integrati on/test_ signal_ crashes. py ======= ======= === FAILURES ======= ======= ======= == core_dump_ packaged _______________ integration. test_signal_ crashes. T testMethod= test_core_ dump_packaged>
[...]
=======
_______________ T.test_
self = <tests.
def test_core_ dump_packaged( self):
"""packaged executables create core dumps on proper ulimits"""
# for SEGV and ABRT we expect reports and core files
resource. setrlimit( resource. RLIMIT_ CORE, (kb, -1))
self. do_crash(
expect_ corefile= exp_file,
expect_ corefile_ owner=os. geteuid( ),
sig= sig,
self. assertEqual(
apport. fileutils. get_all_ reports( ), [self.test_report] report_ coredump( self.test_ report)
for sig in (signal.SIGSEGV, signal.SIGABRT):
for (kb, exp_file) in core_ulimit_table:
)
)
> self.check_
/home/ubuntu/ apport/ tests/integrati on/test_ signal_ crashes. py:428: apport/ tests/integrati on/test_ signal_ crashes. py:1033: in check_report_ coredump assertIn( "\n#2", r.get(" Stacktrace" )) \nBacktrace stopped: not enough registers or memory available to unwind further' session( ): no DBUS_SESSION_ BUS_ADDRESS in environment 1/_usr_ bin_sleep. 1000.crash bin_sleep. 1000.f99ef6cc- 6b9c-472a- b4ca-c6aad99624 a7.3852. 44760 (limit: 1000)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/ubuntu/
self.
E AssertionError: '\n#2' not found in '#0 0x0000fffff7fd9c00 in ?? ()\nNo symbol table info available.
----------------- Captured stderr call ------------------
warning: target file /proc/3852/cmdline contained unexpected null characters
ERROR: apport (pid 3857) Thu Jun 30 22:32:26 2022: called for pid 3852, signal 11, core limit 1000, dump mode 1
ERROR: apport (pid 3857) Thu Jun 30 22:32:26 2022: executable: /usr/bin/sleep (command line "/usr/bin/sleep 86400")
ERROR: apport (pid 3857) Thu Jun 30 22:32:26 2022: is_closing_
ERROR: apport (pid 3857) Thu Jun 30 22:32:26 2022: wrote report /tmp/tmpiyd13gh
ERROR: apport (pid 3857) Thu Jun 30 22:32:26 2022: writing core dump to core._usr_
ERROR: apport (pid 3857) Thu Jun 30 22:32:26 2022: aborting core dump writing, size 371976 exceeds current limit