Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求助:socket.cpp:1036, IsWriteComplete] Check failed: NULL == old_head->next #2572

Open
zcfh opened this issue Mar 14, 2024 · 0 comments
Open

Comments

@zcfh
Copy link

zcfh commented Mar 14, 2024

Describe the bug (描述bug)
使用 clang-17 进行autofdo优化。 服务出现

F0314 16:33:23.030470 211226 socket.cpp:1071, IsWriteComplete] Check failed: p != NULL
*** Check failure stack trace: ***
F0314 16:33:23.035867 211251 socket.cpp:1036, IsWriteComplete] Check failed: NULL == old_head->next
*** Check failure stack trace: ***

core的调用栈是在

(gdb) bt
#0  0x0000000001e1a1e3 in brpc::Socket::KeepWrite(void*) (void_arg=<optimized out>) at third_party/brpc-0.9.6/src/brpc/socket.cpp:1629
#1  0x0000000001e4f706 in bthread::TaskGroup::task_runner(long) (skip_remained=<optimized out>)
    at third_party/brpc-0.9.6/src/bthread/task_group.cpp:316
#2  0x0000000001e50891 in bthread_make_fcontext () at third_party/brpc-0.9.6/src/brpc/describable.h:90
#3  0x0000000000000000 in ?? ()
(gdb) p req
$1 = (struct WriteRequest *) 0xffffffffffffffff

有没有排查思路?

To Reproduce (复现方法)
目前不能在demo上进行复现。

Expected behavior (期望行为)

Versions (各种版本)
OS: CentOS Linux release 7.3.1611
Compiler: clang++ 17.0.1
brpc: 0.96
protobuf: 3.19.1

Additional context/screenshots (更多上下文/截图)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant