Picture of tsn
Registered 4 years 300 days
tsn Monday, 4 January 2021, 05:23 PM
App crashes because of config
Hi guys,

My app is now crashing with the following backtrace:

Program terminated with signal SIGSEGV, Segmentation fault. #0 0x000000000049bbcd in TaskWriteConfig::Start (this=0x1a11b90, user=0x1a04410) at sdk/common/lib-cpp/config.cpp:69 69 sdk/common/lib-cpp/config.cpp: No such file or directory.

Please find full backtrace attached.

Could you please take a look and let me know if this is something in my app I need to fix?

Best regards,
Sergey
backtrace.txt
Picture of Daniel Deterding (innovaphone)
Moderator Registered 15 years 121 days
Daniel Deterding (innovaphone) Thursday, 7 January 2021, 08:49 AM
Re: App crashes because of config
Hi Sergey,

in config.cpp line 69, the database pointer is accessed.

Seems as if the database object which you handed to the config class TaskWriteConfig isn't valid anymore.

Greetings,
Daniel
Picture of tsn
Registered 4 years 300 days
tsn Thursday, 7 January 2021, 04:18 PM
Re: App crashes because of config
Hi Daniel,

Thank you for your explanation.

I don't think this is the case. After receiving `IDatabase` pointer in `DatabaseConnectComplete` I didn't receive neither `DatabaseShutdown`, nor `DatabaseError` callbacks.

This issue started happening at the time we upgraded to SR20 and later, when we upgraded to SR21. Before this it didn't happen. I also didn't modify code related to configs for quite a long time.

I'm pretty sure that DB is up and running at the time of the crash and didn't find any issue DB service on the host. Please suggest what else to check.

Best regards,
Sergey
← You can define your color theme preference here