protobuf shutdownprotobuflibrary的时候crash,释放的指针出错

往往是多个子项目中有多次链接使用。

解决方法:

1. 使用静态库。

2. issure中有说2.6.1还未允许多次释放,建议使用3.4.x版本。

 

参考:

https://github.com/protocolbuffers/protobuf/issues/3673

https://trac.videolan.org/vlc/ticket/18329#comment:12

https://github.com/protocolbuffers/protobuf/issues/206

posted on 2018-10-25 16:46  willaty  阅读(691)  评论(0编辑  收藏  举报

导航