[GitHub] [incubator-brpc] lorinlee commented on issue #927: core文件中查看切换出去的bthread栈信息

2019-09-20 Thread GitBox
lorinlee commented on issue #927: core文件中查看切换出去的bthread栈信息
URL: https://github.com/apache/incubator-brpc/issues/927#issuecomment-533493382
 
 
   > @lorinlee 我是看了你的python脚本才知道怎么遍历的^_^
   
   哈哈,我学习下怎么改core文件


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


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] hnwyllmm commented on issue #927: core文件中查看切换出去的bthread栈信息

2019-09-20 Thread GitBox
hnwyllmm commented on issue #927: core文件中查看切换出去的bthread栈信息
URL: https://github.com/apache/incubator-brpc/issues/927#issuecomment-533489447
 
 
   @lorinlee  我是看了你的python脚本才知道怎么遍历的^_^


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


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] helloeveroneday edited a comment on issue #928: span trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确

2019-09-20 Thread GitBox
helloeveroneday edited a comment on issue #928: span 
trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确
URL: https://github.com/apache/incubator-brpc/issues/928#issuecomment-533488761
 
 
   
![image](https://user-images.githubusercontent.com/4447116/65317891-3d059500-dbcf-11e9-85cc-feefc99cc0dd.png)
   * bthread copies tls_bls to its local_storage before switching to next 
bthread
   
   我的锅,目前我们使用的版本是2018 7月之前的版本,新版本已经修正。忽略


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


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] helloeveroneday edited a comment on issue #928: span trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确

2019-09-20 Thread GitBox
helloeveroneday edited a comment on issue #928: span 
trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确
URL: https://github.com/apache/incubator-brpc/issues/928#issuecomment-533488761
 
 
   
![image](https://user-images.githubusercontent.com/4447116/65317891-3d059500-dbcf-11e9-85cc-feefc99cc0dd.png)
   * bthread copies tls_bls to its local_storage before switching to next 
bthread
   
   我的锅,目前我们使用的版本是2018 7月之前的版本,新版本已经修正


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


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] helloeveroneday commented on issue #928: span trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确

2019-09-20 Thread GitBox
helloeveroneday commented on issue #928: span 
trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确
URL: https://github.com/apache/incubator-brpc/issues/928#issuecomment-533488761
 
 
   
![image](https://user-images.githubusercontent.com/4447116/65317891-3d059500-dbcf-11e9-85cc-feefc99cc0dd.png)
   * bthread copies tls_bls to its local_storage before switching to next 
bthread
   
   我的锅,目前版本使用的是2018 7月之前的版本,新版本已经修正


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


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] helloeveroneday closed issue #928: span trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确

2019-09-20 Thread GitBox
helloeveroneday closed issue #928: span 
trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确
URL: https://github.com/apache/incubator-brpc/issues/928
 
 
   


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


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] lorinlee commented on issue #927: core文件中查看切换出去的bthread栈信息

2019-09-20 Thread GitBox
lorinlee commented on issue #927: core文件中查看切换出去的bthread栈信息
URL: https://github.com/apache/incubator-brpc/issues/927#issuecomment-533487177
 
 
   看了下找寄存器的方式是一样的,我在#903也加一个支持查看寄存器值的方法吧


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


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] lorinlee commented on issue #903: tools: add gdb_bthread_stack.py

2019-09-20 Thread GitBox
lorinlee commented on issue #903: tools: add gdb_bthread_stack.py
URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-533483484
 
 
   > @lorinlee 上面提及的改进有进展么?
   
   嗯嗯又更新了一版


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


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] jamesge commented on issue #928: span trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确

2019-09-20 Thread GitBox
jamesge commented on issue #928: span 
trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确
URL: https://github.com/apache/incubator-brpc/issues/928#issuecomment-533481162
 
 
   
[切换](https://github.com/apache/incubator-brpc/blob/master/src/bthread/task_group.cpp#L591)


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


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] hnwyllmm commented on issue #927: core文件中查看切换出去的bthread栈信息

2019-09-20 Thread GitBox
hnwyllmm commented on issue #927: core文件中查看切换出去的bthread栈信息
URL: https://github.com/apache/incubator-brpc/issues/927#issuecomment-533458987
 
 
   
903的原理应该是把所有的bthread寄存器找出来,主要是rsp和rip,然后设置某个线程的rsp和rip为要查看的bthread的rsp和rip,就可以执行where命令了。这个只能gdb
 attach到进程看,而且是有风险的,如果在修改了某个线程的rsp/rip信息后,gdb无法正常退出,进程就会crash。
   我的这个是针对core文件的工具,步骤比较繁琐。刚才忘记贴链接了,抱歉:
   https://github.com/hnwyllmm/coroutine_crash


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


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] helloeveroneday edited a comment on issue #928: span trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确

2019-09-20 Thread GitBox
helloeveroneday edited a comment on issue #928: span 
trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确
URL: https://github.com/apache/incubator-brpc/issues/928#issuecomment-533456714
 
 
   确认是:curl访问A,A访问B
   暂时没找到 local_storage切换同步 
