Bug 1293065

Summary: Most trash-cli commands are segfaulting after execution
Product: [Fedora] Fedora Reporter: "FeRD" (Frank Dana) <ferdnyc>
Component: trash-cliAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: b.bellec, sanjay.ankur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-03 16:19:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description "FeRD" (Frank Dana) 2015-12-19 20:02:11 UTC
Description of problem:
Since upgrading to Fedora 23, the trash-list, trash-rm, and trash-empty commands are segfaulting each time they're run.

The commands are still functional, and the segfault appears to occur in the cleanup/exit phase of the (python2.7) scripts. trash-put is not affected, oddly enough.

All of the code is identical to the Fedora 22 versions (confirmed with a diff on /usr/lib/python2.7/site-packages/trashcli/) which are working fine with no segfault problems.

Version-Release number of selected component (if applicable):
trash-cli-0.12.9.14-8.fc23.noarch

How reproducible:
Always, with trash-list, trash-rm, or trash-empty.

Steps to Reproduce:
1. touch dummy.file
2. trash-put dummy.file
3. trash-list

Actual results:

% touch dummy.file
% trash-put dummy.file
% trash-list
2015-12-19 14:55:43 /home/xxxx/dummy.file
zsh: segmentation fault (core dumped)  trash-list


Expected results:

No segfault

Additional info:

See backtrace in the retrace server here:
https://retrace.fedoraproject.org/faf/reports/822700/

There appears to be an existing bug#1291236 related to this backtrace, but for some reason it is restricted and can't be viewed even by logged-in users.

Comment 1 Benjamin Bellec 2016-01-02 10:58:21 UTC
I have the same issue on a fresh F23 installation.

Comment 2 Benjamin Bellec 2016-01-03 12:48:06 UTC
FYI, trash-empty indeed works before crashing only on the local filesystem.
But it doesn't work for the removable media (USB keys for example), the program crash without actually empties the removable device's Trash.

Comment 3 Ankur Sinha (FranciscoD) 2016-01-03 16:19:41 UTC
It is indeed a duplicate of the other bug you've mentioned. It doesn't look like a trash issue, looks more like a python one. I'll investigate this further. Thanks for the report :)

*** This bug has been marked as a duplicate of bug 1291236 ***