You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2020/08/10 03:14:51 UTC

[GitHub] [incubator-brpc] lzk90s opened a new issue #1203: AARCH64架构,brpc启动时候,卡死在bthread初始化的时候

lzk90s opened a new issue #1203:
URL: https://github.com/apache/incubator-brpc/issues/1203


   **Describe the bug (描述bug)**
   AARCH64架构,brpc启动时候,卡死在bthread初始化的时候。
   
   **To Reproduce (复现方法)**
   
   
   **Expected behavior (期望行为)**
   正常执行
   
   **Versions (各种版本)**
   OS: ubuntu16.04
   Compiler: gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.12)  Target: aarch64-linux-gnu
   brpc: master
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   
   (gdb) bt
   #0  0x0000ffffbe23ae94 in nanosleep () at ../sysdeps/unix/syscall-template.S:86
   #1  0x0000ffffbe260368 in usleep (useconds=<optimized out>) at ../sysdeps/posix/usleep.c:32
   #2  0x0000ffffb8d86318 in bthread::TaskControl::init(int) () from /usr/local/lib/libvideo_filter.so
   #3  0x0000ffffb8d97fec in bthread_start_background () from /usr/local/lib/libvideo_filter.so
   #4  0x0000ffffb8c45a3c in brpc::GlobalInitializeOrDieImpl() () from /usr/local/lib/libvideo_filter.so
   #5  0x0000ffffbe4aea3c in __pthread_once_slow (once_control=0xffffb97b89c8 <brpc::register_extensions_once>, init_routine=0xffffb8c449f0 <brpc::GlobalInitializeOrDieImpl()>) at pthread_once.c:116
   #6  0x0000ffffb8c4367c in brpc::GlobalInitializeOrDie() () from /usr/local/lib/libvideo_filter.so
   #7  0x0000ffffb8c66eb4 in brpc::StringToProtocolType(butil::BasicStringPiece<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > const&, bool) ()
      from /usr/local/lib/libvideo_filter.so
   #8  0x0000ffffb82d8290 in brpc::StringToProtocolType (type=...) at /usr/local/include/brpc/adaptive_protocol_type.h:37
   #9  0x0000ffffb82d835c in brpc::AdaptiveProtocolType::operator= (this=0xffffffffd3a0, name=...) at /usr/local/include/brpc/adaptive_protocol_type.h:62
   
   
   -----------有几个线程的调用栈全部是下面这样的-------------
   (gdb) bt
   #0  0x0000ffffbe4b050c in __lll_lock_wait (futex=0xffffbe80d9b8 <_rtld_global+2440>, private=0) at lowlevellock.c:46
   #1  0x0000ffffbe4a9858 in __GI___pthread_mutex_lock (mutex=0xffffbe80d9b8 <_rtld_global+2440>) at pthread_mutex_lock.c:115
   #2  0x0000ffffbe7f4338 in _dl_tlsdesc_resolve_early_return_p (caller=0xffffb8b192d0 <bt...@plt>, td=0xffffb972bee8) at ./tlsdeschtab.h:146
   #3  _dl_tlsdesc_resolve_rela_fixup (td=0xffffb972bee8, l=0x8000000000000000) at ../sysdeps/aarch64/tlsdesc.c:52
   #4  0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   #5  0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   #6  0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   #7  0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   #8  0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   #9  0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   #10 0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   #11 0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   #12 0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   #13 0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   #14 0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   #15 0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   #16 0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   #17 0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   #18 0x0000ffffbe7f4768 in _dl_tlsdesc_resolve_rela () at ../sysdeps/aarch64/dl-tlsdesc.S:283
   。。。。。。。。。
   
   


----------------------------------------------------------------
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:
users@infra.apache.org



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