Skip to content

Segment fault at gpr_mpscq_pop_and_check_end #19923

@BusyJay

Description

@BusyJay

What version of gRPC and what language are you using?

v1.17.2, rust wrapper of grpc c core.

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

Linux 3.10

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

grpcio, which wraps grpc c core in rust.

What did you do?

Nothing special, just a long running service.

What did you see instead?

stack trace:

#0  gpr_mpscq_pop_and_check_end (q=q@entry=0x7fe8339ece98, empty=empty@entry=0x7fe91d5f9f5f)
    at /rust/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.4.2/grpc/src/core/lib/gpr/mpscq.cc:51
#1  0x00007fe97c22b5ce in gpr_mpscq_pop (q=q@entry=0x7fe8339ece98) at /rust/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.4.2/grpc/src/core/lib/gpr/mpscq.cc:46
#2  0x00007fe97c23203e in grpc_combiner_continue_exec_ctx () at /rust/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.4.2/grpc/src/core/lib/iomgr/combiner.cc:244
#3  0x00007fe97c207d2f in grpc_core::ExecCtx::Flush (this=0x7fe91d5fa540) at /rust/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.4.2/grpc/src/core/lib/iomgr/exec_ctx.cc:137
#4  0x00007fe97c2ee3e0 in end_worker (worker_hdl=<optimized out>, worker=0x7fe91d5fa040, pollset=<optimized out>)
    at /rust/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.4.2/grpc/src/core/lib/iomgr/ev_epoll1_linux.cc:947
#5  pollset_work (ps=<optimized out>, worker_hdl=<optimized out>, deadline=<optimized out>)
    at /rust/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.4.2/grpc/src/core/lib/iomgr/ev_epoll1_linux.cc:1047
#6  0x00007fe97c21a74d in cq_next (cq=0x7fe9798a24c0, deadline=..., reserved=<optimized out>)
    at /rust/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.4.2/grpc/src/core/lib/surface/completion_queue.cc:1040
 #7  0x00007fe97c21afbb in grpc_completion_queue_next (cq=<optimized out>, deadline=..., reserved=<optimized out>)
    at /rust/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.4.2/grpc/src/core/lib/surface/completion_queue.cc:1115
#8  0x00007fe97bd641ae in next (self=<optimized out>) at /rust/registry/src/github.com-1ecc6299db9ec823/grpcio-0.4.2/src/cq.rs:150
#9  poll_queue (cq=...) at /rust/registry/src/github.com-1ecc6299db9ec823/grpcio-0.4.2/src/env.rs:28
#10 {{closure}} () at /rust/registry/src/github.com-1ecc6299db9ec823/grpcio-0.4.2/src/env.rs:89
#11 std::sys_common::backtrace::__rust_begin_short_backtrace::hd079d5c938b01150 (f=...) at /rustc/0e4a56b4b04ea98bb16caada30cb2418dd06e250/src/libstd/sys_common/backtrace.rs:77
#12 0x00007fe97bd6407d in {{closure}}<closure,()> () at /rustc/0e4a56b4b04ea98bb16caada30cb2418dd06e250/src/libstd/thread/mod.rs:470
#13 call_once<(),closure> (self=..., _args=<optimized out>) at /rustc/0e4a56b4b04ea98bb16caada30cb2418dd06e250/src/libstd/panic.rs:309
#14 do_call<std::panic::AssertUnwindSafe<closure>,()> (data=<optimized out>) at /rustc/0e4a56b4b04ea98bb16caada30cb2418dd06e250/src/libstd/panicking.rs:294
#15 __rust_maybe_catch_panic () at /rustc/0e4a56b4b04ea98bb16caada30cb2418dd06e250//src/libpanic_abort/lib.rs:29
#16 try<(),std::panic::AssertUnwindSafe<closure>> (f=...) at /rustc/0e4a56b4b04ea98bb16caada30cb2418dd06e250/src/libstd/panicking.rs:273
#17 catch_unwind<std::panic::AssertUnwindSafe<closure>,()> (f=...) at /rustc/0e4a56b4b04ea98bb16caada30cb2418dd06e250/src/libstd/panic.rs:388
#18 {{closure}}<closure,()> () at /rustc/0e4a56b4b04ea98bb16caada30cb2418dd06e250/src/libstd/thread/mod.rs:469
#19 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h05971589d154f23d () at /rustc/0e4a56b4b04ea98bb16caada30cb2418dd06e250/src/libcore/ops/function.rs:231
#20 0x00007fe97beed4df in _$LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::he71721d2d956d451 ()
    at /rustc/0e4a56b4b04ea98bb16caada30cb2418dd06e250/src/liballoc/boxed.rs:746
#21 0x00007fe97beef80c in std::sys::unix::thread::Thread::new::thread_start::h18485805666ccd3c () at /rustc/0e4a56b4b04ea98bb16caada30cb2418dd06e250/src/liballoc/boxed.rs:746
#22 0x00007fe97aaa5e25 in start_thread () from /lib64/libpthread.so.0
#23 0x00007fe97a1b134d in clone () from /lib64/libc.so.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions