Segmentation fault in Marshal.load
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rails (Ubuntu) |
Fix Released
|
High
|
Dave Walker | ||
ruby1.8 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ruby1.8
OS: Lucid
Package: ruby1.8-1.8.7.249-2
This issue is tracked in ruby's bug tracker here:
http://
The tracker description indicates its an issue with 1.8.7 p248 only however the source for 1.8.7 p249 does not have the patch in that bug applied.
I took the patch in that bug and built my own ruby1.8 based on the source from the lucid package. Unfortunately the patched version still has the same issue. In fact I tried ruby 1.8.7 p302 as well and had the same issues with that version as well.
The only version of ruby 1.8.7 I've found to not crash occasionally on this bug is ruby-enterprise
http://
Perhaps the patches for ruby enterprise edition could be integrated in to the ruby1.8 package.
Related branches
tags: | added: glucid lucid ruby |
Changed in ruby1.8 (Ubuntu): | |
status: | New → Incomplete |
Changed in ruby1.8 (Ubuntu): | |
assignee: | nobody → Dave Walker (davewalker) |
Dan (or whoever else), can you provide a code snippet that triggers the bug on Ubuntu? I tried the example from the upstream bug, but it would not segfault. Here's my test case:
ubuntu@ lucid-server: ~$ cat fault.rb path("/ usr/share/ rails/activesup port/lib/ active_ support/ multibyte/ unicode_ database. rb", __FILE__) :Multibyte: :UnicodeDatabas e.new.codepoint s lucid-server: ~$ ./fault.rb
#!/usr/bin/ruby
require File.expand_
ActiveSupport:
puts "No crash"
ubuntu@
No crash