Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2017-10-18 06:05 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (242 votes). Check out past polls.