Re: [xml] If LibXML2 is compiled with pthreads support on Windows it causes a crash.
- From: Daniel Veillard <veillard redhat com>
- To: Diki Dera <dikidera gmail com>
- Cc: xml gnome org
- Subject: Re: [xml] If LibXML2 is compiled with pthreads support on Windows it causes a crash.
- Date: Wed, 9 May 2012 20:35:38 +0800
On Wed, May 09, 2012 at 01:26:40PM +0300, Diki Dera wrote:
I am using MinGW with GCC 4.5.2 on Windows 7 x64 compiling 32-bit
programs. I have compiled libxml2 from source. I had used the
configure.js script in the win32 folder, I was able to produce a
static version only.
Ever since, I used that one, but my binary size was over a megabyte
big(otherwise it worked perfectly), because of the static version of
libxml2. So since with configure.js I had no option to make a shared
library of libxml2 I resorted to using the standard ./configure script
which is in the main path.
Everything went smoothly, I produced a static AND shared version, but
thread support was auto set to pthreads. I linked to libxml2.dll.a, as
soon as I ran the program I immediately got a crash in
libpthread-2.dll. Same thing with the static version produced by
standard ./configure. Using GDB I was able to track the problem to
threads.c around line 658
which is this code
I suggest you fetch git head version where I applied a patch for
https://bugzilla.gnome.org/show_bug.cgi?id=665526
which makes libxml2 use the native threads by default on Win32 platform.
check. The latest libxml2-git-snapshot.tar.gz found on the ftp was done
8 hours ago so may not have the change but the next snapshot should have
that.
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]