Open randaz81 opened 7 years ago
I can confirm this bug is still present in yarp 3.3 [master branch]
Additional note: if I use a yarp::os::Port
class, I am able to call the useCallback()
method before or after the .open()
method with no segfault. So this bug seems to be somehow specific for the yarp::os::Subscriber
class.
Same error happened today, This is the backtrace generated by gdb. It seems that the topic is not completely started when the first callback is called
The following code leads to a segfault (the first time data are received)
while the following is ok:
Being DataReaderClass defined as:
The issue could be related to the fact that
topic()
automatically creates a connection? (The connection is typically created later when using a standard buffered port with callback, instead).