tls_bls.rpcz_parent_span变量的代码,tls.rpcz_parent_span修改在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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] helloeveroneday edited a comment on issue #928: span trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确

2019-09-20 Thread GitBox
helloeveroneday edited a comment on issue #928: span 
trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确
URL: https://github.com/apache/incubator-brpc/issues/928#issuecomment-533456714
 
 
   确认是:curl访问A,A访问B
   暂时没找到 local_storage切换同步 tls_bls.rpcz_parent_span变量的代码,tls修改在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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] helloeveroneday commented on issue #928: span trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确

2019-09-20 Thread GitBox
helloeveroneday commented on issue #928: span 
trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确
URL: https://github.com/apache/incubator-brpc/issues/928#issuecomment-533456714
 
 
   确认是:curl访问A,A访问B
   暂时没找到 local_storage切换同步 tls_bls变量的代码,tls修改在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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] jamesge commented on issue #928: span trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确

2019-09-20 Thread GitBox
jamesge commented on issue #928: span 
trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确
URL: https://github.com/apache/incubator-brpc/issues/928#issuecomment-533455240
 
 
   确认下访问模式是:curl访问A,A访问B?
   tls_bls是在切换时才同步的,同时不和local_storage保持同步是可能的。


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


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] jamesge commented on issue #927: core文件中查看切换出去的bthread栈信息

2019-09-20 Thread GitBox
jamesge commented on issue #927: core文件中查看切换出去的bthread栈信息
URL: https://github.com/apache/incubator-brpc/issues/927#issuecomment-533451725
 
 
   原理和 #903 类似吗?你可以先贴出来,大家试用下也可以给点反馈


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


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] jamesge commented on issue #903: tools: add gdb_bthread_stack.py

2019-09-20 Thread GitBox
jamesge commented on issue #903: tools: add gdb_bthread_stack.py
URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-533451396
 
 
   @lorinlee 上面提及的改进有进展么?


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


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] helloeveroneday opened a new issue #928: span trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确

2019-09-20 Thread GitBox
helloeveroneday opened a new issue #928: span 
trace信息无法正常传递,麻烦确认tls_bls.rpcz_parent_span用法是否正确
URL: https://github.com/apache/incubator-brpc/issues/928
 
 
   **Describe the bug (描述bug)**
   
   span的trace id在请求时,无法跨服务传递。首次请求时大概率出现。
   
   **To Reproduce (复现方法)**
   
   使用curl请求  brpc http服务A,A收到请求后使用brpc标准同步接口调用B服务。curl请求时带trace id信息。在span.cpp 
SpanDB::Index函数中新增 trace信息输出,未能正常输出。
   
   **Expected behavior (期望行为)**
   A服务 B服务均正常获取 trace id。可正常打印trace信息。
   
   **Versions (各种版本)**
   OS: 16.04.11
   Compiler: gcc version 5.4.0 
   brpc: master
   protobuf: 
   
   **Additional context/screenshots (更多上下文/截图)**
   
![1](https://user-images.githubusercontent.com/4447116/65308159-096d3f80-dbbc-11e9-946b-bc0f0c5af766.png)
   
   **推测的原因**是src/brpc/span.h中tls_bls.rpcz_parent_span用法有问题。
   
看起来tls_bls正常情况需要同步给bthread中bthread::tls_task_group的current_task()->local_storage。切换bthread后
 local_storage同步回tls_bls。
   但**span中的 tls_bls.rpcz_parent_span 未见同步给bthread local_storage**。
   
   麻烦确认是否是此原因导致span trace信息无法正常传递。
   
   
   
   
   
   
   


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


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] hnwyllmm commented on issue #900: 如何在bthread_mutex_t死锁问题时查看bthread的堆栈

2019-09-20 Thread GitBox
hnwyllmm commented on issue #900: 如何在bthread_mutex_t死锁问题时查看bthread的堆栈
URL: https://github.com/apache/incubator-brpc/issues/900#issuecomment-533430037
 
 
   refer https://github.com/apache/incubator-brpc/issues/927
   可以在core文件中查看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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] hnwyllmm opened a new issue #927: core文件中查看切换出去的bthread栈信息

2019-09-20 Thread GitBox
hnwyllmm opened a new issue #927: core文件中查看切换出去的bthread栈信息
URL: https://github.com/apache/incubator-brpc/issues/927
 
 
   **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
   切换出去的bthread,在core文件中是看不到的,但是有时候会对检查问题有帮助,需要有手段去查看
   
   **Describe the solution you'd like (描述你期望的解决方法)**
   能够查看core文件中切换出去的bthread信息
   
   **Describe alternatives you've considered (描述你想到的折衷方案)**
   修改core文件,展示bthread栈信息
   
   **Additional context/screenshots (更多上下文/截图)**
   我目前实现了一个linux x86_64 
gcc平台下的小程序,并附有一个gdb脚本,可以打印切换出去的bthread寄存器信息,根据寄存器信息修改core文件,实现可以用gdb直接查看core文件,通过`info
 thread`看到所有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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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