[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
** Branch linked: lp:ubuntu/karmic-proposed/ruby1.8 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/488115 Title: ruby garbage collector segfaults under certain conditions To manage notifications about this bug go to: https://bugs.launchpad.net/ruby/+bug/488115/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
Ronen, the bug that Lucas mentioned in #19 is not fixed in Ubuntu. The original bug listed in the bug description was fixed in ruby1.8=1.8.7.174-1ubuntu1 which is in karmic-updates now. So you don't need to add karmic-proposed. If you did, there are directions for configuring it using the GUI at [1]. [1] https://wiki.ubuntu.com/Testing/EnableProposed -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
Thanks for clarifying, Bryan. The GC bug-fix works. -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
Is there a non-GUI way of gaining access to the karmic-proposed distro? I edited the sources.list, did an apt-get update and did this: apt-get install --reinstall ruby1.8=1.8.7.174-1ubuntu1 apt-get install --reinstall libruby1.8=1.8.7.174-1ubuntu1 It appears to download and reinstall something, but ruby -v still looks the same, and this will cause a segfault: ruby -e 'eval (1+2+*1).chop' -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
Uh? The message sent by the way this bug was handed is: We know better than the Debian maintainers, and don't want to backport new versions even if they only contain important bug fixes. As a result: $ ruby -e 'eval (1+2+*1).chop' Segmentation fault (That's http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510561) And http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=534241 is also not fixed. ** Bug watch added: Debian Bug tracker #510561 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510561 ** Bug watch added: Debian Bug tracker #534241 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=534241 -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 488115] Re: ruby garbage collector segfaults under certain conditions
Lucas Nussbaum [2009-12-15 10:01 -]: Uh? The message sent by the way this bug was handed is: We know better than the Debian maintainers, and don't want to backport new versions even if they only contain important bug fixes. Sorry if it came across that way, it was certainly not meant to be the message. We just have been severely burned several times by being too liberal with changes to stable releases. All the changes in that Debian package were never tested (with feedback) on a karmic system, so we better apply changes individually. If there are more fixes to apply in stables (like the crash you mentioned), which have a confirmed patch and no unrelated changes, these are fine for SRU as well, of course. -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
This bug was fixed in the package ruby1.8 - 1.8.7.174-1ubuntu1 --- ruby1.8 (1.8.7.174-1ubuntu1) karmic-proposed; urgency=medium * Added debian/patches/091125_gc_check.dpatch: Avoid segv on gc run whe heap fills up with deferred objects. (LP: #488115) * Added debian/patches/090812_class_clone_segv.dpatch: avoid segv when an object cloned. (LP: #484756) -- Bryan McLellan b...@loftninjas.org Tue, 01 Dec 2009 03:33:13 -0800 ** Changed in: ruby1.8 (Ubuntu Karmic) Status: Fix Committed = Fix Released -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
I can confirm that updating to the proposed versions of ruby and libruby fix the segfault test cases, and I have not observed any regressions in my testing. ruby -e Time.now while true #= runs indefinitely Cheers, Daniel DeLeo -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 488115] Re: ruby garbage collector segfaults under certain conditions
Bryan McLellan [2009-12-08 0:33 -]: Installed ruby1.8 and libruby1.8 version 1.8.7.174-1ubuntu1 from karmic- proposed. Ran both tests successfully with experiencing a segfault Was that meant to say without, or is there yet another one? Thanks! Martin -- Martin Pitt| http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
My mistake. *without* a segfault. Works as expected. -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
** Tags added: verification-done ** Tags removed: verification-needed -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
Reportedly fixed in lucid in 1.8.7.174-2. ** Changed in: ruby1.8 (Ubuntu) Status: Triaged = Fix Released -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
Accepted ruby1.8 into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance! ** Changed in: ruby1.8 (Ubuntu Karmic) Status: New = Fix Committed ** Tags added: verification-needed -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
Installed ruby1.8 and libruby1.8 version 1.8.7.174-1ubuntu1 from karmic- proposed. Ran both tests successfully with experiencing a segfault, confirming package in -proposed fixes this bug. $ ruby -e 't1 = t2 = Time.now ; while t1.sec == t2.sec do t2 = Time.now end' $ ruby -ve C=0; o=''; o.instance_eval('def m; C; end'); o.clone.m ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux] $ -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
New debdiff that patches the segfault bugs here and in 484756 ** Attachment added: Fixes segv in 488115 and 484756 only http://launchpadlibrarian.net/36292938/ruby1.8_1.8.7.174-1ubuntu1.debdiff -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
Lucas, would it be possible to only backport the particular fix for this crash? There seem to be a lot of other changes, which make the SRU very difficult to review, and open possibilities for regressions. Thanks! ** Also affects: ruby1.8 (Ubuntu Karmic) Importance: Undecided Status: New -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
It would be possible, but there's not much value to it. The other bugfixes also fix relatively severe bugs. Also, 1.8.7.174-2 was uploaded to Debian mid-august, so it received a lot of testing. -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
This SRU would also fix Bug #484756. -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
** Changed in: ruby1.8 (Debian) Status: New = Fix Released -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
Hi, I prepared a SRU to fix this bug and #484756 in karmic. The SRU consists in backporting all the Debian changes, including Bryan's patch, to the karmic package (there was no new upstream version in the meantime). So, as a bonus, it also fixes several bugs that were reported in Debian, but not in Ubuntu. The debdiff between the current version in karmic and my SRU is attached. Note that the debdiff between the current version in Debian and the SRU is much smaller, obviously. I've uploaded the proposed SRU to karmic-proposed. ** Attachment added: ruby1.8_1.8.7.174-1ubuntu0.1.debdiff http://launchpadlibrarian.net/36229888/ruby1.8_1.8.7.174-1ubuntu0.1.debdiff -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
Ah, I would also need a sponsor, since ruby1.8 is in main, and I'm not allowed to upload to main (my upload was rejected). -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
debdiff for karmic attached. debdiff for sid sent to debian bug. ** Attachment added: debdiff backporting ruby1.8.7-172-2 and adding this patch http://launchpadlibrarian.net/36129615/ruby1.8_1.8.7.174-1ubuntu1.debdiff -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
** Changed in: ruby1.8 (Debian) Status: Unknown = New -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
** Attachment added: Dependencies.txt http://launchpadlibrarian.net/36055891/Dependencies.txt ** Attachment added: XsessionErrors.txt http://launchpadlibrarian.net/36055892/XsessionErrors.txt -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
I can reproduce this bug using both the upstream test, and the chef package is affected by it: $ sudo chef-client [Wed, 25 Nov 2009 10:43:36 +] INFO: Starting Chef Run /usr/lib/ruby/1.8/systemu.rb:54: [BUG] Segmentation fault ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux] Aborted Other chef users have reported the same issue: http://tickets.opscode.com/browse/CHEF-530 Two other Ubuntu 9.10 users have confirmed the above test upstream: http://redmine.ruby-lang.org/issues/show/2326 ** Also affects: ruby Importance: Undecided Status: New ** Bug watch added: Debian Bug tracker #557924 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557924 ** Also affects: ruby1.8 (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557924 Importance: Unknown Status: Unknown ** Changed in: ruby Status: New = In Progress ** Changed in: ruby1.8 (Ubuntu) Status: New = Triaged ** Changed in: ruby1.8 (Ubuntu) Importance: Undecided = High -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
Attached patch builds against ruby1.8=1.8.7.174-1 (karmic) and ruby1.8=1.8.7.174-2 (squeeze) and fixes both the Time test, and resolves the segfault running the chef package. Patch filed upstream with debian as well. ** Attachment added: Patch generated from upstream issue #2326 http://launchpadlibrarian.net/36057247/091125_gc_check.dpatch -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
** Changed in: ruby1.8 (Ubuntu) Milestone: None = karmic-updates ** Changed in: ruby1.8 (Ubuntu) Milestone: karmic-updates = None -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 488115] Re: ruby garbage collector segfaults under certain conditions
Bryan, would you mind preparing: - a debdiff against the current karmic version that: + backports the changes from the current Sid package + adds this patch - a debdiff against the current sid package, targetted for Debian, that adds this patch ? That way, I could upload the first one to karmic-updates, the second one to sid, and then get it synced in lucid. -- ruby garbage collector segfaults under certain conditions https://bugs.launchpad.net/bugs/488115 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs