Comments (13)
Thanks.
For package management purposes, pip isn't a good fit, and PyPI has a weird relationship with predictable download URLs (pip doesn't care, it queries PyPI to get the right download URL) so most packagers seem to prefer downloading from tagged releases in GitHub. ;)
from trash-cli.
I also see the segfaults, though the commands actually work, and segfault only after having done their job.
from trash-cli.
After listing up all the mount points, libc.flose(f)
is called to close "/proc/mounts",
and it is another segfault point.
from trash-cli.
Same issue here and I got the same conclusion.
@anntzer Not all commands work though, trash-restore will not let you do anything.
from trash-cli.
trash-restore works for me (at least after applying #53, haven't tried without it).
from trash-cli.
Right, I meant the behaviour before fixing.
from trash-cli.
Same issue here. Both trash-restore
and trash-empty
segfault immediately and don't do anything.
(gdb) run /usr/bin/restore-trash
Starting program: /usr/bin/python2 /usr/bin/restore-trash
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
/usr/bin/python2: can't open file '/usr/bin/restore-trash': [Errno 2] No such file or directory
[Inferior 1 (process 505) exited with code 02]
(gdb) run /usr/bin/trash-restore
Starting program: /usr/bin/python2 /usr/bin/trash-restore
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff74c4a34 in fgets_unlocked () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff74c4a34 in fgets_unlocked () from /usr/lib/libc.so.6
#1 0x00007ffff7534c0e in getmntent_r () from /usr/lib/libc.so.6
#2 0x00007ffff54cc1f0 in ffi_call_unix64 () from /usr/lib/libffi.so.6
#3 0x00007ffff54cbc58 in ffi_call () from /usr/lib/libffi.so.6
#4 0x00007ffff571fedf in _ctypes_callproc () from /usr/lib/python2.7/lib-dynload/_ctypes.so
#5 0x00007ffff5719ad4 in ?? () from /usr/lib/python2.7/lib-dynload/_ctypes.so
#6 0x00007ffff7a5d9e3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#7 0x00007ffff7af2db3 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#8 0x00007ffff7a77c2c in gen_send_ex.isra () from /usr/lib/libpython2.7.so.1.0
#9 0x00007ffff7af085a in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#10 0x00007ffff7a77c2c in gen_send_ex.isra () from /usr/lib/libpython2.7.so.1.0
#11 0x00007ffff7a86dc6 in listextend () from /usr/lib/libpython2.7.so.1.0
#12 0x00007ffff7a87050 in list_init () from /usr/lib/libpython2.7.so.1.0
#13 0x00007ffff7ab25cf in type_call () from /usr/lib/libpython2.7.so.1.0
#14 0x00007ffff7a5d9e3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#15 0x00007ffff7af2db3 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#16 0x00007ffff7af4833 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#17 0x00007ffff7af4833 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#18 0x00007ffff7af4833 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#19 0x00007ffff7af5abc in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#20 0x00007ffff7a824ad in function_call () from /usr/lib/libpython2.7.so.1.0
#21 0x00007ffff7a5d9e3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#22 0x00007ffff7a6c7c7 in instancemethod_call () from /usr/lib/libpython2.7.so.1.0
#23 0x00007ffff7a5d9e3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#24 0x00007ffff7aeeed7 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0
#25 0x00007ffff7a6d4d0 in PyInstance_New () from /usr/lib/libpython2.7.so.1.0
#26 0x00007ffff7a5d9e3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#27 0x00007ffff7af2db3 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#28 0x00007ffff7af4833 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#29 0x00007ffff7af5abc in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#30 0x00007ffff7af5bd9 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
#31 0x00007ffff7b0f03f in run_mod () from /usr/lib/libpython2.7.so.1.0
#32 0x00007ffff7b10212 in PyRun_FileExFlags () from /usr/lib/libpython2.7.so.1.0
#33 0x00007ffff7b11427 in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.7.so.1.0
#34 0x00007ffff7b234a1 in Py_Main () from /usr/lib/libpython2.7.so.1.0
#35 0x00007ffff7472610 in __libc_start_main () from /usr/lib/libc.so.6
#36 0x0000555555554859 in _start ()
Python 2.7.10, trash-cli 0.12.9.14.r34.g7913a0b-1
from trash-cli.
For me, trash-list
doesn't totally work. It works as a bare command, but I cannot write output to a file, nor pipe it (e.g. to sort
). After applying pull request #53, it works perfectly.
from trash-cli.
Interesting... I don't have this problem at all.
But after I applied #53 to trash-cli on the ArchLinux AUR (I am the maintainer), the person who alerted me about this segfaulting says it still doesn't fix anything.
from trash-cli.
From the last comment on the AUR it should be fixed :)
from trash-cli.
Indeed. So then, sorry for the confusion. 😀
from trash-cli.
Having released version 0.16.12.26 with this fix, can you please tag the release so distro maintainers can package it?
from trash-cli.
Today I added the tag '0.16.12.26' and now you can see it in releases.
The new versions were already available yesterday on PyPI and downloadable via easy_install
:
from trash-cli.
Related Issues (20)
- Continuous Testing on Python 2.7
- Cannot restore a file from a mounted cifs volume HOT 10
- verbose output HOT 1
- trash-empty: option to only empty files trashed prior to application start HOT 1
- Confirm Dialog on `trash-empty` HOT 5
- trash-put: cannot trash regular file @raffaem
- Slow trash-empty taking hours to delete HOT 1
- If a trash fails before everything is deleted, all the files that *were* deleted *cannot be restored* HOT 9
- Provide an option to send deleted items to macOS Desktop Trash. HOT 6
- Hitting return on trash-restore without entering a number results in unclear behavior HOT 1
- Crash while removing file/dir wth utf-8 chars HOT 2
- [Question] How to correctly answer "Proceed? (y/n)" when using trash-empty in script? HOT 4
- Crash with `--volumes`: AttributeError: 'PrintVolumesList' object has no attribute 'run_action' HOT 1
- ZSH completion very slow HOT 3
- Add option to preserve folders containing recently modified files
- ZSH completion does not allow to specify multiple files to trash HOT 1
- Don't force user to install old mock library HOT 10
- I have a number of bind mounts, and `trash-list` shows trashed items without any duplication. HOT 4
- having `--dry-run` for `trash-put` HOT 4
- PermissionError in trash-empty incorrectly user's .Trash folder HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trash-cli.