Skip Menu |

This queue is for tickets about the Catalyst-Model-SOAP CPAN distribution.

Report information
The Basics
Id: 55834
Status: rejected
Priority: 0/
Queue: Catalyst-Model-SOAP

People
Owner: Nobody in particular
Requestors: marco.delellis [...] gruppocsf.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Version 1.2 fails test rpcliteral.t under Linux
Catalyst-Model-SOAP-1.2 Perl version 5.10.0 & 5.10.1 Operating system Ubuntu 9.10 (i386) & Debian 4.0 (x86_64) Catalyst-Model-SOAP fails the last of four tests: the rpcliteral one. Here is the output: cpan[13]> install Catalyst::Model::SOAP Running install for module 'Catalyst::Model::SOAP' Running make for D/DR/DRUOSO/Catalyst-Model-SOAP-1.2.tar.gz Has already been unwrapped into directory /home/daniele/.cpan/build/Catalyst-Model-SOAP-1.2-v_MVEk Has already been made Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01_basics.t ................ ok t/02_docliteral.t ............ ok t/03_docliteral_multipart.t .. ok t/04_rpcliteral.t ............ 2/3 # Failed test 'Output message processed!' # at t/04_rpcliteral.t line 37. # got: undef # expected: 'Hello World!' # Looks like you failed 1 test of 3. t/04_rpcliteral.t ............ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests Test Summary Report ------------------- t/04_rpcliteral.t (Wstat: 256 Tests: 3 Failed: 1) Failed test: 3 Non-zero exit status: 1 Files=4, Tests=14, 10 wallclock secs ( 0.13 usr 0.01 sys + 9.14 cusr 0.48 csys = 9.76 CPU) Result: FAIL Failed 1/4 test programs. 1/14 subtests failed. make: *** [test_dynamic] Errore 1 DRUOSO/Catalyst-Model-SOAP-1.2.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports DRUOSO/Catalyst-Model-SOAP-1.2.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: DRUOSO/Catalyst-Model-SOAP-1.2.tar.gz : make_test NO I have done the same installation in OpenSolaris snv_133 with Perl 5.10.1 and worked fine. All tests were successul. In Linux I used Perl bundled with the distro and after I have built Perl myself (with -Dusethreads only). In Linux I have used a recent version of libxml2 (2.7.6) that I built myself and re-installed XML::LibXML pointing XMLPREFIX to the newer version of the library. I had no success, the problem is still here. At this point I can investigate further but I don't know where to search.
From: marco.delellis [...] gruppocsf.com
I did some debugging, with the Perl debugger, using a Debian 5 x86_64 VM: I found that the failed test it's not Catalyst-Model-SOAP fault. The test 04_rpcliteral.t is still faliling, returning undef instead of a hashref containing the SOAP response. The problem arise when at runtime there is a return from the subroutine XML::LibXML::InputCallback::unregister_callbacks() in the XML::LibXML library code. I saw that after returning from that subroutine, in the working OS (OpenSolaris), the flow goes in an anonymous subroutine; in the Linux version however, we fall in the IO::Handle::DESTROY destructor. Clearly, something has gone wrong right there. I went to the XML::LibXML bug reports and found this bug: [ Bug #51086 ] XML::LibXML::InputCallback object not reset to usable state after parsing In the bug report, I found the same problem I experienced in debugging the test 04_rpcliteral.t. The proposed patch did not work for me. I also tried version 1.69 and 1.68 of the module but it fails its tests. Now remains the question why we see this behavior only in Linux, while in OpenSolaris, the *same* version works flawlessly.
While this bug affects Catalyst::Model::SOAP, it clearly is not *in* C::M::SOAP. Please consider taking it to XML::LibXML as a fail case. daniel