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

2019-08-26 Thread GitBox
jamesge commented on issue #903: tools: add gdb_bthread_stack.py URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-525118852 目前这个脚本还会时不时报个内部错误,进而把attach的进程杀死,这样加到tools目录下的话万一被其他用户对线上进程使用,风险还是很高。 This is an

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

2019-08-26 Thread GitBox
lorinlee commented on issue #903: tools: add gdb_bthread_stack.py URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-525125993 > ``` > (gdb) bthread_meta > Python Exception invalid literal for int() with base 10: '': > Error occurred in Python command: invalid

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

2019-08-26 Thread GitBox
jamesge commented on issue #903: tools: add gdb_bthread_stack.py URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-525117338 ``` (gdb) bthread_meta Python Exception invalid literal for int() with base 10: '': Error occurred in Python command: invalid literal

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

2019-08-26 Thread GitBox
jamesge commented on issue #903: tools: add gdb_bthread_stack.py URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-525118553 bthread_list中显示的数目和bthread_num的不一致 ``` (gdb) bthread_begin Active bthreads: 25, will display 25 bthreads Enter bthread debug mode, do

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

2019-08-26 Thread GitBox
lorinlee commented on issue #903: tools: add gdb_bthread_stack.py URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-525127091 > bthread_list中显示的数目和bthread_num的不一致 > > ``` > (gdb) bthread_begin > Active bthreads: 25, will display 25 bthreads > Enter bthread

[GitHub] [incubator-brpc] hongbshi commented on issue #905: centos 7.6 静态链接失败

2019-08-26 Thread GitBox
hongbshi commented on issue #905: centos 7.6 静态链接失败 URL: https://github.com/apache/incubator-brpc/issues/905#issuecomment-525142718 > 编译自己的链接库加上brpc需要的leveldb gflags等就可以了 编译自己的程序时,我已经加上了leveldb, gflags, protobuf, 不过都是静态库。必须改为动态库嘛?

[GitHub] [incubator-brpc] hongbshi opened a new issue #905: centos 7.6 静态链接失败

2019-08-26 Thread GitBox
hongbshi opened a new issue #905: centos 7.6 静态链接失败 URL: https://github.com/apache/incubator-brpc/issues/905 **Describe the bug (描述bug)** brpc依赖的gflags, leveldb, protobuf都已经重新编译, 生成了静态链接库。编译brpc已经成功, 生成了libbrpc.a以及libbrpc.so。在应用程序中使用libbrpc.so可以成功编译, 使用libbrpc.a失败

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

2019-08-26 Thread GitBox
lorinlee commented on issue #903: tools: add gdb_bthread_stack.py URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-525125331 > 目前这个脚本还会时不时报个内部错误,进而把attach的进程杀死,这样加到tools目录下的话万一被其他用户对线上进程使用,风险还是很高。 好我先看看这些已知问题,兼容性的问题确实没想好,自己的环境用着是都没问题的,已经使用了一些时间,但是换个环境确实有些不兼容

[GitHub] [incubator-brpc] hnwyllmm commented on issue #905: centos 7.6 静态链接失败

2019-08-26 Thread GitBox
hnwyllmm commented on issue #905: centos 7.6 静态链接失败 URL: https://github.com/apache/incubator-brpc/issues/905#issuecomment-525141748 编译自己的链接库加上brpc需要的leveldb gflags等就可以了 This is an automated message from the Apache Git

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

2019-08-26 Thread GitBox
lorinlee commented on issue #903: tools: add gdb_bthread_stack.py URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-525136887 不过meta信息可能是有意义的,这个可以考虑都列一下 This is an automated message from the Apache Git

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

2019-08-26 Thread GitBox
lorinlee commented on issue #900: 如何在bthread_mutex_t死锁问题时查看bthread的堆栈 URL: https://github.com/apache/incubator-brpc/issues/900#issuecomment-524935696 bthread_list的结果发一下我看看 This is an automated message from the Apache Git

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

2019-08-26 Thread GitBox
jamesge commented on issue #903: tools: add gdb_bthread_stack.py URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-524727431 就是example/multi_threaded_echo_c++用Makefile编译后按上述流程操作的结果。os: ubuntu 16.04,gcc: 5.4, gdb:7.11.1, python: 2.7.12

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

2019-08-26 Thread GitBox
jamesge edited a comment on issue #903: tools: add gdb_bthread_stack.py URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-524727431 就是example/multi_threaded_echo_c++用Makefile编译后运行echo_server并按上述流程操作的结果。os: ubuntu 16.04,gcc: 5.4, gdb:7.11.1, python: 2.7.12

[GitHub] [incubator-brpc] zyearn opened a new pull request #904: unify dynamic link option in make and cmake

2019-08-26 Thread GitBox
zyearn opened a new pull request #904: unify dynamic link option in make and cmake URL: https://github.com/apache/incubator-brpc/pull/904 This is an automated message from the Apache Git Service. To respond to the message,

