[#104740] [Ruby master Feature#18057] Introduce Array#average — ggmichaelgo@...

Issue #18057 has been reported by ggmichaelgo (Michael Go).

14 messages 2021/08/02

[#104774] [Ruby master Bug#18061] Execshield test: libruby.so.N.N.N: FAIL: property-note test because no .note.gnu.property section found — jaruga@...

Issue #18061 has been reported by jaruga (Jun Aruga).

48 messages 2021/08/04

[#104780] [Ruby master Bug#18062] Ruby with enabled LTO segfaults during build — v.ondruch@...

Issue #18062 has been reported by vo.x (Vit Ondruch).

30 messages 2021/08/05

[#104831] [Ruby master Bug#18066] Load did_you_mean eve/error_highlight even with --disable-gems — v.ondruch@...

Issue #18066 has been reported by vo.x (Vit Ondruch).

10 messages 2021/08/07

[#104851] [Ruby master Bug#18073] test/ruby/test_jit.rb: failures "error: invalid use of '__builtin_va_arg_pack ()'" on Ruby 2.7.4 on gcc 4.8.5 on RHEL7 — jaruga@...

Issue #18073 has been reported by jaruga (Jun Aruga).

14 messages 2021/08/09

[#104927] [Ruby master Bug#18077] Marshal.dump(closed_io) raises IOError instead of TypeError — "larskanis (Lars Kanis)" <noreply@...>

Issue #18077 has been reported by larskanis (Lars Kanis).

10 messages 2021/08/16

[#104960] [Ruby master Feature#18083] Capture error in ensure block. — "ioquatix (Samuel Williams)" <noreply@...>

Issue #18083 has been reported by ioquatix (Samuel Williams).

32 messages 2021/08/18

[#105021] [Ruby master Misc#18122] DevelopersMeeting20210916Japan — "mame (Yusuke Endoh)" <noreply@...>

Issue #18122 has been reported by mame (Yusuke Endoh).

12 messages 2021/08/20

[#105069] [Ruby master Bug#18133] LTO: TestGCCompact#test_ast_compacts segfaults on i686 — "vo.x (Vit Ondruch)" <noreply@...>

Issue #18133 has been reported by vo.x (Vit Ondruch).

25 messages 2021/08/25

[#105077] [Ruby master Feature#18136] take_while_after — "zverok (Victor Shepelev)" <noreply@...>

Issue #18136 has been reported by zverok (Victor Shepelev).

21 messages 2021/08/27

[ruby-core:105014] [Ruby master Bug#18120] Deadlock and segfault when using autoload in Ractor

From: "peterzhu2118 (Peter Zhu)" <noreply@...>
Date: 2021-08-19 17:05:34 UTC
List: ruby-core #105014
Issue #18120 has been reported by peterzhu2118 (Peter Zhu).

----------------------------------------
Bug #18120: Deadlock and segfault when using autoload in Ractor
https://bugs.ruby-lang.org/issues/18120

* Author: peterzhu2118 (Peter Zhu)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.1.0dev (2021-08-19T08:44:48Z master 6963f8f743) [x86_64-linux]
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
The following scripts with autoload causes Ractor to report a deadlock and segfault (tested on Ubuntu 20.04 and macOS 11.5.2):

```ruby
# test.rb
module Foo
  autoload :Bar, "#{File.dirname(__FILE__)}/test2"

  def self.run
    workers = (0...32).map do
      Ractor.new do
        loop do
          Bar.new
          Ractor.yield nil
        end
      end
    end

    100.times { Ractor.select(*workers) }
  end
end

Foo.run
```

```ruby
# test2.rb

module Foo
  class Bar
  end
end
```

Deadlock error:
```
test.rb:8:in `block (3 levels) in run': No live threads left. Deadlock? (fatal)
1 threads, 1 sleeps current:0x00007fc484f3f580 main thread:0x00007fc484f3f580
* #<Thread:0x00007fc48692ee18 sleep_forever>
   rb_thread_t:0x00007fc484f3f580 native:0x0000700009d00000 int:0

	from test.rb:7:in `loop'
	from test.rb:7:in `block (2 levels) in run'
```

Segfault:
```
test.rb:8: [BUG] Segmentation fault at 0x0000000000000005
ruby 3.1.0dev (2021-08-19T08:44:48Z master 6963f8f743) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0004 p:0007 s:0015 e:000012 BLOCK  test.rb:8 [FINISH]
c:0003 p:---- s:0010 e:000009 CFUNC  :loop
c:0002 p:0004 s:0006 e:000005 BLOCK  test.rb:7 [FINISH]
c:0001 p:---- s:0003 e:000002 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
test.rb:7:in `block (2 levels) in run'
test.rb:7:in `loop'
test.rb:8:in `block (3 levels) in run'

-- Machine register context ------------------------------------------------
 RIP: 0x00005588aa4bae91 RBP: 0x00007ff6c71b7498 RSP: 0x00007ff6c79bb280
 RAX: 0x00007ff6c71b73f0 RBX: 0x00007ff6c79bb3f0 RCX: 0x0000000000000005
 RDX: 0x00007ff6c71b74b0 RDI: 0x0000000000000078 RSI: 0x00007ff6c71b7408
  R8: 0x00005588abe843c0  R9: 0x0000000000000008 R10: 0x00007ff6b0001030
 R11: 0x00007ff6b0000080 R12: 0x0000000000000006 R13: 0x00007ff6c80dbe40
 R14: 0x0000000000000000 R15: 0x00007ff6c7abbb10 EFL: 0x0000000000010206

-- C level backtrace information -------------------------------------------
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(rb_print_backtrace+0x11) [0x5588aa4f4e68] ../vm_dump.c:759
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(rb_vm_bugreport) ../vm_dump.c:1041
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(rb_bug_for_fatal_signal+0xf6) [0x5588aa2e90e6] ../error.c:818
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(sigsegv+0x4d) [0x5588aa44aced] ../signal.c:961
/lib/x86_64-linux-gnu/libpthread.so.0(__restore_rt+0x0) [0x7ff6cc0553c0]
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(list_del_+0x0) [0x5588aa4bae91] ../ccan/list/list.h:103
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(list_del_init_) ../ccan/list/list.h:298
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(autoload_reset) ../variable.c:2417
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(rb_ensure+0x167) [0x5588aa2f3c97] ../eval.c:1166
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(rb_autoload_load+0x22a) [0x5588aa4c068a] ../variable.c:2507
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(vm_get_ev_const+0x5e) [0x5588aa4e698d] ../vm_insnhelper.c:996
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(vm_get_ev_const) ../vm_insnhelper.c:960
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(vm_exec_core) ../insns.def:269
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(rb_vm_exec+0x197) [0x5588aa4d7ff7] ../vm.c:2164
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(invoke_block_from_c_bh+0x130) [0x5588aa4db88a] ../vm.c:1264
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(vm_yield) ../vm.c:1399
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(rb_yield_0) ../vm_eval.c:1350
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(loop_i) ../vm_eval.c:1449
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(rb_vrescue2+0x114) [0x5588aa2f36c4] ../eval.c:1023
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(rb_rescue2+0x8e) [0x5588aa2f393e] ../eval.c:1000
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(vm_cfp_consistent_p+0x0) [0x5588aa4cc6ec] ../vm_insnhelper.c:2989
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(vm_call_cfunc_with_frame) ../vm_insnhelper.c:2991
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(vm_sendish+0x303) [0x5588aa4d73c3] ../vm_insnhelper.c:4562
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(vm_exec_core+0x130) [0x5588aa4e2200] ../insns.def:756
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(rb_vm_exec+0x197) [0x5588aa4d7ff7] ../vm.c:2164
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(thread_do_start_proc+0x294) [0x5588aa48ff54] ../thread.c:716
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(thread_do_start+0xc) [0x5588aa49272c] ../thread.c:760
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(thread_start_func_2) ../thread.c:835
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(rb_native_cond_initialize+0x0) [0x5588aa492a39] ../thread_pthread.c:1051
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(register_cached_thread_and_wait) ../thread_pthread.c:1103
/home/spin/src/github.com/Shopify/ruby-master/install/bin/ruby(thread_start_func_1) ../thread_pthread.c:1058
/lib/x86_64-linux-gnu/libpthread.so.0(0x9609) [0x7ff6cc049609]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7ff6cbdd3293]
```




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

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next