Bug#482410: paq8l: Compression errors with -9 flag

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#482410: paq8l: Compression errors with -9 flag

Todd A. Jacobs-4
Package: paq8l
Version: 20070308-1
Severity: important


When using high compression on files, even small ones like copies of
/etc/passwd, the screen starts filling with errors like these:

    $ cd /tmp
    $ cp /etc/passwd .
    $ paq8l -9 passwd

    Transform fails at 0, input=0 decoded=0, skipping...
    Transform fails at -2147483648, input=0 decoded=0, skipping...
    Transform fails at 0, input=0 decoded=0, skipping...
    Transform fails at -2147483648, input=0 decoded=0, skipping...



This seems to be a known bug in related versions (see notes at
http://www.maximumcompression.com/index.html for a mention of this in
PAQ8O10), but I don't know if there's an upstream fix.

It's worth noting that at least in my test case, the problem goes away
with the standard compression level:

    $ paq8l passwd
    Creating archive passwd.paq8l with 1 file(s)...
    passwd 1738 -> 540        
    1738 -> 565
    Time 0.39 sec, used 233736464 bytes of memory

    Close this window or press ENTER to continue...

so this seems to only affect larger files and/or files compressed at
higher compression levels.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (700, 'unstable'), (600, 'stable'), (550, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages paq8l depends on:
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  libgcc1                       1:4.3.0-3  GCC support library
ii  libstdc++6                    4.3.0-3    The GNU Standard C++ Library v3

paq8l recommends no packages.

-- no debconf information



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#482410: paq8l: Compression errors with -9 flag

Joop Stakenborg-3
Thanks Todd,

I will try to contact upstream about this.

Regards,
Joop pa3aba at debian dot org



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#482410: paq8l: Compression errors with -9 flag

Joop Stakenborg-3
Just got an e-mail from upstream. Valid options seem to be -0 to -8.
Both the manpage and "paq8l -h" doesn't reflect this, but if you type
paq8l by itself, it says:

----------------------------------------------------------
$ paq8l
paq8l archiver (C) 2006, Matt Mahoney et al.
Free under GPL, http://www.gnu.org/licenses/gpl.txt

To compress:
  paq8l -level file               (compresses to file.paq8l)
  paq8l -level archive files...   (creates archive.paq8l)
  paq8l file                      (level -5, pause when done)
level: -0 = store, -1 -2 -3 = faster (uses 35, 48, 59 MB)
-4 -5 -6 -7 -8 = smaller (uses 133, 233, 435, 837, 1643 MB)
You may also compress directories.

To extract or compare:
  paq8l -d dir1/archive.paq8l      (extract to dir1)
  paq8l -d dir1/archive.paq8l dir2 (extract to dir2)
  paq8l archive.paq8l              (extract, pause when done)

To view contents: more < archive.paq8l


Close this window or press ENTER to continue...
---------------------------------------------------------

I hope this clarifies things. I wil probably make changes to the code,
so it doesn't accept the -9 option.



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#482410: paq8l: Compression errors with -9 flag

Todd A. Jacobs-4
On Fri, May 23, 2008 at 09:28:27AM +0200, Joop Stakenborg wrote:

> I hope this clarifies things. I wil probably make changes to the code,
> so it doesn't accept the -9 option.

Yes, reporting an improper flag to the user seems like a good idea.
However, it's probably more urgent to update the man page, because it
explicitly states that -9 is a valid option. :)

--
"Oh, look: rocks!"
        -- Doctor Who, "Destiny of the Daleks"



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#482410: paq8l: Compression errors with -9 flag

Joop Stakenborg-3
>
> Yes, reporting an improper flag to the user seems like a good idea.
> However, it's probably more urgent to update the man page, because it
> explicitly states that -9 is a valid option. :)
>

Will probably get to it sunday evening. It's a busy weekend here....

> --
> "Oh, look: rocks!"
> -- Doctor Who, "Destiny of the Daleks"
>


Regards,
Joop



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]