-
Notifications
You must be signed in to change notification settings - Fork 4k
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
client未开启ssl,出现core,调用栈显示在ssl相关函数上。 #658
Comments
大约对应这里。
|
没进展么。。 |
不好意思,前两天有点忙。 |
$1 = {static STREAM_FAKE_FD = 2147483647, static PROGRESS_INIT = 1, _versioned_ref = {<boost::atomics::atomic> = {<boost::atomics::detail::base_atomic<unsigned long, int>> = {m_storage = 21474836482}, }, }, |
链接方式是默认。日志因为已经被清理了,看不到了。 |
fd=-1,Fail to read from fd=2797 SocketId=17179872856@10.89.53.21:9992@27623: Connection reset by peer" |
请问现在这个问题有知道是什么原因了吗@old-bear?我们的环境中也出现了同样的问题,堆栈是一样的。core的时候没有其他的错误打印,只有两个CHECK信息: Check failed: SSL_CONNECTED == ssl_state() (3 vs 0). |
remind,这个问题想问下有进度么?最近看见过四五次了。 |
@GardianT 请问下你们现在是怎么解决的 |
Is there any progress on this issue? |
提了个fix RP:#1814 |
Describe the bug (描述bug)
client未开启ssl。出现core,相关调用逻辑显示使用了ssl发送的逻辑。
To Reproduce (复现方法)
暂没有稳定复现方法。偶发core。 但能得知的信息是_ssl_state被判定成SSL_UNKNOWN
Expected behavior (期望行为)
未开启ssl,不执行
Additional context/screenshots (更多上下文/截图)
core完整信息如下。
(gdb) bt
#0 0x00007f2efb805304 in SSL_write () from /opt/compiler/gcc-4.8.2/lib/libssl.so.1.0.0
#1 0x00000000007ed0b7 in base::IOBuf::cut_into_SSL_channel (this=0x7f2cdc9ca090, ssl=ssl@entry=0x0, ssl_error=ssl_error@entry=0x7f2e282a36ac) at baidu/base/iobuf/base/iobuf.cpp:1046
#2 0x00000000007ed173 in base::IOBuf::cut_multiple_into_SSL_channel (ssl=0x0, pieces=pieces@entry=0x7f2e282a36d0, count=count@entry=256, ssl_error=ssl_error@entry=0x7f2e282a36ac) at baidu/base/iobuf/base/iobuf.cpp:1064
#3 0x000000000061794e in baidu::rpc::Socket::DoWrite (this=this@entry=0x7f2c9b9ae130, req=) at baidu/base/baidu-rpc/src/baidu/rpc/socket.cpp:1835
#4 0x000000000061dcc7 in baidu::rpc::Socket::KeepWrite (void_arg=) at baidu/base/baidu-rpc/src/baidu/rpc/socket.cpp:1734
#5 0x000000000077075a in bthread::TaskGroup::task_runner (skip_remained=) at baidu/base/bthread/bthread/task_group.cpp:293
#6 0x0000000000767e01 in bthread_make_fcontext ()
#7 0x0000000000000000 in ?? ()
(gdb) fr 3
#3 0x000000000061794e in baidu::rpc::Socket::DoWrite (this=this@entry=0x7f2c9b9ae130, req=) at baidu/base/baidu-rpc/src/baidu/rpc/socket.cpp:1835
1835 baidu/base/baidu-rpc/src/baidu/rpc/socket.cpp: No such file or directory.
(gdb) p _ssl_state
$1 = baidu::rpc::SSL_UNKNOWN
The text was updated successfully, but these errors were encountered: