Linux - libarchive for multithreading program
by tuxuser1 from LinuxQuestions.org on (#6F8P7)
Hi,
I'm getting a weird problem about archives reading in multithreading context.
I state that if i normally read them (single thread) all work well,
but in multithread fails.
About multithread reading,
if i run the program under valgrind (helgrind) supervision,
I notice that a data race occurs on archive_read_next_header() function call.
I suspect that libarchive cannot work in multithreading context.
Can you confirm it?
Nb: Please note that when I run the program under valgrind supervision (multithread), it works! It's very weird.
Best regards
I'm getting a weird problem about archives reading in multithreading context.
I state that if i normally read them (single thread) all work well,
but in multithread fails.
About multithread reading,
if i run the program under valgrind (helgrind) supervision,
I notice that a data race occurs on archive_read_next_header() function call.
I suspect that libarchive cannot work in multithreading context.
Can you confirm it?
Nb: Please note that when I run the program under valgrind supervision (multithread), it works! It's very weird.
Best regards