-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SingleProcess example crashes on QNX #2292
Comments
it looks like the example is using too much stack. On QNX the stack size of the main thread is only 512kB. I'm not sure if it also works on QNX but on Linux one can use -- iox::roudi::IceOryxRouDiComponents roudiComponents(config);
-- iox::roudi::RouDi roudi(roudiComponents.rouDiMemoryManager, roudiComponents.portManager, config);
++ std::unique_ptr<iox::roudi::IceOryxRouDiComponents> roudiComponents{new iox::roudi::IceOryxRouDiComponents (config)};
++ iox::roudi::RouDi roudi(roudiComponents->rouDiMemoryManager, roudiComponents->portManager, config); If this works, can you please create a pull request with these changes? |
Change to smart pointer or the same crash: patch:
|
Oh, while the Alternatively, if you don't want to use the heap, it would also be possible to place the objects into the data segment with #include "iox/optional.hpp"
#include "iox/scoped_static.hpp"
// ...
static iox::optional<iox::roudi::IceOryxRouDiComponents> roudiComponents;
auto roudiComponentsGuard = iox::makeScopedStatic(roudiComponents, config); |
@tangzhiqiang3 did this work for you? |
@tangzhiqiang3 any update on this? If not, the issue will be closed later this year. |
Required information
Operating system:
qnx710
Compiler version:
aarch64-unknown-nto-qnx7.0.0-gcc (GCC) 5.4.0 [qnx700 1391]
Eclipse iceoryx version:
v2.0.6
Additional helpful information
If there is a core dump, please run the following command and add the output to the issue in a separate comment
The text was updated successfully, but these errors were encountered: