Program received signal SIGILL, Illegal instruction Program received signal SIGILL, Illegal instruction linux linux

Program received signal SIGILL, Illegal instruction


Thank you guys for all your help.I finally figured out the problem that was causing this error.
Debugging more and tracing the instruction I found that program was failing at ud2a instruction.
I was ignoring one warning "warning: cannot pass objects of non-POD type 'struct sqlrw_request_cb' through '...'; call will abort at runtime".
Resolving these warnings fixed my problem related to SIGILL.
More explanation on this link:ud2a instruction causing SIGILL