tub-uas / fcc

1 stars 0 forks source link

[FastRTPS/FastDDS] reader->type().delete_data(data) in callbacks causes segfault #4

Closed fpedd closed 3 years ago

fpedd commented 4 years ago

In void Listener::on_data_available(DataReader* reader) we create void* data = reader->type().create_data();. However, when trying to reader->type().delete_data(data); we get a segfault. Therefore it is commented out for now and marked with TODO. For now not deleting data does not cause any negative side effects.

heappy commented 4 years ago

Did you check if data pointer is created and not NIL?

heappy commented 3 years ago

Issue closed since no reader void *data = reader->type().create_data(); is used anymore. However, the problem arises if reader will be deleted even if data is empty.