Skip to content

启用ssl后,channel发送数据偶发core在SSL_write内部 #2166

@jingshi-ant

Description

@jingshi-ant

Describe the bug (描述bug)
尝试使用自签证书验证ssl功能,在mac环境中比较稳定,在centos8偶发出core:
image

image

To Reproduce (复现方法)
在brpc的build_with_bazel中增加相关代码
1.echo_c++里的client、server
2.增加BUILD.bazel编译配置

具体代码变更如下~
master...jingshi-ant:brpc:master

  1. bazel build echo_server && bazel build echo_client
  2. 启动server:bazel-bin/echo_server &
  3. 启动client:bazel-bin/echo_client --protocol="http:proto" --pay_load_size=50000000 --enable_ssl=true --interval_ms=0 --timeout_ms=20000

Expected behavior (期望行为)
期望不出core

Versions (各种版本)
OS: centos8
Compiler: bazel 4.2.2
brpc: 1.4.0
protobuf:
openssl: OpenSSL 1.1.1k FIPS 25 Mar 2021

Additional context/screenshots (更多上下文/截图)
看报错可能和openssl有关?在mac上基本不出core(通过make 在echo_c++中build;bazel暂时无法build),但是频繁kill client 重启,会有 bus error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions