Skip to content

brpc服务在ClosureGuard对象析构函数中coredump问题 Byte size calculation and serialization were inconsistent异常 #771

@tmqsoft

Description

@tmqsoft

HI 大神:
在构建一个brpc服务上线后 发现总是莫名的出现coredump 查看堆栈信息 进程core在ClosureGuard对象的析构函数里面 通过检查日志以及堆栈信息猜测 可能是业务代码抛出没有捕捉的异常导致 但是业务代码在捕捉异常之后 还是发生同样的coredump问题
希望有遇到过类似问题的大神帮忙指点迷津

部分core栈如下
image

每次core比出现的日志 怀疑是该问题引起
[BaiduStreamingLogHandler] google/protobuf/message_lite.cc:71 CHECK failed: (bytes_produced_by_serialization) == (byte_size_before_serialization): Byte size calculation and serialization were inconsistent. This may indicate a bug in protocol buffers or it may be caused by concurrent modification

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions