wwbmmm commented on issue #2042:
URL:
https://github.com/apache/incubator-brpc/issues/2042#issuecomment-1343869254
> > 看起来就是 g->current_task()获取到的值不等于g->_cur_meta 但是代码就是这样写的:
> > ```c++
> > TaskMeta* current_task() const { return _cur_meta; }
> > ```
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > 感觉可能是编译器的bug,你可尝试关闭编译优化,看看问题是否还出现
>
> 我也这么猜测的, 晚点试试看
想到一个问题,你是否没有在头文件中定义NDEBUG宏?
如果有的代码有这个宏,有的代码没有,会导致TaskGroup的ABI不兼容:
https://github.com/apache/incubator-brpc/blob/master/src/bthread/task_group.h#L224
从而影响_cur_meta字段的读取
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]