aarch64 的CentOS Linux release 7.6.1810 (AltArch),brpc1.5.0 echo_test 退出报错sched_to itself!double free or corruption
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- backend, operating-systems
Research direction
Reproduce the failure with echo_server on CentOS Linux 7.6.1810 (AltArch), brpc 1.5.0, and protobuf 2.5.0, then inspect src/bthread/task_group.cpp around line 629 and the shutdown path reported by the log. Done means stopping the server with Ctrl+C exits cleanly without “sched_to itself!” or double-free errors.
Written by the indexing model from the issue text.
Description
Describe the bug
1、启动echo_server ,啥都不做
sudo ./echo_server --port=8341
I0226 18:12:36.422261 64782 src/brpc/server.cpp:1113] Server[EchoServiceImpl] is serving on port=8341.
I0226 18:12:36.422582 64782 src/brpc/server.cpp:1116] Check out http://tjyxy01-ks3-dev144059169.tjyxy01.ksyun.com:8341 in web browser.
EchoServer started at 0.0.0.0:8341
2、ctrl+c退出即报错
I0226 18:12:37.075939 64782 src/brpc/server.cpp:1173] Server[EchoServiceImpl] is going to quit
F0226 18:12:37.076134 64821 src/bthread/task_group.cpp:629] bthread=4294975488 sched_to itself!
*** Error in `./echo_server': double free or corruption (!prev): 0x0000ffff1401c780 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7d1ec)[0xffffb47fd1ec]
/lib64/libstdc++.so.6(_ZNSs7reserveEm+0xb0)[0xffffb4acda74]
./echo_server[0x57a5a0]
./echo_server[0x4ab4e8]
To Reproduce
Expected behavior
正常退出不要报错
Versions
OS:CentOS Linux release 7.6.1810 (AltArch),
Compiler:
brpc:1.5.0
protobuf:2.5.0
Additional context/screenshots
- Dominant language
- C++
- Stars
- 17.6k
- Forks
- 4.2k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 72
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/brpc
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 2 days
-
endpoint2hostname() prints a byte-swapped port for IPv6 endpointsPossibly taken @0z5a claimed this 8 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 2 days
-
perf(butil): ARM64 (aarch64) performance and modernisation improvements across atomics, CRC32C, spin-wait hints, and fast timersPossibly taken @jimmystewpot claimed this 2 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 12/100
Maintainers usually reply within 2 days
-
file:// naming service takes a comment after the address as the tagPossibly taken @0z5a claimed this 8 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
Maintainers usually reply within 2 days
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 2 days
Similar issues
-
agent:Windows bug in progress pri:medium sev:low testing windows
Difficulty 1/5 Under an hour Newbie friendliness 91/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
protocolbuffers/protobuf#31768 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
godotengine/godot#125651 ·
Maintainers usually reply within 1 day
-
Android: with view recycling on, a recycled View keeps its nextFocusLeftPossibly taken A pull request linked to this issue is open or already merged. OpenNeeds: Triage :mag: Platform: Android
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
react/react-native#60167 ·
Maintainers usually reply within 2 days
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 63/100