Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Segmenation Fault in IO::Uncompress:Bunzip2

by BrowserUk (Pope)
on Apr 09, 2013 at 19:57 UTC ( #1027831=note: print w/replies, xml ) Need Help??

in reply to Segmenation Fault in IO::Uncompress:Bunzip2

It sounds very much like that one line is very, very long. Hence the attempt to search it for a newline is overrunning some internal buffer.

As you say Perl can process the decompress file line by line, you should pass it (the decompressed copy) through a Perl script that checks the length of the lines and inserts one or more newlines if they are over some reasonable length. Then you can recompress it.

Perhaps as a first pass, you could print out any line(s) that are greater than the maximum you might reasonably expect and that way determine whether there isn't some obvious way of 'wrapping' them such that they make sense.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: Segmenation Fault in IO::Uncompress:Bunzip2

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027831]
[karlgoethebier]: Eily: ah, i have v5.24.1
Discipulus is distracted by work..

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-07-21 08:45 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (319 votes). Check out past polls.