ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:51073] [Ruby master Bug#8810] GDBM.open内で処理がブロックしたらTimeout.timeout が効かない
       [not found] <redmine.issue-8810.20130823002755.263@ruby-lang.org>
@ 2021-06-28 17:53 ` merch-redmine
  0 siblings, 0 replies; only message in thread
From: merch-redmine @ 2021-06-28 17:53 UTC (permalink / raw)
  To: ruby-dev

Issue #8810 has been updated by jeremyevans0 (Jeremy Evans).

Backport deleted (1.9.3: UNKNOWN, 2.0.0: UNKNOWN)
Status changed from Open to Closed

gdbm was removed in commit:edcc29dcff1b269b7748ab83adf21b2f3f97ebff

----------------------------------------
Bug #8810: GDBM.open内で処理がブロックしたらTimeout.timeout が効かない
https://bugs.ruby-lang.org/issues/8810#change-92674

* Author: ngoto (Naohisa Goto)
* Status: Closed
* Priority: Normal
* ruby -v: -
----------------------------------------
GDBM.open内で処理がブロックした場合にTimeout.timeoutが効きません。

再現方法は、Solarisにて、以下のようにGDBMをオープンしたままにして、

 $ ruby -r gdbm -e 'db = GDBM.open("/var/tmp/tmpdb"); gets'

同一マシンで別のシェルで

 $ ruby -r gdbm -r timeout -e 'Timeout.timeout(5) { db = GDBM.open("/var/tmp/tmpdb") }'

を実行しても、タイムアウトすることなく後者のGDBM.openがブロックし続けて終わりません。

Solarisだけでなく、Linux上にて、以下のように無理やりflockを使わないようconfigureしてmakeしたlibgdbm.soを使用した場合でも同様に再現しました。

 $ wget ftp://ftp.gnu.org/gnu/gdbm/gdbm-1.10.tar.gz
 $ tar xvf gdbm-1.10.tar.gz
 $ cd gdbm-1.10
 $ ./configure --prefix=/home/xxxxx/gdbm ac_cv_func_flock=no
 $ make
 $ make install
 $ LD_PRELOAD=/home/xxxxx/gdbm/lib/libgdbm.so ruby -r gdbm -e 'db = GDBM.open("/var/tmp/tmpdb"); gets'
(別のシェルにて)
 $ LD_PRELOAD=/home/xxxxx/gdbm/lib/libgdbm.so ruby -r gdbm -r timeout -e 'Timeout.timeout(5) { db = GDBM.open("/var/tmp/tmpdb") }'



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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-28 17:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-8810.20130823002755.263@ruby-lang.org>
2021-06-28 17:53 ` [ruby-dev:51073] [Ruby master Bug#8810] GDBM.open内で処理がブロックしたらTimeout.timeout が効かない merch-redmine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).