Bug 530407

Summary: ruby crashes with certain unqualified constant references
Product: [Fedora] Fedora Reporter: Will Benton <willb>
Component: rubyAssignee: Jeroen van Meeuwen <vanmeeuwen+fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 12CC: jeremy, mtasaka, tagoh, vanmeeuwen+fedora, willb
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ruby-1.8.6.399-4.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-26 21:50:06 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:
Attachments:
Description Flags
short example program that crashes ruby 1.8.6 in F11 and F12 beta none

Description Will Benton 2009-10-22 16:55:39 UTC
Created attachment 365757 [details]
short example program that crashes ruby 1.8.6 in F11 and F12 beta

Description of problem:

The ruby interpreter crashes when executing code that refers to an unqualified constant name if this code is contained in some method that has been added to a particular object (either via "def obj.meth" or via a def from within a "class << obj").

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

1.8.6  (under both F11 and F12 beta)

How reproducible:

Run the attached code.
  
Actual results:

The ruby interpreter segfaults at the first reference to a constant from within the "declare" method.

Expected results:

Programs, even those that contain syntactic or semantic errors, should execute without crashing the ruby interpreter.  (This particular case works in ruby 1.8.5 on RHEL 5.4.)

Comment 1 Bug Zapper 2009-11-16 14:04:22 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Fedora Update System 2010-05-14 19:49:51 UTC
ruby-1.8.6.399-3.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/ruby-1.8.6.399-3.fc13

Comment 4 Fedora Update System 2010-05-14 19:50:16 UTC
ruby-1.8.6.399-3.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/ruby-1.8.6.399-3.fc12

Comment 5 Fedora Update System 2010-05-15 20:42:02 UTC
ruby-1.8.6.399-3.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update ruby'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/ruby-1.8.6.399-3.fc12

Comment 6 Fedora Update System 2010-05-17 15:36:10 UTC
ruby-1.8.6.399-4.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/ruby-1.8.6.399-4.fc13

Comment 7 Fedora Update System 2010-05-17 15:38:19 UTC
ruby-1.8.6.399-4.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/ruby-1.8.6.399-4.fc12

Comment 8 Fedora Update System 2010-05-18 21:59:24 UTC
ruby-1.8.6.399-4.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update ruby'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/ruby-1.8.6.399-4.fc12

Comment 9 Fedora Update System 2010-05-26 21:47:33 UTC
ruby-1.8.6.399-4.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2010-05-26 21:49:49 UTC
ruby-1.8.6.399-4.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2010-08-22 18:07:58 UTC
ruby-1.8.6.399-6.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/ruby-1.8.6.399-6.fc13

Comment 12 Fedora Update System 2010-08-22 18:10:58 UTC
ruby-1.8.6.399-6.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/ruby-1.8.6.399-6.fc12

Comment 13 Fedora Update System 2010-08-23 21:56:30 UTC
ruby-1.8.6.399-6.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.