Hi All,
I am writing a go function which will call cgo. Here I on purpose to write the code divided by zero in C function.
I received the signal SIGBUS, then go will generate a panic.
I did not see any document which describes the singal handling between Cgo and Go.
I dont understand how these work, anyone could give any idea? I did see the document that the synchronous signal would generate panic at the runtime.
What i want to know is how this signal is generated, how the signal is sent to go program, how go handle it.
thanks
Melody