trash-empty and trash-list segfault

Bug #1643098 reported by Jan Claeys
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
trash-cli (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When I run trash-empty and trash-list (which are Python scripts) I get a segfault. This used to work in Ubuntu 16.04

Revision history for this message
John Wang (johnwang) wrote :

This is due to incompatibility with Python 3, which Ubuntu now uses system-wide. Trash-cli was just updated upstream to work with Python 3 and it supposedly fixes the segfaulting, so the latest release needs to be packaged for Ubuntu.

Upstream bug:
https://github.com/andreafrancia/trash-cli/issues/81

Latest upstream tarball release (0.17.1.14 at time of writing) is here:
https://github.com/andreafrancia/trash-cli/releases

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in trash-cli (Ubuntu):
status: New → Confirmed
Revision history for this message
John Wang (johnwang) wrote :

However, the relevant Debian bug says the segfaulting is fixed after upgrading Python from version 2.7.12 (Ubuntu 16.10 uses the same version for python2.7 currently) to version 2.7.13:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=843612

Revision history for this message
Andrea Francia (andrea-francia) wrote :

Hi, I'am the trash-cli upstream author and maintainer.

In upstream we worked on two different issues:

Segmentation fault bug: https://github.com/andreafrancia/trash-cli/issues/52
Python 3 compatibility: https://github.com/andreafrancia/trash-cli/issues/81

The segmentation fault bug was reported on upgrading python to 2.7.10 and
has been solved with the upstream release 0.16.12.26.

The Python 3 compatibility was solved with the 0.17.1.12 upstream release.

The current upstream release 0.17.1.14 includes solution for both these
issues and other bug fixes.

Hope this helps

Andrea Francia

Revision history for this message
John Wang (johnwang) wrote :

@andrea-francia Thanks for clearing that up.

I've installed the 0.17.1.14 tarball from upstream and can confirm that the segfaults no longer occur when invoking the various trash-cli commands.

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.