summaryrefslogtreecommitdiff
path: root/bootstraptest/test_fork.rb
AgeCommit message (Collapse)Author
2026-03-07[3.4] Fix deadlock on th->interrupt_lock after forkJean Boussier
[Bug #21860] If a thread was holding this lock before fork, it will not exist in the child process. We should re-initialize these locks as we do with the VM locks when forking. Co-Authored-By: John Hawthorn <john@hawthorn.email> Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
2024-11-21Extend the timeout of fork-exit bootstraptestYusuke Endoh
It often fails randomly. http://ci.rvm.jp/results/trunk-yjit@ruby-sp2-noble-docker/5421564 ``` Fstderr output is not empty bootstraptest.test_fork.rb_78_287.rb:16:in 'block in <main>': failed (RuntimeError) from <internal:numeric>:257:in 'Integer#times' from bootstraptest.test_fork.rb_78_287.rb:10:in '<main>' ``` I'm not sure why the frequency of failure has suddenly increased, though. Notes: Merged: https://github.com/ruby/ruby/pull/12142
2024-08-13Re-initialize vm->ractor.sched.lock after forkJohn Hawthorn
Previously under certain conditions it was possible to encounter a deadlock in the forked child process if ractor.sched.lock was held. Co-authored-by: Nathan Froyd <froydnj@gmail.com> Notes: Merged: https://github.com/ruby/ruby/pull/11356
2018-01-09bootstraptest/test_fork.rb: Stop too restrict NPROC test temporarilymame
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-10* bootstraptest/test_fork.rb ([ruby-dev:37934]): :NPROC (RLIMIT_NPROC)ngoto
is not supported on some platforms (e.g. Solaris 10). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-28test_fork.rb: wait signalsnobu
* bootstraptest/test_fork.rb: wait until receiving both singals, upto 0.1sec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-07bootstraptest/test_{fork,io,thread}.rb: reduce sleep timesnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30* thread.c (rb_threadptr_check_signal): only wake up main thread.ko1
* thread.c (rb_threadptr_execute_interrupts_common): check signal deliverly if it is main thread. fixes [ruby-dev:44005] [Ruby 1.9 - Bug #4950] * bootstraptest/test_fork.rb: add a test for above. * signal.c (rb_get_next_signal): skip if signal_buff is empty. (check signal_buff.size first) * vm_core.h: remove unused variable rb_thread_t::exec_signal. * thread.c (rb_thread_check_trap_pending): check rb_signal_buff_size() because rb_thread_t::exec_signal is no longer available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-19* bootstraptest/test_fork.rb: add a test for [ruby-core:28924].mame
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-07* thread_pthread.c (rb_thread_create_timer_thread): print fatal errorko1
message to stderr instead of using rb_bug(). * KNOWNBUGS.rb, bootstraptest/test_fork.rb: move a fixed test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-26* test_fork.rb: no need to test if fork(2) is not implemented.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-18* bootstraptest/test_fork.rb: test for [ruby-core:22158]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21* bootstraptest/test_fork.rb: skip if fork is not unsupported.ko1
* bootstraptest/test_io.rb: skip if require failed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21* bootstraptest/pending.rb: renamed from featurebug.rb.ko1
This file contains bugs which is known but will not be fixed in days. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21* thread.c (rb_thread_atfork): fix to mark thread object.ko1
[ruby-dev:32404] * bootstraptest/test_knownbug.rb, test_fork.rb: move a fixed test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e