Re: [ MP2] startup problem with XML::LibXML

2003-01-26 Thread pascal barbedor



hi

what version of libxml2 should I use 
?


I tried to compile version 
1.52
against versions libxml2-2.5.1 
precompiled binary from xmlsoft

test failed with segfault

t\08findnodes.t list of failed 
6-18
t\13dtd.t 
list of failed 11-12

if I nmake install nevertheless , apache 
startup problem remains.


before that I tried to compile XML::LibXML 
1.52 against a slightly prior version of libxml2
all test successful but the problem with 
apache startup remains.

--

with XML::LibXML 1.54_3

more tests do not pass
t\02parse...dubiousTest returned status 2 (wstat 512, 
0x200)DIED. FAILED tests 221-460Failed 240/460 tests, 47.83% 
okayt\08findnodes...dubiousTest returned status 5 (wstat 1280, 
0x500)DIED. FAILED tests 6-35Failed 30/35 tests, 14.29% 
okayt\11memory..skipped 
all skipped: no reason 
givent\19encodingskipped 
all skipped: no reason 
givent\20extras..okt\23rawfunctionsokFailed 
Test Stat Wstat Total Fail Failed List of 
Failed---t\02parse.t 
2 512 460 240 52.17% 
221-460t\08findnodes.t 5 1280 
35 30 85.71% 6-352 tests skipped.

-
With XML::LibXML 1.53



t\08findnodesdubiousTest 
returned status 5 (wstat 1280, 0x500)DIED. FAILED tests 6-18Failed 
13/18 tests, 27.78% 
okayt\11memory...skipped 
all skipped: no reason givent\13dtd..FAILED tests 
11-12Failed 2/16 tests, 87.50% 
okayt\19encoding.skipped 
all skipped: no reason given

Failed Test Stat 
Wstat Total Fail Failed List of 
Failed---t\08findnodes.t 
5 1280 18 13 72.22% 
6-18t\13dtd.t 
16 2 12.50% 11-122 tests 
skipped.




Re: [ MP2] startup problem with XML::LibXML

2003-01-26 Thread Randy Kobes
On Sun, 26 Jan 2003, pascal barbedor wrote:

 hi
 
 what version of libxml2 should I use ?
 
 
 I tried to compile version 1.52
 against  versions libxml2-2.5.1 precompiled binary from xmlsoft
 
 test failed with segfault
 
 t\08findnodes.t   list of failed 6-18
 t\13dtd.tlist of failed 11-12
 
 if I nmake install nevertheless , apache startup problem remains.

I also found XML::LibXML had problems on Win32 against 
libxml2-2.5.1.

 
 
 before that I tried to compile XML::LibXML 1.52 against a
 slightly prior version of libxml2 all test successful but the
 problem with apache startup remains.
[ ... ]

I found that libxml2-2.4.26 worked OK with XML::LibXML's tests,
but not latter versions (eg, 2.4.30). Christian Glahn, in a
recent post on the perl-xml mailing list, also saw such problems,
so it's not a Windows specific thing.

I just tried making up a static XML::LibXML/XML::LibXSLT,
to see if that would help any, but this still causes problems
when used in a startup file.

-- 
best regards,
randy




[ MP2] startup problem with XML::LibXML

2003-01-25 Thread pascal barbedor




PROBLEM :
APACHE SEGFAULT WITH XML::LibXML on 
WIN32

I use all in one perl + apache + modperl2 RK 
binaries
but I replace c:\perl\bin\perl58.dll with 
perl58.dll obtained after separately(and succesfully) compiling perl with vc6 
DEBUG so that I get symbols in 
perl58.dll
so the call stack gives line number in source (see 
below)
everything works normally as far as I tried 
prepared scripts in RK distribution, but my test.pm makes an APACHE 
SEGFAULT
when used from startup.pl.

