builtin service执行过程中coredump
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
Línea de trabajo
Comienza con src/brpc/builtin/sockets_service.cpp y luego sigue la llamada a DebugSocket en src/brpc/socket.cpp a través de versioned_ref_with_id.h. Reproduce la solicitud del servicio builtin usando el entorno de brpc 1.11.0 indicado e determina por qué la desreferenciación del socket llega al registro fatal. Se considera terminado cuando la solicitud del servicio builtin indicada ya no produce un coredump.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
brpc服务运行过程中coredump,查看corefile,发现是builtin_service导致的
#0 0x00007fa87f448baf in raise () from /lib64/libpthread.so.0
#1 0x0000000002443790 in backward::SignalHandling::sig_handler (signo=6, info=0x7fa2fd69d0f0, _ctx=0x7fa2fd69cfc0)
at /data00/kernel/docker/dev-build-run/tcqa-table/build/vcpkg_installed/x64-linux/include/backward.hpp:4299
#2 <signal handler called>
#3 0x00007fa87d16852f in raise () from /lib64/libc.so.6
#4 0x00007fa87d13be65 in abort () from /lib64/libc.so.6
#5 0x000000000354ada7 in google::LogMessage::Fail ()
at /root/vcpkg/buildtrees/glog/src/v0.7.1-795557b621.clean/src/logging.cc:1953
#6 0x000000000354e2aa in google::LogMessageFatal::~LogMessageFatal (this=0x7fa2fd69df40, __in_chrg=<optimized out>)
at /root/vcpkg/buildtrees/glog/src/v0.7.1-795557b621.clean/src/logging.cc:2645
#7 0x0000000002be4a82 in brpc::VersionedRefWithId<brpc::Socket>::Dereference (this=0x7fa35a8bc800)
at /root/vcpkg/buildtrees/brpc/src/1.11.0-fbf5526c8b.clean/src/brpc/versioned_ref_with_id.h:576
#8 0x0000000002d0f022 in brpc::DereferenceSocket (s=0x7fa35a8bc800)
at /root/vcpkg/buildtrees/brpc/src/1.11.0-fbf5526c8b.clean/src/brpc/socket.cpp:2275
#9 0x0000000002b194fe in brpc::VersionedRefWithIdDeleter<brpc::Socket>::operator() (this=0x7fa2fd69e390, m=0x7fa35a8bc800)
at /root/vcpkg/buildtrees/brpc/src/1.11.0-fbf5526c8b.clean/src/brpc/socket_id.h:46
#10 0x0000000002b1a30a in std::unique_ptr<brpc::Socket, brpc::VersionedRefWithIdDeleter<brpc::Socket> >::~unique_ptr (
this=0x7fa2fd69e390, __in_chrg=<optimized out>) at /opt/rh/gcc-toolset-10/root/usr/include/c++/10/bits/unique_ptr.h:361
#11 0x0000000002d108e7 in brpc::Socket::DebugSocket (os=..., id=17179869742)
at /root/vcpkg/buildtrees/brpc/src/1.11.0-fbf5526c8b.clean/src/brpc/socket.cpp:2565
#12 0x0000000002cfebe9 in brpc::SocketsService::default_method (this=0x7fa877946ae8, cntl_base=0x7fa362a69f00,
done=0x7fa1e9b1fe00) at /root/vcpkg/buildtrees/brpc/src/1.11.0-fbf5526c8b.clean/src/brpc/builtin/sockets_service.cpp:46
#13 0x0000000002d60b88 in brpc::sockets::CallMethod (this=0x7fa877946ae8, method=0x7fa877b917e0, controller=0x7fa362a69f00,
request=0x7fa2eadb71a0, response=0x7fa266510040, done=0x7fa1e9b1fe00)
at /root/vcpkg/buildtrees/brpc/x64-linux-dbg/brpc/builtin_service.pb.cc:3941
#14 0x0000000002be2714 in brpc::policy::ProcessHttpRequest (msg=0x7fa362a69c10)
at /root/vcpkg/buildtrees/brpc/src/1.11.0-fbf5526c8b.clean/src/brpc/policy/http_rpc_protocol.cpp:1645
#15 0x0000000002b70e50 in brpc::ProcessInputMessage (void_arg=0x7fa362a69c10)
at /root/vcpkg/buildtrees/brpc/src/1.11.0-fbf5526c8b.clean/src/brpc/input_messenger.cpp:177
#16 0x0000000002b70f45 in brpc::InputMessenger::InputMessageClosure::~InputMessageClosure (this=0x7fa2fd69ed80,
__in_chrg=<optimized out>) at /root/vcpkg/buildtrees/brpc/src/1.11.0-fbf5526c8b.clean/src/brpc/input_messenger.cpp:213
#17 0x0000000002b71d33 in brpc::InputMessenger::OnNewMessages (m=0x7fa31eb04f40)
at /root/vcpkg/buildtrees/brpc/src/1.11.0-fbf5526c8b.clean/src/brpc/input_messenger.cpp:399
--Type <RET> for more, q to quit, c to continue without paging--f 6
#18 0x0000000002d09c00 in brpc::Socket::ProcessEvent (arg=0x7fa31eb04f40)
at /root/vcpkg/buildtrees/brpc/src/1.11.0-fbf5526c8b.clean/src/brpc/socket.cpp:1185
#19 0x0000000002b03967 in bthread::TaskGroup::task_runner (skip_remained=0)
at /root/vcpkg/buildtrees/brpc/src/1.11.0-fbf5526c8b.clean/src/bthread/task_group.cpp:305
#20 0x0000000002a999c1 in bthread_make_fcontext ()
#21 0x0000000000000000 in ?? ()
Versions
OS: rhel8.2
Compiler: gcc version 10.3.1 20210422 (Red Hat 10.3.1-1) (GCC)
brpc: 1.11.0
protobuf: 3.21.8
- Lenguaje dominante
- C++
- Estrellas
- 17.6k
- Forks
- 4.2k
- Merge medio
- 3 d 17 h
- PR fusionados (30 d)
- 72
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/brpc
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 2 días
-
endpoint2hostname() prints a byte-swapped port for IPv6 endpointsPosiblemente ocupada @0z5a la tomó hace 8 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 2 días
-
perf(butil): ARM64 (aarch64) performance and modernisation improvements across atomics, CRC32C, spin-wait hints, and fast timersPosiblemente ocupada @jimmystewpot la tomó hace 2 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
Los mantenedores suelen responder en 2 días
-
file:// naming service takes a comment after the address as the tagPosiblemente ocupada @0z5a la tomó hace 8 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
Los mantenedores suelen responder en 2 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Los mantenedores suelen responder en 2 días
Todos los issues de apache/brpc
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
protocolbuffers/protobuf#31768 ·
Los mantenedores suelen responder en 1 día
-
Needs: Triage :mag: Platform: Android
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
react/react-native#60167 ·
Los mantenedores suelen responder en 2 días
-
Level format documentationAbiertodocumentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
-
tests: ofx_render_test doesn't compile against FFmpeg 4.x (const AVCodec* to av_find_best_stream)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NatronGitHub/openfx-io#221 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
subsurface/subsurface#5145 ·
Los mantenedores suelen responder en 2 días