[GitHub] [incubator-brpc] zyearn commented on issue #901: 链接 libbrpc.so 的时候出现错误, 依赖的静态库需要使用 -fPIC 方式编译

2019-08-26 Thread GitBox
zyearn commented on issue #901: 链接 libbrpc.so 的时候出现错误, 依赖的静态库需要使用 -fPIC 方式编译 URL: https://github.com/apache/incubator-brpc/issues/901#issuecomment-524837338 config_brpc.sh会搜索指定路径下的所有文件,而cmake只会搜索特定前缀,比如/usr/local/lib,要把so放在这下面,再检查下软链接对不对。cmake一般是向后兼容的,如果不是,也会有对应的warning

[GitHub] [incubator-brpc] zyearn edited a comment on issue #901: 链接 libbrpc.so 的时候出现错误, 依赖的静态库需要使用 -fPIC 方式编译

2019-08-26 Thread GitBox
zyearn edited a comment on issue #901: 链接 libbrpc.so 的时候出现错误, 依赖的静态库需要使用 -fPIC 方式编译 URL: https://github.com/apache/incubator-brpc/issues/901#issuecomment-524837338 config_brpc.sh会搜索指定路径下的所有文件,而cmake只会搜索特定前缀,比如/usr/local/lib,要把so放在这下面,再检查下软链接对不对。cmake一般是向后兼容的,如果不是,也会有对应的warning

[incubator-brpc] branch master updated: unify dynamic link option in make and cmake

2019-08-26 Thread jamesge
This is an automated email from the ASF dual-hosted git repository. jamesge pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git The following commit(s) were added to refs/heads/master by this push: new 1b90ea1 unify dynamic link option in

[GitHub] [incubator-brpc] jamesge merged pull request #904: unify dynamic link option in make and cmake

2019-08-26 Thread GitBox
jamesge merged pull request #904: unify dynamic link option in make and cmake URL: https://github.com/apache/incubator-brpc/pull/904 This is an automated message from the Apache Git Service. To respond to the message, please

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

2019-08-26 Thread GitBox
chxj19 commented on issue #900: 如何在bthread_mutex_t死锁问题时查看bthread的堆栈 URL: https://github.com/apache/incubator-brpc/issues/900#issuecomment-524751456 非常感谢,刚刚我试了一下,可以看到死锁bthread的堆栈信息了。 但是有部分的bthread frame出现了如下的报错: ``` (gdb) bthread_frame 4 Python Exception Cannot access memory

[GitHub] [incubator-brpc] NetWilliam commented on issue #901: 链接 libbrpc.so 的时候出现错误, 依赖的静态库需要使用 -fPIC 方式编译

2019-08-26 Thread GitBox
NetWilliam commented on issue #901: 链接 libbrpc.so 的时候出现错误, 依赖的静态库需要使用 -fPIC 方式编译 URL: https://github.com/apache/incubator-brpc/issues/901#issuecomment-524748632 > libbrpc.so依赖libgflags.so,libleveldb.so,libprotobuf.so,你看看自己系统里有没有 有的, 我调试cmake的时候发现 寻找那个package的时候总是找到的是静态库, 不知道为什么.

[incubator-brpc] branch master updated: Add instructions to remove CMakeCache.txt before re-running cmakes

2019-08-26 Thread jamesge
This is an automated email from the ASF dual-hosted git repository. jamesge pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git The following commit(s) were added to refs/heads/master by this push: new 7b95deb Add instructions to remove

[GitHub] [incubator-brpc] NetWilliam commented on issue #901: 链接 libbrpc.so 的时候出现错误, 依赖的静态库需要使用 -fPIC 方式编译

2019-08-26 Thread GitBox
NetWilliam commented on issue #901: 链接 libbrpc.so 的时候出现错误, 依赖的静态库需要使用 -fPIC 方式编译 URL: https://github.com/apache/incubator-brpc/issues/901#issuecomment-524749767 我cmake 的版本还挺新的 cmake version 3.15.2 不晓得是不是cmake 的脚本在不同系统上有细微区别导致的. 这边是centos

[GitHub] [incubator-brpc] hanxuan123 commented on issue #897: NamingServiceThread::Actions::ResetServers 在设置SSL后失败的问题

2019-08-26 Thread GitBox
hanxuan123 commented on issue #897: NamingServiceThread::Actions::ResetServers 在设置SSL后失败的问题 URL: https://github.com/apache/incubator-brpc/issues/897#issuecomment-524746257 请问是怎么解决的额 This is an automated message from the

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

2019-08-26 Thread GitBox
lorinlee commented on issue #903: tools: add gdb_bthread_stack.py URL: https://github.com/apache/incubator-brpc/pull/903#issuecomment-524932096 > 就是example/multi_threaded_echo_c++用Makefile编译后运行echo_server并按上述流程操作的结果。os: ubuntu 16.04,gcc: 5.4, gdb:7.11.1, python: 2.7.12