Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 155490 - Segmentation faults in Perl_gv_fetchpv(), Perl_find_script(), Perl_sv_gets()
Summary: Segmentation faults in Perl_gv_fetchpv(), Perl_find_script(), Perl_sv_gets()
Status: CLOSED DUPLICATE of bug 154759
Alias: None
Product: Fedora
Classification: Fedora
Component: perl
Version: 3
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Chip Turner
QA Contact: David Lawrence
: 155487 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2005-04-20 20:10 UTC by Hans Ecke
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-04-22 19:20:19 UTC

Attachments (Terms of Use)
backtrace of segfault in Perl_sv_gets (deleted)
2005-04-20 20:15 UTC, Hans Ecke
no flags Details
segfault in Perl_find_script() (deleted)
2005-04-20 20:17 UTC, Hans Ecke
no flags Details
segfault in Perl_gv_fetchpv() - this one also has local variables (deleted)
2005-04-20 20:18 UTC, Hans Ecke
no flags Details

Description Hans Ecke 2005-04-20 20:10:05 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.4; Linux; en_US) KHTML/3.4.0 (like Gecko)

Description of problem:
Recently I have seen segmentation faults crop up in unattended (cron) perl   
scripts. Unfortunately I can not reproduce them interactively.  
I set them to create core files and downloaded perl-debuginfo. Attached you  
will find some backtraces that might help. 
I'm sorry I can not be more specific, please advise. 

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

How reproducible:

Steps to Reproduce:
1.Have perl scripts in cron (/etc/cron.hourly/ etc) 
2.Use BSD::Resource to make them create core files if interrupted 
3.Wait for messages in the mail 

Actual Results:  Perl scripts die from segmentation fault and create core files 

Expected Results:  They should not die. Perl should never ever see a segfault. 

Additional info:

See attached gdb backtraces.

Comment 1 Hans Ecke 2005-04-20 20:12:20 UTC
*** Bug 155487 has been marked as a duplicate of this bug. ***

Comment 2 Hans Ecke 2005-04-20 20:15:36 UTC
Created attachment 113434 [details]
backtrace of segfault in Perl_sv_gets

Please note that even though this is a segfault in a custom script, they also
happen in one liners like 'perl -p -e"s/\s+$//"'

Comment 3 Hans Ecke 2005-04-20 20:17:12 UTC
Created attachment 113435 [details]
segfault in Perl_find_script()

Comment 4 Hans Ecke 2005-04-20 20:18:42 UTC
Created attachment 113436 [details]
segfault in Perl_gv_fetchpv() - this one also has local variables

Comment 5 Hans Ecke 2005-04-20 23:20:31 UTC
One of the machines hit by this also displays bug #154759 - there might be a 
connection. I'm running the 2.6.11-1.14_FC3 kernel on them 

Comment 6 Ville Skyttä 2005-04-21 16:52:42 UTC
In addition to kernel, glibc has also been updated lately.  No clue if it could
affect this or not.

Comment 7 Hans Ecke 2005-04-22 19:20:19 UTC
Since I turned exec-shield randomization off I do not see these crashes  
anymore. I believe this is a kernel issue with fedora's newest 2.6.11-1.14  
kernel. As I say in my last comment in bug #154759, I think kernel/exec-shield   
people should look at this.  
Ville, glibc was changed on a fedora2 machine in November 2004, on the fedora3  
on 2005.04.07. The new kernel came on 2005.04.13. That is close, but the 
problems started after the new kernel was installed. 
Resolving as duplicate.  

*** This bug has been marked as a duplicate of 154759 ***

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