I've simply moved the initialisation from outside `main()` function to inside `main()` function. I fail to understand why the order of initialisation is so important (I could not find anything relevant in the documentation).
Thanks for comments, my c++ knowledge would need a refresher.
Using host libthread_db library "/lib64/libthread_db.so.1".
0 [0x7ffff7fb0780] INFO MyApp null - Entering application.
3 [0x7ffff7fb0780] INFO MyApp null - Exiting application.
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5f69dc9 in apr_pool_create_ex () from /lib64/libapr-1.so.0