ChenChuang commented on issue #1428: URL: https://github.com/apache/incubator-brpc/issues/1428#issuecomment-858293322
另外,我们在典型堆栈 [1] frame 4 观察到: (gdb) frame 4 #4 bthread::butex_wait (arg=0x7f84d508e230, expected_value=expected_value@entry=0, abstime=abstime@entry=0x0) at src/bthread/butex.cpp:622 (gdb) p *g->_cur_meta $6 = {current_waiter = {<std::atomic<bthread::ButexWaiter*>> = {_M_b = {_M_p = 0x7f84ed7f3a20}}, <No data fields>}, current_sleep = 0, stop = false, interrupted = false, about_to_quit = false, version_lock = 1, version_butex = 0x7f8640124f70, tid = 60129595668, fn = 0x12cb8b0 <brpc::ProcessInputMessage(void*)>, arg = 0x7f8bf8063210, stack = 0x7f84d400ca70, attr = {stack_type = 1, flags = 32, keytable_pool = 0x4bdebe0}, cpuwide_start_ns = 29493140553366624, stat = {cputime_ns = 0, nswitch = 0}, local_storage = {keytable = 0x7f84d509f9a0, assigned_data = 0x0, rpcz_parent_span = 0x0}} 当前正在允许的 bthread 栈类型为 BTHREAD_STACKTYPE_PTHREAD,这个似乎不符合我的预期。我的预期是,处理 rpc 请求都是在 bthread 中执行的 事发当时机器的内存负载不高,不太可能出现触发 因为 out of memory 强制将 bthread 的栈类型改为 pthread 的情况 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org