[openssl-dev] [openssl.org #4286] Debug in OpenSSL

Kurt Roeckx via RT rt at openssl.org
Mon Feb 1 23:30:41 UTC 2016


On Mon, Feb 01, 2016 at 10:21:30PM +0000, Tiantian Liu via RT wrote:
> Hi, ALL,
> 
> I am software developer who is struggling with encryption and decryption issues in my application.
> 
> Our customer complained our application crashed at the point where OpenSSL method,  PEM_read_RSAPrivateKey, being called.
> 
> While I can't duplicate the crash in my machine. So I want to enable debug in OpenSSL and core dumping on their machine, then I can get the core dump file upon the crash on customer's side. And I can use GDB to debug the core dump to see what happened in side the so-called PEM_read_RSAPrivateKey.
> 
> Today, I re-compiled my OpenSSL (version openssl-1.0.1p). However, when I set the breakpoint at PEM_read_RSAPrivateKey, my GDB can't step into that function, just bypassed directly.
> My machine is 32-bit RedHat Enterprise 5. What I did in configure and installation:
> 
> #./Configure -g debug-linux-elf -prefix=/usr shared
> # make
> # make install

Are you sure it doesn't get stripped at some point?  Can you check
that the files actually contain debug info?  Try:
readelf -S /usr/lib/libcrypto.so.1.0.0


Kurt





More information about the openssl-dev mailing list