CTRL-C on Flask Application that accesses YottaDB causes a core on debug build
Follow instructions here: https://gitlab.com/YottaDB/Demo/YDBApron/-/blob/ece7ac781f886bc032a6300665ab4b50163291a1/README.md to set-up the Flask application.
CTRL-C normally works if you don't visit any page that uses YottaDB
Visit e.g. /recipes/list. That calls YottaDB.
Now go to the terminal, and press CTRL-C multiple times. You will core out.
Backtrace:
#0 0x00007f91fb522131 in pthread_kill () from /lib64/libpthread.so.0
#1 0x00007f91f7bd5909 in gtm_dump_core () at /Distrib/YottaDB/V989_R139/sr_unix/gtm_dump_core.c:74
#2 0x00007f91f7bd6e42 in gtm_fork_n_core () at /Distrib/YottaDB/V989_R139/sr_unix/gtm_fork_n_core.c:163
#3 0x00007f91f7baf991 in ch_cond_core () at /Distrib/YottaDB/V989_R139/sr_unix/ch_cond_core.c:80
#4 0x00007f91f7ce2665 in rts_error_va (csa=0x0, argcnt=7, var=0x56234c022f20) at /Distrib/YottaDB/V989_R139/sr_unix/rts_error.c:198
#5 0x00007f91f7ce2b5e in rts_error_csa (csa=0x0, argcnt=7) at /Distrib/YottaDB/V989_R139/sr_unix/rts_error.c:99
#6 0x00007f91f81b8f1a in generic_signal_handler (sig=2, info=0x56234c0233f0, context=0x56234c0232c0, is_os_signal_handler=1) at /Distrib/YottaDB/V989_R139/sr_unix/generic_signal_handler.c:198
#7 0x00007f91f7db35ba in ydb_os_signal_handler (sig=2, info=0x56234c0233f0, context=0x56234c0232c0) at /Distrib/YottaDB/V989_R139/sr_unix/ydb_os_signal_handler.c:85
#8 <signal handler called>
#9 0x00007f91fb4250a9 in poll () from /lib64/libc.so.6
#10 0x00007f91faeb49b9 in ?? () from /usr/lib64/python3.6/lib-dynload/select.cpython-36m-x86_64-linux-gnu.so
#11 0x00007f91fb5ec08d in _PyCFunction_FastCallDict () from /usr/lib64/libpython3.6m.so.1.0
#12 0x00007f91fb65da72 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#13 0x00007f91fb661ed5 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#14 0x00007f91fb65d4d6 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#15 0x00007f91fb65d74f in ?? () from /usr/lib64/libpython3.6m.so.1.0
#16 0x00007f91fb65d955 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#17 0x00007f91fb661ed5 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#18 0x00007f91fb65d4d6 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#19 0x00007f91fb65d74f in ?? () from /usr/lib64/libpython3.6m.so.1.0
#20 0x00007f91fb65d955 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#21 0x00007f91fb66078e in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#22 0x00007f91fb65d4d6 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#23 0x00007f91fb65d74f in ?? () from /usr/lib64/libpython3.6m.so.1.0
#24 0x00007f91fb65d955 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#25 0x00007f91fb661ed5 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#26 0x00007f91fb65d4d6 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#27 0x00007f91fb65d74f in ?? () from /usr/lib64/libpython3.6m.so.1.0
#28 0x00007f91fb65d955 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#29 0x00007f91fb661ed5 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#30 0x00007f91fb65d4d6 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#31 0x00007f91fb65d74f in ?? () from /usr/lib64/libpython3.6m.so.1.0
#32 0x00007f91fb65d955 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#33 0x00007f91fb66078e in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#34 0x00007f91fb65d4d6 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#35 0x00007f91fb65db0e in PyEval_EvalCodeEx () from /usr/lib64/libpython3.6m.so.1.0
#36 0x00007f91fb5cd835 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#37 0x00007f91fb5a3948 in PyObject_Call () from /usr/lib64/libpython3.6m.so.1.0
#38 0x00007f91fb6608e7 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#39 0x00007f91fb65d4d6 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#40 0x00007f91fb6656fa in _PyFunction_FastCallDict () from /usr/lib64/libpython3.6m.so.1.0
#41 0x00007f91fb5a3b7e in _PyObject_FastCallDict () from /usr/lib64/libpython3.6m.so.1.0
#42 0x00007f91fb5a3d8c in _PyObject_Call_Prepend () from /usr/lib64/libpython3.6m.so.1.0
#43 0x00007f91fb5a3948 in PyObject_Call () from /usr/lib64/libpython3.6m.so.1.0
#44 0x00007f91fb6608e7 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#45 0x00007f91fb65d4d6 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#46 0x00007f91fb65db0e in PyEval_EvalCodeEx () from /usr/lib64/libpython3.6m.so.1.0
#47 0x00007f91fb5cd835 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#48 0x00007f91fb5a3948 in PyObject_Call () from /usr/lib64/libpython3.6m.so.1.0
#49 0x00007f91fb6608e7 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#50 0x00007f91fb65d4d6 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#51 0x00007f91fb6656fa in _PyFunction_FastCallDict () from /usr/lib64/libpython3.6m.so.1.0
#52 0x00007f91fb5a3b7e in _PyObject_FastCallDict () from /usr/lib64/libpython3.6m.so.1.0
#53 0x00007f91fb5a3d8c in _PyObject_Call_Prepend () from /usr/lib64/libpython3.6m.so.1.0
#54 0x00007f91fb5a3948 in PyObject_Call () from /usr/lib64/libpython3.6m.so.1.0
#55 0x00007f91fb6608e7 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#56 0x00007f91fb65d67f in ?? () from /usr/lib64/libpython3.6m.so.1.0
--Type <RET> for more, q to quit, c to continue without paging--c
#57 0x00007f91fb65d955 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#58 0x00007f91fb661ed5 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#59 0x00007f91fb65d4d6 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#60 0x00007f91fb65d74f in ?? () from /usr/lib64/libpython3.6m.so.1.0
#61 0x00007f91fb65d955 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#62 0x00007f91fb661ed5 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#63 0x00007f91fb65d4d6 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#64 0x00007f91fb6656fa in _PyFunction_FastCallDict () from /usr/lib64/libpython3.6m.so.1.0
#65 0x00007f91fb5a3b7e in _PyObject_FastCallDict () from /usr/lib64/libpython3.6m.so.1.0
#66 0x00007f91fb5a3d8c in _PyObject_Call_Prepend () from /usr/lib64/libpython3.6m.so.1.0
#67 0x00007f91fb5a3948 in PyObject_Call () from /usr/lib64/libpython3.6m.so.1.0
#68 0x00007f91fb6608e7 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#69 0x00007f91fb65d4d6 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#70 0x00007f91fb65d74f in ?? () from /usr/lib64/libpython3.6m.so.1.0
#71 0x00007f91fb65d955 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#72 0x00007f91fb66078e in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#73 0x00007f91fb65d67f in ?? () from /usr/lib64/libpython3.6m.so.1.0
#74 0x00007f91fb65d955 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#75 0x00007f91fb661ed5 in _PyEval_EvalFrameDefault () from /usr/lib64/libpython3.6m.so.1.0
#76 0x00007f91fb65d4d6 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#77 0x00007f91fb65d613 in PyEval_EvalCode () from /usr/lib64/libpython3.6m.so.1.0
#78 0x00007f91fb686f40 in ?? () from /usr/lib64/libpython3.6m.so.1.0
#79 0x00007f91fb688d71 in PyRun_FileExFlags () from /usr/lib64/libpython3.6m.so.1.0
#80 0x00007f91fb688ecd in PyRun_SimpleFileExFlags () from /usr/lib64/libpython3.6m.so.1.0
#81 0x00007f91fb6a0031 in Py_Main () from /usr/lib64/libpython3.6m.so.1.0
#82 0x000056234ac05c90 in main ()