Re: Empty option for testing archives

Johnathan Burchill <[email protected]> Sat, 5 May 2007 10:01:08 -0400
Newsgroups gmane.comp.sysutils.backup.dar.libdar
Message-ID <[email protected]>
--Boundary-00=_k4IPGLzliGfPV8h
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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


--Boundary-00=_k4IPGLzliGfPV8h
Content-Type: application/x-gzip;
  name="twothreadtest.cpp.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="twothreadtest.cpp.gz"

H4sICBmMPEYAA3R3b3RocmVhZHRlc3QuY3BwAKVWTW/jNhC961dMtUAgG14pMXoorCTAtpuDi6Qp
FslZoCXa4kYSVZKKm82mv71DUtSHbWULlEhkihwOH9/MPPEDq9KiyShcMi6VoKS89j50YxkRUcE2
+BPmdT2cqVWOxlmYX3teWhApoWGwgrrZFCwFu2a1aiQVCasUFSRVjFfeqwfYrNXK9HVrWDDrXl6h
6+omqUrQTVIwqVi1C7akkHQWdzZvXe+ZCdWQAv7R7l7tOHYh5ZVUGt4ZgN3GonAWOM5rRKi4uBpZ
N0Nr3QRVjahgrnIm44GPqePOIS14RYOZ9XrgbXIZzBu4goruDXyzGwxODGwLAaDJFfzxeHsLPXVD
57phjPi+2+ampCUXLwH4DVutDDJ/5LenEiiSPOm2paE5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us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--Boundary-00=_k4IPGLzliGfPV8h
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Dar-libdar_api mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dar-libdar_api

--Boundary-00=_k4IPGLzliGfPV8h--