Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027831]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2014-12-21 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (109 votes), past polls