! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Unable to create archives / segfaults / lack of exception handling
Status:
RESOLVED: WONTFIX
Product:
Xarchiver
Component:
general

Comments

Description hollunder 2008-12-28 16:20:12 CET
Creat a bz2 archive.
Click Add to add a directory (in my original case a directory containing dots in the name)

Can't run the archiver executable:
Failed to execute child process "sh" (Argument list too long)

cp: cannot stat `/home/hollunder/builds/xarchiver/backup.bz2': No such file or directory

Main problem appears to be user error handling. I had no problem adding a directory to a .bz2 archive (which doesn't work?) and it appears to like directories containing dots in the name even less.

I got segfaults all the time, however, once I compiled the package with --enable-debug and ran it in gdb the segfaults where gone, I got the error messages from above.

This could be related to this bug: http://bugzilla.xfce.org/show_bug.cgi?id=3235

I'm looking forward to a version of xarchiver that handles whatever you throw at it in a sane way.
Comment 1 Giuseppe Torelli 2008-12-29 09:59:15 CET
(In reply to comment #0)
> Creat a bz2 archive.
> Click Add to add a directory (in my original case a directory containing dots
> in the name)

I acknowledge the bug, however bzip2 can compress only ONE file at a time and NOT the whole content of a directory; you should use tar/bzip2 for this purpose.
Comment 2 Giuseppe Torelli 2008-12-29 10:11:22 CET
(In reply to comment #0)
> I'm looking forward to a version of xarchiver that handles whatever you throw
> at it in a sane way.

That's the problem my friend, you didn't throw at a sane way (because of the reason in the previous comment) so Xarchiver replied accordingly ;)

By the way I'm looking forward to a patch in the add_dialog.c file that checks if the selected items are directories and if so it prevents the user to accomplish the operation...
Comment 3 hollunder 2008-12-29 11:14:08 CET
I figured the out over time that I need to use .tar.bz2 (for other compression formats as well). However, I'm pretty certain that it also has problems with some characters in file/directory names, maybe dots, spaces, and maybe even numbers? Another possible problem could be permissions.
There's definitely demand for testcases, I know. The directory I had the most trouble with was an old 2.1GB homedirectory, and it might contain all of the above cases.

Once I found a good way to reproduce the segfaults I'll tell you.
Comment 4 Robby Workman editbugs 2014-11-16 09:27:45 CET
Xarchiver is no longer hosted on the xfce repos - it's now at http://xarchiver.sourceforge.net/
If this bug is still valid, please file it there.

Bug #4749

Reported by:
hollunder
Reported on: 2008-12-28
Last modified on: 2014-11-16

People

Assignee:
Giuseppe Torelli
CC List:
1 user

Version

Attachments

Additional information