Trying to debug a program using gdb, it does not report SIGILL to OPENSSL_cpuid_setup.
With this simple code, I have the same behavior:
#include <openssl/ssl.h>
int main()
{
SSL_library_init();
}
It compiles and works well, but starting with a gdb report after backtrace
Program received signal SIGILL, Illegal instruction.
0xb6b2eb40 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb) where
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
How to run such a program under gdb?
source
share