Minor update:
a. The crash with "morestack on gsignal" happens to be independent of the kernel versions mentioned earlier
b. We implemented a signal handler to catch SIGSEGV from CGO. That is not helping either
c. From system audit logs, we can see the following message:
./audit/audit.log.2:22944:type=ANOM_ABEND msg=audit(1630376735.155:5486532): auid=4294967295 uid=996 gid=994 ses=4294967295 subj=system_u:system_r:unconfined_service_t:s0 pid=26422 comm="indexer" reason="memory violation" sig=5
Sig=5 is SIGTRAP. At this point, we suspect there is a SIGSEGV in CGO layer and that is being returned as SIGTRAP by runtime.
I am still clueless as to why a process can crash with "morestack on gsignal". Any pointers to debug this further would be of great help.
Thanks,
Varun