landscape-package-changer SIGSEGV in _PyObject_MakeTpCall()

Bug #1909490 reported by Andreas Ulm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
New
Undecided
Unassigned

Bug Description

Hi,

while installing a fresh focal based laptop landscape did not install any package profile configure via landcape webinterface.
After debugging the code I found that the process landscape-package-changer gets a segfault while processing the deb-package for the profiles.
This immidiately stops when /usr/lib/python3/dist-packages/landscape/lib/apt/package/facade.py:365 from
```
        deb = apt_inst.DebFile(deb_file)
```
to
```
        deb = apt_inst.DebFile(deb_path)
```

That way apt_inst opens the deb-file on its own and landscape installs all profiles as expected.

Regards,
Andreas

Revision history for this message
Andreas Ulm (a.ulm) wrote :
Revision history for this message
Andreas Ulm (a.ulm) wrote :

The behaviour can also be reproduced by the following simple python-code and the attached package file which was generated by landscape:

```
$ python3
>>> import apt_inst
>>> apt_inst.DebFile('8081330.deb').control.extractdata("control")
b'Package: landscape-profile-3btf7rtf-printer-packages\nVersion: 5\nArchitecture: all\nMaintainer: Landscape Team <email address hidden>\nInstalled-Size: 64\nDepends: expect, lib32gcc1, lib32stdc++6, lib32z1, libc6-i386, printer-driver-cups-pdf, xsane\nSection: metapackages\nPriority: optional\nDescription: Landscape meta-package for profile printer-packages\n additional packages to support printing e.g. for Brother MFC-9465CDN\n'
>>>
>>> apt_inst.DebFile(open('8081330.deb')).control.extractdata("control")
Segmentation fault (core dumped)
```

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.