[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-bugs
Subject:    [osol-bugs] [BUG] BZip2Analyzer loops infinitely on corrupt
From:       Lubomir Kundrak <lkundrak () redhat ! com>
Date:       2007-09-03 8:52:04
Message-ID: 21545232.1188834754851.JavaMail.Twebapp () oss-app1
[Download RAW message or body]

$ [b]java -Xmx1500M -jar /pool/OpenGrok/opengrok-0.5/opengrok.jar -v -c ctags -s /tmp/test/root /tmp/test/index[/b]
Processing lc_backgroundcolor.xcf.bz2
Checking for changes in lc_backgroundcolor.xcf.bz2
Adding: /lc_backgroundcolor.xcf.bz2 (BZip2Analyzer)

[i]And now OpenGrok is stuck in an infinite loop. Strace shows:[/i]

$ [b]strace -p 24726 2>&1 |head[/b]
Process 24726 attached - interrupt to quit
read(5, "", 8192)                       = 0
read(5, "", 8192)                       = 0
read(5, "", 8192)                       = 0
read(5, "", 8192)                       = 0
read(5, "", 8192)                       = 0
read(5, "", 8192)                       = 0
read(5, "", 8192)                       = 0
read(5, "", 8192)                       = 0
...
read(5, "", 8192)                       = 0

[i]The file was obviously meant to be a bz2 archive;[/i]

$ file /tmp/test/root/lc_backgroundcolor.xcf.bz2
/tmp/test/root/lc_backgroundcolor.xcf.bz2: bzip2 compressed data, block size = 900k

[i]though it can not be decompressed properly[/i]

$ [b]bzcat /tmp/test/root/lc_backgroundcolor.xcf.bz2 > /dev/null[/b]

bzcat: Data integrity error when decompressing.
        Input file = /tmp/test/root/lc_backgroundcolor.xcf.bz2, output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

[i]I am attaching the problematic file.[/i]
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-bugs mailing list
opensolaris-bugs@opensolaris.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic