After reviewing the patch is bug # 240334, it's clear to me why axkit has
started failing: XML::LibXML has been fixed to call xmlInitParser() and
xmlCleanupParser(), libxml functions which affect the global process
context; and axkit (/usr/lib/perl5/auto/AxKit/AxKit.so) *also* uses these
functions. Clearly, this is causing a collision that renders AxKit
unusable, probably by XML::LibXML clearing a context that AxKit is still
trying to use.
Since the change to libxml-libxml-perl was made to fix real bugs in that
package when used with mod_perl, I think this is a bug in AxKit's usage of
libxml2, not in XML::LibXML's usage of it. Reassigned accordingly.
--
Steve Langasek
postmodern programmer
Steve Langasek wrote:
| After reviewing the patch is bug # 240334, it's clear to me why axkit has
| started failing: XML::LibXML has been fixed to call xmlInitParser() and
| xmlCleanupParser(), libxml functions which affect the global process
| context; and axkit (/usr/lib/perl5/auto/AxKit/AxKit.so) *also* uses these
| functions. Clearly, this is causing a collision that renders AxKit
| unusable, probably by XML::LibXML clearing a context that AxKit is still
| trying to use.
|
| Since the change to libxml-libxml-perl was made to fix real bugs in that
| package when used with mod_perl, I think this is a bug in AxKit's usage of
| libxml2, not in XML::LibXML's usage of it. Reassigned accordingly.
The problem with the unwillingly shared input callbacks has been
discussed a lot this year
http://aspn.activestate.com/ASPN/Mail/Message/perl-xml/2069098
http://axkit.org/cgi-bin/ezmlm-cgi?5:sss:891:dbffannaclhkbkogofnc#b
Steve Hay posted a patch
http://aspn.activestate.com/ASPN/Mail/Message/perl-xml/2144160
similar to the one from Jason Adams
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=240334
to fix the same problem
Jason's patch is part of the Debian Package now and it looks like the
extra call to xmlCleanupParser() introduced by that patch resets the
input callbacks AxKit still expects to be there.
As Christian Glahn, maintainer of XML::LibXML points out in a comment in
the source code of LibXML.xs, calling xmlInitParser() at
LibXML_init_parser is the wrong way either.
Which patch is now the "correct" one and which one isn't is up to the
module and package maintainers I guess. What I know from everyday
practice being a user of AxKit and other applications using
XML::LibXML/XML::LibXSLT together in one mod_perl environment, is the
fact that the globals and callbacks DO work together at versions AxKit
1.62, XML::LibXML 1.58_1 (also XML::LibXML 1.58), and XML::LibXSLT 1.57.
So, why not upgrade the Debian packages libxml-libxml-perl to use
XML::LibXML 1.58(_1) and libxml-libxslt-perl to use XML::LibXSLT 1.57?
With that, we would have got a working setup and still can find out what
is to fix at AxKit's code and look for someone to takeover the orphaned
package.
- --michael
- --
063A F25E B064 A98F A479 1690 78CD D023 5E2A 6688
http://zis.uibk.ac.at/.m/uibk.ac.at_pgp_pubkey.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFBd2w1eM3QI14qZogRAmgUAJ9+TjYIOna18iT1x59b/L3VNKcL2ACfTVpB
2qU85PP4v8Q+sPVdm3O+4tE=
=Wp5+
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
On torsdag 21. oktober 2004, 09:58, Michael Kröll wrote:
> So, why not upgrade the Debian packages libxml-libxml-perl to use
> XML::LibXML 1.58(_1) and libxml-libxslt-perl to use XML::LibXSLT
> 1.57?
I'm a Debian user, and I have just upgraded my semi-production system to
Sarge (with little trouble, I might add). I use apache and
libapache-mod-perl from Debian, but the rest is from CPAN. I think I
have steered clear of the callback issues so I can't comment on the
merits of the proposed patches, but I can say that XML::LibXML 1.58_1
and XML::LibXSLT 1.57 works well for me. Allthough 1.58_1 is marked a
developer release, it isn't a huge change over 1.58, so I would
encourage people to consider it for inclusion in Sarge.
Cheers,
Kjetil
--
Kjetil Kjernsmo
Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
kje...@kjernsmo.net webm...@skepsis.no edi...@learn-orienteering.org
Homepage: http://www.kjetil.kjernsmo.net/ OpenPGP KeyID: 6A6A0BBC
hi,
I am a Debian newbie and as I seem to have too much time on this Sunday
morning I created my first two Debian packages ;-)
http://zis.uibk.ac.at/.m/scratch/debian/libxml-libxml-perl_1.58-1_i386.deb
http://zis.uibk.ac.at/.m/scratch/debian/libxml-libxslt-perl_1.57-1_i386.deb
The patches from Michael Edwards against the original version of
XML::LibXML 1.56 have by now been merged into the XML::LibXML CVS and
1.58_1 release, so nothing should be lost there.
Installation of those two packages makes my AxKit work again. :-) The
Does-It-Brake-With-Other-LibXML-Apps-In-One-Single-mod_perl-Test went
trough fine too. That has been tested that with XIMS (CGI::XMLApplication).
Changes and the tarred build-dirs are available at
http://zis.uibk.ac.at/.m/scratch/debian/
Maybe other AxKit users (Kjetil?, Volker?) can test those packages too
and someone will think about including the upstream XML::LibX* versions
in Sarge (Please!!!)
- --michael
P.S.: Those packages have been built against:
- -- System Information:
Debian Release: 3.1
~ APT prefers testing
~ APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.18-686
Locale: LANG=en_US, LC_CTYPE=en_US
Versions of packages libxml-libxml-perl depends on:
ii libc6 2.3.2.ds1-16
ii libxml-libxml-common-perl 0.13-4
ii libxml-namespacesupport-per 1.08-3
ii libxml-sax-perl 0.12-4
ii libxml2 2.6.11-3
ii perl 5.8.4-2.3
ii perl-base [perlapi-5.8.4] 5.8.4-2.3
ii zlib1g 1:1.2.1.1-7
Versions of packages libxml-libxslt-perl depends on:
ii libc6 2.3.2.ds1-16
ii libxml-libxml-perl 1.58-1
ii libxml2 2.6.11-3
ii libxslt1.1 1.1.8-4
ii perl 5.8.4-2.3
ii perl-base [perlapi-5.8.4] 5.8.4-2.3
ii zlib1g 1:1.2.1.1-7
- --
IT Services University of Innsbruck
063A F25E B064 A98F A479 1690 78CD D023 5E2A 6688
http://zis.uibk.ac.at/.m/uibk.ac.at_pgp_pubkey.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFBe3EHeM3QI14qZogRAispAKD4zpgExUy6RByX3X4YXeyYJJy/XACfWsQo
LJj+vstMd0GCVDpwX6P8mHU=
=9tDG
Hehe!
> http://zis.uibk.ac.at/.m/scratch/debian/libxml-libxml-perl_1.58-1_i38
>6.deb
> http://zis.uibk.ac.at/.m/scratch/debian/libxml-libxslt-perl_1.57-1_i3
>86.deb
Woohoo! Works for me!
> Maybe other AxKit users (Kjetil?, Volker?) can test those packages
> too
Yup!
> and someone will think about including the upstream XML::LibX*
> versions in Sarge (Please!!!)
Concurred.
There is a wishlist bug open on new upstream versions, BTW, so we're not
along in this: #260832, I'm CC-ing that bug, so that this becomes a
part of the libxml-libxml-perl record again.
Michael Kröll <michael...@uibk.ac.at> writes:
> I am a Debian newbie and as I seem to have too much time on this Sunday
> morning I created my first two Debian packages ;-)
>
> http://zis.uibk.ac.at/.m/scratch/debian/libxml-libxml-perl_1.58-1_i386.deb
> http://zis.uibk.ac.at/.m/scratch/debian/libxml-libxslt-perl_1.57-1_i386.deb
wow - first impression's quite good :-)
> Maybe other AxKit users (Kjetil?, Volker?) can test those packages too
> and someone will think about including the upstream XML::LibX* versions
> in Sarge (Please!!!)
with pleasure ;-)
perhaps more details will follow.
thx!!
volker
--
Volker Hess ** vol...@unix-ag.org ** http://www.online-h.de/
>> Maybe other AxKit users (Kjetil?, Volker?) can test those packages too
>> and someone will think about including the upstream XML::LibX* versions
>> in Sarge (Please!!!)
>
> with pleasure ;-)
>
> perhaps more details will follow.
upps - sorry - i meant the test.
including the upstreams into sarge would be really great!!
volker
--
Volker Hess ** vol...@unix-ag.org ** http://www.online-h.de/
--