Project

General

Profile

Actions

Bug #1752

closed

Segfault in gdbm - 1.8.7 p160 and up

Added by jsc (Justin Collins) over 14 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
ruby -v:
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
[ruby-core:24226]

Description

=begin
I am actually not sure if this is strictly a GDBM problem, but that is what it appears to be. As far as I can tell, this starts with 1.8.7p160 and happens through 1.8.7p174.

The following code results in a segfault when calling to_hash:

require "gdbm"

GDBM.open "test" do |g|
g["a"] = "b"
end

GDBM.open "test" do |g|
g.to_hash
end

So does this:

h = {}
GDBM.open "test" do |g|
g.each_pair do |k, v|
h[k] = v
end
end
=end

Actions #1

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Description updated (diff)
  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0