On Fri, Dec 20, 2013 at 01:29:39PM -0500, David Miller wrote:
> From: "Misaki.Miyashita via RT" <r...@openssl.org>
> Date: Fri, 20 Dec 2013 06:59:18 +0100
> 
> > Hi,
> > 
> > We don't have RNG instructions, and calling _sparcv9_random() causes 
> > SIGILL and debug tools (i.e. gdb and mdb) stops when libcrypto.so is 
> > loaded (at _init()).
> > % mdb `which openssl`
> >  > ::run
> > mdb: stop on SIGILL
> > mdb: target stopped at:
> > libcrypto.so.1.0.0`_sparcv9_random+4:   random    %d8
> 
> Do not do this, the instruction is valid and we'd like to detect
> the presence of it on chips that actually have it.
> 
> We use SIGILL sequence to detect presence for all crypto instructions,
> so if your logic would apply to all of the instructions we try to
> detect.
> 
> This is the standard way that openssl probes for instruction 
> presence.

I keep running into people having this problem when trying to
debug something.  Maybe this should get added to the FAQ?


Kurt


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to