apollo icon indicating copy to clipboard operation
apollo copied to clipboard

(Core dumps) apollo::common::Header::ByteSizeLong()

Open 1604148641 opened this issue 2 years ago • 1 comments

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

img_v3_025e_39971c13-9384-439d-9182-6e7a80deea5g

the way i fill message header

img_v3_025e_03d4b1d9-40ad-4dee-9512-a24920a6711g

another way which using common::util::FillHeader()

img_v3_025e_c4230370-fe79-4103-9a6c-8b382aad905g then publish, it also get crash finally.

others

img_v3_025e_00fd3447-2fd7-46cd-8c1f-ce8c03c7d0bg

1604148641 avatar Nov 22 '23 03:11 1604148641

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.

1604148641 avatar Nov 22 '23 06:11 1604148641