brpc静态链接的so库,可执行程序调用没有问题,别的so调用会出现googleutexLock::MutexLock崩溃
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- backend, build-system
Research direction
The report only provides a gdb backtrace involving lib/libpgc_sdf_svs.so, google::protobuf::internal::WrappedMutex, and generated_message_util.cc during shared-library initialization. Start by reproducing the difference between calling the statically linked brpc library from an executable and from another shared object, then inspect the initialization path shown in the trace. Done means the crash is reproducible, its linkage or initialization cause is identified, and the affected shared-library case no longer crashes.
Written by the indexing model from the issue text.
Description
Describe the bug
gdb)bt
8x8880088008880088
?? ()
0x00007fffe37449df/lib/libpgc sdf svs.soin othreag mutex0x00007fffe3a2fa8t/home/ns5000/lib/libpgc sdf svs.sogthreao mutns5000/lib/libpgc sdf_svs.so3x000日71Px::lock()/home/ns5000/lib/libpgc sdf svs.so()from /home/ns5000/lib/libpgc sdf svs.so3x666日7fffe3a5a22googleutexLock::MutexLock(google::protobuf::internal::WrappedMutex*)n/home/ns5000/lib/libpgc sdf svs.sox00007f599fgooglevoid const*)()fromconst*)9x00007ff5Ooy:"0rOTO:royString(std::string const*)()from /home/ns5000/lib/libpgc sdf svs.so0x00007fffe3a4f854google::protobuf/home/ns5000/lib/libpgc sdf svs.sofrom/home/ns5000/lib/libpgc sdf svs.so3x00007fffgoogle:::protobuffrom0x00007fffe3a506static initializat:/ns5000/lib/libpgc sdf svs.so0x00007fffe3a500bainGLOBAL sub I.00101 generated message util.cc/home/ns5000/lib/libpgc sdf svs.soentry=0x7fffffffdd38,env=env@entry=0x7fffffffdd48)at dl-init.c:780X0日日日7FFFf70call init (l=(env=0x7fffffffdd480x00007ffff7deacd3in.call initrgv=x7fffffffdd38I=)at dl-init.c:36dl init (main map=0x7ffff7ffe1b0, argc=1, argv=0x7fffffffdd38, env=0x7fffffffdd48) at dl-init.c:1260x00007ffff7ddd16aindl start user()from /lib64/1d-linux-x86-64.so.20x8000000000080001i0??C.”00x00007fffffffe17cin#18 0x000000000000800
#2
#1G
#11
#12
#13
#14
#15
#16
#17
To Reproduce
Expected behavior
Versions
OS:
Compiler:
brpc:
protobuf:
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