Bug 1226758 - perl requires causes sigsegv
Summary: perl requires causes sigsegv
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: perl
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Jitka Plesnikova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-01 02:47 UTC by Thom Carlin
Modified: 2015-06-01 12:57 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-01 12:57:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Thom Carlin 2015-06-01 02:47:10 UTC
Description of problem:

Perl with requires causes SIGSEGV

Version-Release number of selected component (if applicable):

4:5.20.2-325.fc22

How reproducible:

100%

Steps to Reproduce:
1. perl -e "require(Encode)"
2.
3.

Actual results:

SIGSEGV "Segmentation fault (core dumped)"

Expected results:

No Segmentation fault

Additional info:

Fails on *any* requires

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff170202e in boot_Encode (my_perl=0x603010, cv=0x6e1c00) at Encode.c:1547
1547	    dVAR; dXSARGS;

backtrace:
#0  0x00007ffff170202e in boot_Encode (my_perl=0x603010, cv=0x6e1c00) at Encode.c:1547
#1  0x00000036e3ccd67b in Perl_pp_entersub (my_perl=0x603010) at pp_hot.c:2794
#2  0x00000036e3cc5f06 in Perl_runops_standard (my_perl=0x603010) at run.c:42
#3  0x00000036e3c559c0 in S_run_body (oldscope=<optimized out>, my_perl=<optimized out>) at perl.c:2456
#4  perl_run (my_perl=0x603010) at perl.c:2372
#5  0x0000000000400d29 in main (argc=3, argv=0x7fffffffe2b8, env=0x7fffffffe2d8) at perlmain.c:114

Comment 1 Thom Carlin 2015-06-01 10:22:09 UTC
Correction: May not fail on *every* requires

Does fail on 'require(List::Util)'
#0  0x00007ffff1702bde in boot_List__Util (my_perl=0x604010, cv=0x654948) at ListUtil.c:1793
#1  0x00000036e3ccd67b in Perl_pp_entersub (my_perl=0x604010) at pp_hot.c:2794
#2  0x00000036e3cc5f06 in Perl_runops_standard (my_perl=0x604010) at run.c:42
#3  0x00000036e3c559c0 in S_run_body (oldscope=<optimized out>, my_perl=<optimized out>) at perl.c:2456
#4  perl_run (my_perl=0x604010) at perl.c:2372
#5  0x0000000000400d29 in main (argc=3, argv=0x7fffffffe2a8, env=0x7fffffffe2c8) at perlmain.c:114

Comment 2 Petr Pisar 2015-06-01 12:22:20 UTC
I guess you mix XS modules compiled for old new new perl after upgrading your Fedora. For example you installed Encode from CPAN and you try to load Encode module compiled against perl 5.18 to with perl 5.20. Please note that perl releases between major versions are not guaranteed to be ABI-compatible. Is that your case?

Comment 3 Thom Carlin 2015-06-01 12:56:39 UTC
Working with Petr, we determined the issue in my case was installing CPAN modules in a prior version.  The workaround that resolved the issue was to remove the contents of /usr/local/share/perl5 and /usr/local/lib64/perl5.


Note You need to log in before you can comment on or make changes to this bug.