Skip to content

How to stop/terminate the application properly using CommonAPI? Which CommonAPI method I have to call? #31

@VidyaJanaki

Description

@VidyaJanaki

I created one sample Helloworld application to register the service using CommonAPI. If I directly exit the application, I've faced crash issue during multiple times execution(approx 15:1 ratio).

Error snippet:
Successfully Registered Service! [ 7153.988687]~DLT~14482~WARNING ~Lost log messages in user buffer when exiting: 1 2021-09-25 19:49:21.340402 [info] io thread id from application: d039 () is: ffff8b61a000 TID: 14486 2021-09-25 19:49:21.340848 [info] Client d039 successfully connected to routing ~> registering.. terminate called recursively terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::log::v2_mt_posix::system_error> >' what(): Failed to set TLS value: Invalid argument terminate called recursively

From my analysis, this issue due to abrupt exit of the application. Now I want to terminate the application gracefully(not abruptly) using CommonAPI. Please help me to sort out the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions