Skip Menu |

This queue is for tickets about the PathTools CPAN distribution.

Report information
The Basics
Id: 99386
Status: open
Priority: 0/
Queue: PathTools

People
Owner: Nobody in particular
Requestors: TODDR [...] cpan.org
Cc:
AdminCc:

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



Subject: SegFault in RedHat 5 when yum update perl overwrites the CPAN installed version of Cwd.so
I'm reporting this issue here, but at the moment, I think this is a RedHat Bug with where they install INSTALLDIRS files via CPAN versus where their own RPM provides them. I'm opening this ticket here in the event someone's trying to see if this is a known issue. Description of problem: After upgrading a system from RedHat 5.10 to 5.11 (including perl), many perl scripts, including /usr/bin/cpan start failing with: Attempt to free unreferenced scalar: SV 0x9e01024, Perl interpreter: 0x9ce1008 at /usr/lib/perl5/5.8.8/ExtUtils/Liblist.pm line 6. Segmentation fault Version-Release number of selected component (if applicable): perl-5.8.8-42.el5 How reproducible: Very. Steps to Reproduce: 1. Start with a fresh 5.10 install, including perl and gcc 2. via /usr/bin/cpan, upgrade PathTools (cpan Cwd) 3. yum -y update perl 4. cpan Actual results: Attempt to free unreferenced scalar: SV 0x9e01024, Perl interpreter: 0x9ce1008 at /usr/lib/perl5/5.8.8/ExtUtils/Liblist.pm line 6. Segmentation fault Expected results: Show quoted text
cpan>
Additional info: The problem: On 5.10, Installing perl provides Cwd.so (version 3.12) in: /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/auto/Cwd/Cwd.so or /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/Cwd/Cwd.so Then if you upgrade Cwd to the CPAN version, it overwrites the Cwd.so file with the 3.47 version upgrading perl via YUM then downgrades Cwd.so back to 3.12 BUT does not downgrade the I note in Makefile.PL that they are using 'INSTALLDIRS' => 'perl'. What's problematic is that the arch files are overwritten but not the pure perl code. If both had been overwritten, I'd say this was a bug with PathTools. However, the act of upgrading the perl RPM currently replaces some but not all of the PathTools distro. This seems to be more of a design issue with where the RPM versus the CPAN distro installs INSTALLDIRS => 'perl' files to.
I suspect this is caused by https://rt.cpan.org/Ticket/Display.html?id=89664, which remains unfixed.
On Wed Oct 08 16:35:21 2014, ETHER wrote: Show quoted text
> I suspect this is caused by > https://rt.cpan.org/Ticket/Display.html?id=89664, which remains > unfixed.
CentOS 5 ships perl 5.8.8 so would that case be relevant?
Red Hat initially rejected the report but there is nothing PathTools can do about it, especially since the people affected can't even upgrade to get the fix since /usr/bin/cpan is now broken. This may have been a design issue with perl 5.8.8 which would have only showed up when a distro overwrites CPAN installed files. I provided a response to them and a patch to their spec file to fix it.