Skip Menu |

This queue is for tickets about the grpc-xs CPAN distribution.

Report information
The Basics
Id: 129720
Status: new
Priority: 0/
Queue: grpc-xs

People
Owner: Nobody in particular
Requestors: ppisar [...] redhat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.31
Fixed in: (no value)



Subject: t/17-fork_friendliness.t does not halt with grpc-1.20
After upgrading grpc from 1.19.0 to 1.20.0, t/17-fork_friendliness.t test never halts. Debugging shows that a child performs all calls and then blocks when destructing Grpc::XS::Server object. GDB points inside the grpc library: #0 0x00007ff4d4e17555 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00007ff4d484c503 in gpr_cv_wait () from /lib64/libgrpc.so.7 #2 0x00007ff4d47c9550 in grpc_server_shutdown_and_notify () from /lib64/libgrpc.so.7 #3 0x00007ff4d48cd972 in ?? () #4 0x0000564110c872a0 in ?? () #5 0xffffffffffffff00 in ?? () #6 0x0000564110c872a0 in ?? () #7 0x0000000000000000 in ?? () I bisected grpc library and a first faulty change is this one: commit cdd698810b99f2be1c67f05c28d031ebddb04cea (refs/bisect/bad) Author: yang-g <yangg@google.com> Date: Tue Nov 27 11:46:05 2018 -0800 Move grpc_shutdown internals to a detached thread
Dne Pá 31.Květen.2019 09:24:56, ppisar napsal(a): Show quoted text
> After upgrading grpc from 1.19.0 to 1.20.0, t/17-fork_friendliness.t > test never halts. >
There are documents stating that grpc does support forking <https://github.com/grpc/grpc/issues/14055>. There are recent documents about preliminary support <https://github.com/grpc/grpc/issues/15334#issuecomment-449102504>. It seems grpc uses pthread_atfork() that does not stack well with other libraries using also the pthread_atfork(). I think it's better to demote the fork support from grpc-xs now until it's get clear how to fork properly.