Skip to content

[Ruby] Segfault using credentials #41781

@etiennebarrie

Description

@etiennebarrie

What version of gRPC and what language are you using?

v1.75.0 in Ruby

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

Linux

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

Ruby 3.4.8

What did you do?

Used gRPC Ruby bindings in Google Cloud.

What did you expect to see?

No crash.

What did you see instead?

We got a few crashes with this backtrace:

/symbol.h:72 hash_table_index
/id_table.c:230 rb_id_table_lookup
/vm_insnhelper.c:2087 vm_search_cc
/vm_insnhelper.c:2189 rb_vm_search_method_slowpath
/vm_insnhelper.c:2210 vm_search_method_slowpath0
/vm_insnhelper.c:2271 vm_search_method_fastpath
/vm_insnhelper.c:5960 vm_sendish
/insns.def:898 vm_exec_core
/vm.c:2595 rb_vm_exec
/vm.c:1770 rb_vm_invoke_proc
/vm_eval.c:293 vm_call0_body
/vm_eval.c:101 rb_funcallv
/artifacts/bundle/ruby/3.4.0/gems/grpc-1.75.0/src/ruby/ext/grpc/rb_call_credentials.c:89 grpc_rb_call_credentials_callback
/eval.c:990 rb_vrescue2
/eval.c:971 rb_rescue2
/artifacts/bundle/ruby/3.4.0/gems/grpc-1.75.0/src/ruby/ext/grpc/rb_call_credentials.c:154 rbimpl_str_new_cstr
/artifacts/bundle/ruby/3.4.0/gems/grpc-1.75.0/src/ruby/ext/grpc/rb_call_credentials.c:157 grpc_rb_call_credentials_callback_with_gil
/artifacts/bundle/ruby/3.4.0/gems/grpc-1.75.0/src/ruby/ext/grpc/rb_event_thread.c:134 grpc_rb_event_thread
/thread.c:636 thread_do_start
/thread.c:682 thread_start_func_2
/thread_pthread.c:2176 nt_start

Anything else we should know about your project / environment?

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions