> Unfortunately one of the tests core dumps.
> Here is what gdb says.
> .......
> $ gdb -c core ./ssltest 
> GNU gdb 5.2.1
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i586-pc-sco3.2v5.0"...
> Core was generated by `ssltest'.
> Program terminated with signal 4, Illegal instruction.
> Reading symbols from /usr/lib/libsocket.so.2...done.
> Loaded symbols for /usr/lib/libsocket.so.2
> Reading symbols from /usr/lib/libnsl.so...done.
> Loaded symbols for /usr/lib/libnsl.so
> Reading symbols from /usr/lib/libz.so.1...done.
> Loaded symbols for /usr/lib/libz.so.1
> Reading symbols from /usr/lib/libc.so.1...done.
> Loaded symbols for /usr/lib/libc.so.1
> #0  0x080d8590 in gcm_ghash_4bit_mmx ()
> (gdb) bt
> #0  0x080d8590 in gcm_ghash_4bit_mmx ()
> #1  0x30201000 in ?? ()
> Cannot access memory at address 0xe
> (gdb) 
> .......
> 
> Unfortunatly that's about all I knwow to do with gdb.

Maybe it's about time you learn couple of other commands:-) Note failing
address, 0x080d8590 in this case, and run 'disassemble' at gdb prompt.
Advance till you see the failing address on screen, copy-n-paste few
lines before and after. 'info all-registers' is yet another command
often required to pinpoint problem.

I would guess that it fails at pinsrw. Intel instructions reference
doesn't tell when exactly this instruction was introduced, so I assumed
it was MMX. But it might be that it was introduced with SSE. Try
following. Open crypto/modes/gcm128.c in text editor, locate line that
has '/* check MMX bit */' comment and replace '1<<23' with '1<<25'. You
must be running it on really old processor...
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to