mytest.pm program
---
package mytest;
use warnings;
use XML::LibXML();
use strict;
our 
$test=XML::LibXML-new-parse_string("?xml version='1.0' 
encoding='iso-8859-1' ?doc/doc");
print $test-toString();
1;
-
perl mytest.pm output ok
USE from a regular CGI WORKS
USE from a registry CGI works
USE from a modperl handler (mason) 
works

!!! use test(); from startup.pl output ok BUT 
produces just after apache segfault


thanks 
pascal



REPORT output
SERVER_SOFTWARE: Apache/2.0.43 (Win32) 
mod_perl/1.99_08-dev Perl/v5.8.0 WINXP

windbg output

(590.7b4): Access violation - code c005 (first 
chance)


call stack

perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 00060006 , clone_params* param = 0006fdf8 )+0xf (CONV: cdecl) 
[..\sv.c @ 9020]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 0006f750 , clone_params* param = 0006fdf8 )+0x1252 (CONV: cdecl) 
[..\sv.c @ 9262]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 0095f00c , clone_params* param = 0006fdf8 )+0xeac (CONV: cdecl) 
[..\sv.c @ 9203]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 00946ae0 , clone_params* param = 0006fdf8 )+0xe3b (CONV: cdecl) 
[..\sv.c @ 9199]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 00946af8 , clone_params* param = 0006fdf8 )+0xe3b (CONV: cdecl) 
[..\sv.c @ 9199]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 00946abc , clone_params* param = 0006fdf8 )+0x14a2 (CONV: cdecl) 
[..\sv.c @ 9283]
perl58!Perl_gp_dup(interpreter* my_perl = 01732e54 
, gp* gp = 009549c4 , clone_params* param = 0006fdf8 )+0x213 (CONV: cdecl) 
[..\sv.c @ 8698]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 0095110c , clone_params* param = 0006fdf8 )+0x8e6 (CONV: cdecl) 
[..\sv.c @ 9142]
perl58!Perl_he_dup(interpreter* my_perl = 01732e54 
, he* e = 0093e3ac , char shared = 0x1 '', clone_params* param = 0006fdf8 
)+0x18e (CONV: cdecl) [..\hv.c @ 118]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 0089ed58 , clone_params* param = 0006fdf8 )+0x10d4 (CONV: cdecl) 
[..\sv.c @ 9233]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 0091fc58 , clone_params* param = 0006fdf8 )+0x88b (CONV: cdecl) 
[..\sv.c @ 9140]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 0091fb64 , clone_params* param = 0006fdf8 )+0xe3b (CONV: cdecl) 
[..\sv.c @ 9199]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 0091fbb0 , clone_params* param = 0006fdf8 )+0xe3b (CONV: cdecl) 
[..\sv.c @ 9199]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 0091fb58 , clone_params* param = 0006fdf8 )+0x14a2 (CONV: cdecl) 
[..\sv.c @ 9283]
perl58!Perl_gp_dup(interpreter* my_perl = 01732e54 
, gp* gp = 009281a4 , clone_params* param = 0006fdf8 )+0x213 (CONV: cdecl) 
[..\sv.c @ 8698]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 0091fbc8 , clone_params* param = 0006fdf8 )+0x8e6 (CONV: cdecl) 
[..\sv.c @ 9142]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 0089a620 , clone_params* param = 0006fdf8 )+0xe3b (CONV: cdecl) 
[..\sv.c @ 9199]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 0089a6a4 , clone_params* param = 0006fdf8 )+0xe3b (CONV: cdecl) 
[..\sv.c @ 9199]
perl58!Perl_sv_dup(interpreter* my_perl = 01732e54 
, sv* sstr = 0089a62c , clone_params* param = 0006fdf8 )+0x14a2 (CONV: cdecl) 
[..\sv.c @ 9283]
perl58!Perl_gp_dup(interpreter* my_perl = 01732e54 
, gp* gp = 009872f4 , clone_params* param = 0006fdf8 )+0x213 (CONV: cdecl) 
[..\sv.c @ 8698]



vc6 debug output

unhandled exception in apache.exe (mscvrt.dll) 
access violation c005 


call stack 

MSVCRT! 77c42fc4()
Perl_savepvn(interpreter * 0x016172cc, const char * 
0x008b846c, long 23281824) line 926 + 17 bytes
Perl_mg_dup(interpreter * 0x016172cc, magic * 
0x01629f80, clone_params * 0x0006fdf8) line 8755 + 32 bytes
Perl_sv_dup(interpreter * 0x016172cc, sv * 
0x0006f750, clone_params * 0x0006fdf8) line 9261 + 22 bytes
Perl_sv_dup(interpreter * 0x016172cc, sv * 
0x0094920c, clone_params * 0x0006fdf8) line 9203 + 34 bytes
Perl_sv_dup(interpreter * 0x016172cc, sv * 
0x00933630, clone_params * 0x0006fdf8) line 9199 + 34 bytes
Perl_sv_dup(interpreter * 0x016172cc, sv * 
0x00933648, clone_params * 0x0006fdf8) line 9199 + 34 bytes
Perl_sv_dup(interpreter * 0x016172cc, sv * 
0x0093360c, clone_params * 0x0006fdf8) line 9283 + 22 bytes

Re: [ MP2] startup problem with XML::LibXML

2003-01-25 Thread pascal barbedor
it is version 1.54

pascal


- Original Message - 
From: Matt Sergeant [EMAIL PROTECTED]
To: pascal barbedor [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, January 25, 2003 8:00 PM
Subject: Re: [ MP2] startup problem with XML::LibXML


On Saturday, Jan 25, 2003, at 09:49 Europe/London, pascal barbedor 
wrote:

 
 PROBLEM :
 APACHE SEGFAULT WITH XML::LibXML on WIN32

What version of XML::LibXML? Try version 1.52, not 1.53 which is very 
buggy.

Matt.