Re: [Dar-libdar_api] Empty option for testing archives
For full, incremental, compressed and encrypted backups or archives
Brought to you by:
edrusb
|
From: Johnathan B. <jk...@ro...> - 2007-05-05 14:01:21
|
Hi Denis, On Wednesday 02 May 2007 2:31 pm, Denis Corbin wrote: > This now in CVS Trunk. > > Regards, > Denis. I've tried the empty option to op_test, and it works okay when running the test in a single thread. But sometimes, not all of the time, I get a SRC_BUG thrown at line 44 of defile.cpp when testing the archive in two threads at once, one real test and one empty test. Here is a test program that should reproduce the behaviour. You'll need to edit the archive path to open an archive on your system. I compiled it with: g++ -DLIBDAR_MODE=64 -fexceptions -L/usr/local/lib -lpthread -lattr -lcrypto -ldar64 -lz -lbz2 twothreadtest.cpp -o twothreadtest Running "twothreadtest" from the command line several times in a row usually shows the bug. Any ideas what the problem is? Thanks, JB |