orocos-toolchain / rtt

Orocos Real-Time Toolkit
http://www.orocos.org
Other
72 stars 79 forks source link

pluginloader: fixed segfault if a service plugin refuses to create a service instance to be loaded into the global service #139

Closed meyerj closed 5 years ago

meyerj commented 8 years ago

Originally reported in orocos-toolchain/ocl#40.

To reproduce:

$ deployer
import("rtt_rosdeployment")
require("rosdeployment")

The problem is that createService() returns a null pointer in rtt_rosdeployment_service.cpp and the PluginLoader did not catch this case before forwarding it to Service::addService().

meyerj commented 8 years ago

Merged into toolchain-2.9: 6b0963158f5d1a4d92b23a8b1741ce106fa4b743