jasperla/openbsd-wip — comment on commit 584f936591f0ed7fd8a942d151b6ae81920e7f32
File:  line 0
By amitkulz:

Re: problems with threads...

from http://xmlsoft.org/threads.html

1) configure the library accordingly using the --with-threads options

this is done in make configure and by defining RE_ENTRANT

-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Found Threads: TRUE

2) call xmlInitParser() in the "main" thread before using any of the libxml2 API (except possibly selecting a different memory allocator)

strigi doesn't do #2, can't find this call. But I can find the call for xmlCleanupParser as shown in http://xmlsoft.org/examples/xpath2.c