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
On Wednesday, September 1, 2021 at 2:44:52 PM UTC+5:30 varun...@gmail.com 
wrote:

> Hello,
>
> Recently we have been seeing multiple occurrences of "fatal: morestack on 
> gsignal" error in our system tests. The issue happens with golang 1.13.7 
> and golang 1.16.5 runtimes. The process restarts after this error and no 
> stack trace is dumped. Our process uses CGO calls, I/O ops etc.
>
> So far, the issue seem to happen only on CentOS7 with linux kernel 
> version: 3.10.0-1127.19.1.el7.x86_64. The issue is not seen on: 
> 3.10.0-693.5.2.el7.x86_64
>
> At this point, we have no clue as to why this is happening and no stack 
> trace is making it difficult to debug. Any pointers on debugging the issue 
> would be of great help.
>
> Thanks,
> Varun
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/9f36ab30-3222-4eed-8388-93ecd259bf55n%40googlegroups.com.

Reply via email to