You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "weingithub (via GitHub)" <gi...@apache.org> on 2023/11/23 07:59:04 UTC

[I] bthread定时器等待了12秒都没得到执行,程序生成core的过程中又恢复了,想问下要如何定位这种问题? (brpc)

weingithub opened a new issue, #2455:
URL: https://github.com/apache/brpc/issues/2455

   **Describe the bug (描述bug)**
   
   bthread定时器等待了12秒都没得到执行,触发了程序检查bthread卡住的assert,而在程序生成core的过程中又恢复了。
   
   **To Reproduce (复现方法)**
   在正常业务中,创建pthread线程和bthread定时器,在pthread线程中定时检查定时器的更新时间。超过一段时间未更新,则assert
   
   **Expected behavior (期望行为)**
   程序不会触发bthread卡住的assert
   **Versions (各种版本)**
   OS:   centosx
   Compiler:  gcc
   brpc:   
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   
   想问下,一个是如何定位这种bthread卡住一段时间的这种问题?如何查看当时的运行截面?之前遇到过使用pstack去dump查看,结果
   bthread似乎又被恢复了。我这个也类似这种现象,bthread不知道因为什么原因卡住了,然后又恢复了。
   


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


Re: [I] bthread定时器等待了12秒都没得到执行,程序生成core的过程中又恢复了,想问下要如何定位这种问题? (brpc)

Posted by "weingithub (via GitHub)" <gi...@apache.org>.
weingithub commented on issue #2455:
URL: https://github.com/apache/brpc/issues/2455#issuecomment-1826977907

   > 业务中是将pthread和bthread同时混用么?
   
   存在这么个情况。之前也解过一些混用导致的加锁卡死的问题。不过那个问题,通过pstack是能够看出来的


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


Re: [I] bthread定时器等待了12秒都没得到执行,程序生成core的过程中又恢复了,想问下要如何定位这种问题? (brpc)

Posted by "Huixxi (via GitHub)" <gi...@apache.org>.
Huixxi commented on issue #2455:
URL: https://github.com/apache/brpc/issues/2455#issuecomment-1826263129

   业务中是将pthread和bthread同时混用么?


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org