Page 1 of 1

OT: par2 crash

Posted: April 1st, 2014, 10:50 am
by schmitt56
Hello,

I noticed some downloads in SABnzbd recently which are marked as failed. Hitting the retry button does not solve the problem, after a while the Download is marked again as failed.

I found out, that par2 is crashing:

There are 254 recoverable files and 0 other files.
The block size used was 262272000 bytes.
There are a total of 254 data blocks.
The total size of the data files is 66332863854 bytes.

Verifying source files:

terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted

I compiled par2 from source but unfortunately the crash is the same.

I dont know what to do now. Same archive on another machine is being verified by par2 without problems.

Do You habe an idea where to start ? Or where it would be better to ask ?

Regards,
Chris

Re: OT: par2 crash

Posted: April 1st, 2014, 10:59 am
by sander
Which HW
Which OS
Which par2 version

... same questions for the other machine

Re: OT: par2 crash

Posted: April 1st, 2014, 12:09 pm
by schmitt56
Its an arm device (kirkwood) (dockstar, debian wheezy, kernel 3.2.23).

Re: OT: par2 crash

Posted: April 1st, 2014, 12:12 pm
by schmitt56
The other machine where it works is debian wheezy amd64, on a PC with 4GB of ram.

Re: OT: par2 crash

Posted: April 1st, 2014, 12:21 pm
by schmitt56
Oh, and its par2cmdline version 0.4 .

Re: OT: par2 crash

Posted: April 1st, 2014, 12:31 pm
by sander
If you can reproduce it on the dockstar command line, it's a dockstar problem, and I would report it in dockstar forum. Oh: it can be a hardware problem: bad memory, or something like that.

Re: OT: par2 crash, solved

Posted: April 14th, 2014, 12:44 pm
by schmitt56
Ok I got it after experimenting on a bigger machine. To be able to use par2 on this download the swap memory must be set to a minimum of 512MB. At least for machines with only 128MB of physical ram.

Re: OT: par2 crash, solved

Posted: April 14th, 2014, 12:58 pm
by sander
schmitt56 wrote:Ok I got it after experimenting on a bigger machine. To be able to use par2 on this download the swap memory must be set to a minimum of 512MB. At least for machines with only 128MB of physical ram.
You "got it"? The solution? Or the crash? ???

Re: OT: par2 crash

Posted: April 14th, 2014, 1:06 pm
by schmitt56
I got the solution. ;)

Re: OT: par2 crash

Posted: April 14th, 2014, 1:11 pm
by sander
schmitt56 wrote:I got the solution. ;)
OK. Good. To understand you: you are able to let par2 crash from the commandline on the bigger machine? (Big as in: 1+ GB RAM?)