Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ruby] Segmentation Fault with puma #16013

Open
nownabe opened this issue Jul 13, 2018 · 0 comments

Comments

@nownabe
Copy link
Contributor

commented Jul 13, 2018

Hi 馃尀 I found segmentation fault maybe caused by grpc with puma.

What version of gRPC and what language are you using?

Ruby

$ bundle exec gem list grpc

*** LOCAL GEMS ***

grpc (1.13.0 x86_64-linux)
grpc-tools (1.13.0)

What operating system (Linux, Windows, 鈥) and version?

$ uname -a
Linux mypc 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

What runtime / compiler are you using (e.g. python version or version of gcc)

 $ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]

What did you do?

Reproducable code is here.
https://gitlab.com/nownabe/grpc_puma_segmentation_fault

It's a simple rack app with gRPC.
When cluster mode Puma with preload_app! runs this app, requests are not finished and segmentation faults occur.

rackapp
puma config

Originally, my Rails app tried to send request logs to Stackdriver Logging using google-cloud-logging gem but requests were stacked at Google::Cloud::Logging::Project#write_entries

What did you expect to see?

No segmentation fault.

What did you see instead?

https://gitlab.com/nownabe/grpc_puma_segmentation_fault/blob/master/log/stderr.log

Anything else we should know about your project / environment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can鈥檛 perform that action at this time.