Article 6F8P7 Linux - libarchive for multithreading program

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
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments