Comments (5)
什么系统?
我在linux-mint 17.4里试了下你的代码,是ok的:
gejun@gejun-virtual-machine ~/github_brpc/example/test_bth $ ./test
128
from brpc.
是你的程序段错误还是gdb段错误? 最好贴一下栈
from brpc.
程序直接运行没有段错误,是gdb调试的时候段错误,栈如下:
(gdb) s
bthread_start_urgent (tid=0x7fffffffe448, attr=0x0, fn=0x40b1cd <work(void*)>, arg=0x80) at src/bthread/bthread.cpp:139
139 bthread::TaskGroup* g = bthread::tls_task_group;
(gdb) n
Program received signal SIGSEGV, Segmentation fault.
bthread_start_urgent (tid=0x7fffffffe448, attr=0x0, fn=0x40b1cd <work(void*)>, arg=0x80) at src/bthread/bthread.cpp:139
139 bthread::TaskGroup* g = bthread::tls_task_group;
(gdb) bt
#0 bthread_start_urgent (tid=0x7fffffffe448, attr=0x0, fn=0x40b1cd <work(void*)>, arg=0x80) at src/bthread/bthread.cpp:139
#1 0x000000000040b229 in main () at b.cpp:14
(gdb)
栈好像也没有啥有用的信息,gdb的版本是:
[abs@abs brpc]$ gdb -v
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7
操作系统是:
CentOS Linux release 7.3.1611 (Core)
from brpc.
将链接brpc的方式改为动态链接就没有上面的问题,如果与libbrpc.a链接就会有问题
from brpc.
你看看默认方式编译的example/echo_c++能不能跑
from brpc.
Related Issues (20)
- SIGABRT core HOT 1
- 使用stream,如果服务器端overcrowded后,则客户端一直卡住,直到超时
- Gflags 解析报错:ERROR: --bthread_concurrency_by_tag must be set on the commandline (default value fails validation)
- macro redefined HOT 2
- 内置服务是否可以观测 streaming rpc HOT 2
- 在pthread中调用done HOT 1
- 在pthread中调用done->Run()是否会存在潜在的bthread调用? HOT 4
- 求助:卡死问题排查 HOT 4
- 在bthread_key_create方法入参的析构函数destructor内部使用bthread-mutex存在的问题
- 支持自定义 IOBuf Block size HOT 5
- BRPC cause pybind embed hang HOT 1
- 疑似DoublyBufferedData::WrapperTLSGroup一处笔误 HOT 1
- 添加 Async Streaming RPC RDMA 相关案例 HOT 2
- 使用RDMA, Fail to ibv_fork_init: Operation now in progress HOT 1
- CentOS7 编译失败 HOT 8
- 求助:socket.cpp:1036, IsWriteComplete] Check failed: NULL == old_head->next
- CentOS7 性能问题 HOT 2
- http协议set-cookie header格式不符合mdn文档要求 HOT 6
- protobuf 3.7.1 编译最新brpc报错 HOT 2
- Registered logo is incomplete HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brpc.