[Bug 2051512] Re: apport ftbfs with Python 3.12 as the default
Launchpad Bug Tracker
2051512 at bugs.launchpad.net
Sun Feb 18 04:22:21 UTC 2024
This bug was fixed in the package apport - 2.27.0-0ubuntu7
---------------
apport (2.27.0-0ubuntu7) noble; urgency=medium
[ Benjamin Drung ]
* Rely on pybuild in dh_auto_* targets
* Introduce the separate apport-core-dump-handler package that registers as
kernel crash dump handler. This is needed for the upcoming systemd-coredump
support.
* Move systemd units from /lib to /usr/lib
[ Simon Chopin ]
* Rework apport-retrace to handle unbound crashid (LP: #2051512)
* fix: use context manager when manipulating GzipFiles (LP: #2051512)
-- Benjamin Drung <bdrung at ubuntu.com> Wed, 14 Feb 2024 16:51:44 +0100
** Changed in: apport (Ubuntu Noble)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/2051512
Title:
apport ftbfs with Python 3.12 as the default
Status in apport package in Ubuntu:
Fix Released
Status in python3-defaults package in Ubuntu:
New
Status in python3.12 package in Ubuntu:
New
Status in apport source package in Noble:
Fix Released
Status in python3-defaults source package in Noble:
New
Status in python3.12 source package in Noble:
New
Bug description:
[Description]
Python 3.12 gzip.GZipFile.write() outputs truncated data in some cases
(maybe all?)
[Test Plan]
Run the following script:
import gzip
import io
out = io.BytesIO()
gzip.GzipFile("foo", mode="wb", fileobj=out, mtime=0).write(b"FooFoo")
# print(out.getvalue())
print(gzip.decompress(out.getvalue()))
Expected output (as on Python 3.11):
FooFoo
Buggy output (tail end of the stack trace):
EOFError: Compressed file ended before the end-of-stream marker was reached
[Original report]
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
tests/run-linters --errors-only
Skipping mypy tests, mypy is not installed
Running pylint...
************* Module apport-retrace
bin/apport-retrace:577:44: E0601: Using variable 'crashid' before assignment (used-before-assignment)
make[1]: *** [debian/rules:23: override_dh_auto_test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: binary] Error 2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/2051512/+subscriptions
More information about the foundations-bugs
mailing list