This was reported in Fedora bugzilla by Pekka Pietikainen : The other variants seem fine, but
(gdb) set args speed camellia-192-cbc (gdb) run Starting program: /usr/bin/openssl speed camellia-192-cbc [Thread debugging using libthread_db enabled] Doing camellia-192 cbc for 3s on 16 size blocks: Program received signal SIGSEGV, Segmentation fault. _x86_64_Camellia_encrypt () at cmll-x86_64.s:232 232 movl 64(%r14),%ebx Current language: auto The current source language is "auto; currently asm". (gdb) bt #0 _x86_64_Camellia_encrypt () at cmll-x86_64.s:232 #1 0x00000036cfe814b4 in Camellia_cbc_encrypt () at cmll-x86_64.s:1686 which looks a bit worrying, considering the nature of openssl This was reported on Red Hat rpm build of openssl. I've tried to rebuild openssl with most patches especially touching nearby code removed and it still segfaults. The compiler options are: OpenSSL 1.0.0-beta3 15 Jul 2009 built on: Fri Sep 4 10:37:51 CEST 2009 options:bn(64,64) md2(int) rc4(1x,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr2) compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -m64 -DL_ENDIAN -DTERMIO -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wa,--noexecstack -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DWHIRLPOOL_ASM When compiled with default options it does not segfault however I don't think that the options we use are the cause of the bug they just make the problem appear (I suppose the -fstack-protector or _FORTIFY_SOURCE=2 can reveal this as they change things on the stack). Also I've found that the necessary thing to trigger the bug is to have a large enough array of 0 bytes on the stack after the Camellia key schedule. -- Tomas Mraz No matter how far down the wrong road you've gone, turn back. Turkish proverb ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org