segmentation fault when opening fd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-apt (Debian) |
Fix Released
|
Unknown
|
|||
python-apt (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
High
|
Unassigned | ||
Focal |
Fix Released
|
High
|
Unassigned | ||
Groovy |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
USN-4668-1 introduced a regression in python-apt when using certain APIs with a file handle.
[Test case]
# Landscape scenario:
1) On the Landscape server, create a package profile that installs a single package, 'hello' is enough.
2) On the Landscape server, apply the package profile to a client
3) On the Landscape client, verify that there is no segfault message on '/var/log/kern.log'
4) On the Landscape server, verify that the activity to apply the package profile ends with success.
Step 3) would show a segfault and step 4), the activity would stay 'In Progress' forever.
# dak scenario:
dak crashes with a segmentation fault in python3-apt when processing
uploads or processing the NEW queue on ftp-master; and also on my
playground server (used to generate the backtrace).
[Where problems could occurs]
[Other info]
See Debian bug:
https:/
Fix:
https:/
description: | updated |
Changed in python-apt (Debian): | |
status: | Unknown → Fix Released |
The current situation of python-apt is somewhat critical as no packages can be pushed via Landscape to machines at the moment. This is causing landscape- package- changer to segfault as follows:
[apport-retrace] landscape- package- changer --quiet'. 6e0a0 <PyDebFile_Type>, args=<optimized out>, kwds=<optimized out>) arfile. cc:438
Core was generated by `/usr/bin/python3 /usr/bin/
Program terminated with signal SIGSEGV, Segmentation fault.
#0 ararchive_new (type=0x7f65262
at python/
This seems to be a fix candidate: /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 977000 /salsa. debian. org/apt- team/python- apt/-/commit/ 3d9af5f196ad6a6 c6973ac699a1588 8d21a9bb52
https:/
https:/
- Eric