Segmentation Fault arises when initializing a publisher in a constructor #4018
Labels
in progress
Issue or PR which is being reviewed
need more info
Issue that requires more info from contributor
Is there an already existing issue for this?
Expected behavior
We define a class, and it has only one private member variable
mypub
, an instance of the ClassMsgPublisher
.We then call its initialization method
mypub.init()
in the constructor ofMsgPublisher
.Current behavior
Segmentation Fault arises when initializing that publisher.
Steps to reproduce
Here is an example to reproduce this issue.
TestDDS - 20231114.zip
Here is the information from the call stack when running the program in debug mode.
The last three lines indicate where the error occurs in my code.
Here is a screenshot.
Fast DDS version/commit
v2.12.0
Platform/Architecture
Ubuntu Focal 20.04 amd64
Transport layer
UDPv4
Additional context
No response
XML configuration file
No response
Relevant log output
No response
Network traffic capture
No response
The text was updated successfully, but these errors were encountered: