Bug 228470
Summary: | LibXML failing under mod_perl (missing initialization code in .xs) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michal Schwarz <misch> |
Component: | perl-XML-LibXML | Assignee: | Stepan Kasal <kasal> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 6 | CC: | jpazdziora, mmaslano, perl-devel, robin.norwood |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | perl-XML-LibXML-1.62001-2.fc8.3 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-03-07 11:32:21 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michal Schwarz
2007-02-13 09:37:54 UTC
I forgot EXACT steps to repdocute this bug: $ cat - >a.pl use XML::Simple; XMLin('file.xml') && print "OK"; ^D $ cat - >file.xml <?xml version="1.0" encoding="UTF-8"?> <test></test> ^D $ perl a.pl OK $ perl a.pl OK $ /usr/bin/speedy a.pl OK $ /usr/bin/speedy a.pl Couldn't create file parser context for file "file.xml": No such file or directory at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread- multi/XML/LibXML.pm line 427. at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/XML/LibXML/SAX.pm line 63 On Fedora 8 with # rpm -q perl-XML-LibXML perl-XML-LibXML-1.62001-2.fc8.3.x86_64 the problem does no longer be present, under mod_perl. I've created the file /var/www/perl/index.html with content #!/usr/bin/perl print "Content-Type: text/plain\n\n"; use XML::Simple; XMLin("/tmp/file.xml"); print "OK ($$).\n"; __END__ I've created the above mentioned file.xml in /tmp, uncommented Alias /perl /var/www/perl <Directory /var/www/perl> SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders Options +ExecCGI </Directory> in /etc/httpd/conf.d/perl.conf, restarted httpd, and then run # GET http://localhost/perl/index.pl until I hit the same pid again. It went alright the second time as well. I suggest to mark this bugzilla as resolved with CURRENTRELEASE. |