[ruby-core:96271] [Ruby master Bug#12388] Iterating second dbm enum causes first dbm enum to stop

[email protected]
Newsgroups gmane.comp.lang.ruby.core
Message-ID <redmine.journal-83170.20191216153008.14f464ddc78a633b@ruby-lang.org>
Issue #12388 has been updated by mame (Yusuke Endoh).

Status changed from Open to Third Party's Issue

I can reproduce the issue with "GDBM version 1.8.3. 10/15/2002", but not with "GDBM version 1.18.1. 27/10/2018" nor "Berkeley DB 5.3.28: (September  9, 2013)".  It might be fixed on the side of GDBM.  Please try a newer version.

----------------------------------------
Bug #12388: Iterating second dbm enum causes first dbm enum to stop
https://bugs.ruby-lang.org/issues/12388#change-83170

* Author: wayne.conrad (Wayne Conrad)
* Status: Third Party's Issue
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.3.2p119 (2016-05-15 revision 55001) [x86_64-linux]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
When iterating over a dbm file, accessing the enumerator of a second dbm file causes iteration of the first dbm file to stop prematurely.  This happens in ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux] and also in ruby 2.3.2p119 (2016-05-15 revision 55001) [x86_64-linux].

My Ruby's dbm is using gdbm.  This anomaly does not happen if I use gdbm directly instead of using it indirectly through dbm.  There is no maintainer listed for dbm.  Does that mean that dbm should not be used?

---Files--------------------------------
dbm_concurrent_iteration_anomaly (1.26 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.