ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:100181] [Ruby master Bug#17196] Segmentation Fault with Socket#close in Ractors
@ 2020-09-26 21:18 anthony
  2020-10-15 15:18 ` [ruby-core:100404] " ko1
  2022-03-20 13:52 ` [ruby-core:107992] " wanabe (_ wanabe)
  0 siblings, 2 replies; 3+ messages in thread
From: anthony @ 2020-09-26 21:18 UTC (permalink / raw)
  To: ruby-core

Issue #17196 has been reported by asuper (Anthony Super).

----------------------------------------
Bug #17196: Segmentation Fault with Socket#close in Ractors
https://bugs.ruby-lang.org/issues/17196

* Author: asuper (Anthony Super)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.0.0preview1 (2020-09-25 master 0096d2b895) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
While messing around with 3.0.0-preview1, I thought it would be fun to write a really, really simple webserver that used Ractor creation instead of forking or spawning threads. I was right, it was fun! Unfortunately it also caused a segfault. The segfault appears to be on socket closure when a *lot* of ractors are running at once.

The attached tarball includes the code you need to make it happen. Run `bin/server` in one terminal/screen session/tmux window/whatever, and `./bug_bench.sh` with the other. You'll need to have the apache benchmark utility installed.

---Files--------------------------------
reproduce-my-segfault.tar.gz (10 KB)
error_log.txt (38.6 KB)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:100404] [Ruby master Bug#17196] Segmentation Fault with Socket#close in Ractors
  2020-09-26 21:18 [ruby-core:100181] [Ruby master Bug#17196] Segmentation Fault with Socket#close in Ractors anthony
@ 2020-10-15 15:18 ` ko1
  2022-03-20 13:52 ` [ruby-core:107992] " wanabe (_ wanabe)
  1 sibling, 0 replies; 3+ messages in thread
From: ko1 @ 2020-10-15 15:18 UTC (permalink / raw)
  To: ruby-core

Issue #17196 has been updated by ko1 (Koichi Sasada).

Assignee set to ko1 (Koichi Sasada)

----------------------------------------
Bug #17196: Segmentation Fault with Socket#close in Ractors
https://bugs.ruby-lang.org/issues/17196#change-88017

* Author: asuper (Anthony Super)
* Status: Open
* Priority: Normal
* Assignee: ko1 (Koichi Sasada)
* ruby -v: ruby 3.0.0preview1 (2020-09-25 master 0096d2b895) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
While messing around with 3.0.0-preview1, I thought it would be fun to write a really, really simple webserver that used Ractor creation instead of forking or spawning threads. I was right, it was fun! Unfortunately it also caused a segfault. The segfault appears to be on socket closure when a *lot* of ractors are running at once.

The attached tarball includes the code you need to make it happen. Run `bin/server` in one terminal/screen session/tmux window/whatever, and `./bug_bench.sh` with the other. You'll need to have the apache benchmark utility installed.

---Files--------------------------------
reproduce-my-segfault.tar.gz (10 KB)
error_log.txt (38.6 KB)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:107992] [Ruby master Bug#17196] Segmentation Fault with Socket#close in Ractors
  2020-09-26 21:18 [ruby-core:100181] [Ruby master Bug#17196] Segmentation Fault with Socket#close in Ractors anthony
  2020-10-15 15:18 ` [ruby-core:100404] " ko1
@ 2022-03-20 13:52 ` wanabe (_ wanabe)
  1 sibling, 0 replies; 3+ messages in thread
From: wanabe (_ wanabe) @ 2022-03-20 13:52 UTC (permalink / raw)
  To: ruby-core

Issue #17196 has been updated by wanabe (_ wanabe).


I tried to reproduce the problem at hand, but it seems to have already been fixed in the current master.
According to git bisect, it seemed to be fixed by #18117 https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/bbedd29b6e98ef6e3fc2ce2b358d2b509b7cd1bb.
How about using 3.0.3 or 3.1.x or master?

----------------------------------------
Bug #17196: Segmentation Fault with Socket#close in Ractors
https://bugs.ruby-lang.org/issues/17196#change-96945

* Author: asuper (Anthony Super)
* Status: Assigned
* Priority: Normal
* Assignee: ko1 (Koichi Sasada)
* ruby -v: ruby 3.0.0preview1 (2020-09-25 master 0096d2b895) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
While messing around with 3.0.0-preview1, I thought it would be fun to write a really, really simple webserver that used Ractor creation instead of forking or spawning threads. I was right, it was fun! Unfortunately it also caused a segfault. The segfault appears to be on socket closure when a *lot* of ractors are running at once.

The attached tarball includes the code you need to make it happen. Run `bin/server` in one terminal/screen session/tmux window/whatever, and `./bug_bench.sh` with the other. You'll need to have the apache benchmark utility installed.

---Files--------------------------------
reproduce-my-segfault.tar.gz (10 KB)
error_log.txt (38.6 KB)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-20 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-26 21:18 [ruby-core:100181] [Ruby master Bug#17196] Segmentation Fault with Socket#close in Ractors anthony
2020-10-15 15:18 ` [ruby-core:100404] " ko1
2022-03-20 13:52 ` [ruby-core:107992] " wanabe (_ wanabe)

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 read-only IMAP folder(s) and NNTP newsgroup(s).