apollo
apollo copied to clipboard
(Core dumps) apollo::common::Header::ByteSizeLong()
Process crash while filling header of message to publish.
I create a component to publish traffic light message. Process can launch and run for a few while, but finally it will crash.
Here is the result that debug by GDB with the core file:
Core was generated by 'mainboard -d modules/traffic_light_wj/dag/traffic_light.dag
Program terminated with signal SIGSEGV, Segmentatioon fault
#0 0x00007fdf55da76f2 in apollo::common::Header::ByyteSizeLong() const ()
from /apollo/bazel-bin/modules/traffic_light_wj/../../_solib_local/libmodules_Scommon_Sproto_Slibh
eader_Uproto.so
[Current thread is 1 (Ihread (0x7fdf7f7fe700 (LWP 15494))]
I don`t know if this bug is cause by filling header of protobuf message.
I tried two ways to fill the header of message, which could be found in the following Supporting materials
System information
- OS Platform and Distribution (Linux Ubuntu 18.04):
- Apollo installed from (gitee):
- Apollo version (v6.0_edu):
Supporting materials (screenshots, command lines, code/script snippets):
gdb debug
the way i fill message header
another way which using common::util::FillHeader()
then publish, it also get crash finally.
others
I also found that process can work normally when message published withou filling header, but i dont know if message without header could be accepted by other modules that work in the autodrive-system.