FreeBSD 6.1, Opteron, gcc (GCC) 3.4.4 [FreeBSD] 20050518
OpenSSL HEAD of 2006-06-12 19:10 UTC
configured with
MAKEFLAGS=-- ./config -g shared zlib

Manual deletion of -O3 flag from Makefile eliminates the segfault.
Changing to -O2 does not.

make test's output ended with:

Response has been generated.
Segmentation fault (core dumped)
TSA test failed!
*** Error code 1

Stop in /usr/home/build/b64/openssl-shell/openssl/test.
*** Error code 1

Stop in /usr/home/build/b64/openssl-shell/openssl.

$ cd test/tsa/
$ gdb ../../apps/openssl openssl.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "amd64-marcel-freebsd"...
Core was generated by `openssl'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from ../../util/../libcrypto.so.0.9.8...done.
Loaded symbols for ../../util/../libcrypto.so.0.9.8
Reading symbols from ../../util/../libssl.so.0.9.8...done.
Loaded symbols for ../../util/../libssl.so.0.9.8
Reading symbols from /lib/libz.so.3...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/lib/libpthread.so.2...done.
Loaded symbols for /usr/lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x0000000800d6e466 in memcpy () from /lib/libc.so.6
[New LWP 100161]
(gdb) bt
#0 0x0000000800d6e466 in memcpy () from /lib/libc.so.6
#1 0x0000000800770a5e in asn1_ex_i2c (pval=0x61d708,
cout=0x61d708 "IxMVoXDTA5MDcxMjE2MjIxMVowRDELMAkGA1UEBhMCSFUx\nET APBgNVBAgTCEJ1ZGFwZXN0MRQwEgYDVQQKEwtHb3YtQ0EgTHRk LjEMMAoGA1UE\nAxMDY2ExMIGfMA0GCSqGSIb3DQEBAQUAA4GN ADCBiQKBgQDOfD7M8XohD/fO5Uwt\nnEB9IzrcbhUDmZ/VvV/9/ZS"...,
putype=0x80, it=0x10) at tasn_enc.c:688
#2 0x0000000800770c9d in ASN1_item_ex_i2d (pval=0x61b828, out=0x7fffffffc2e0,
it=0x8008eef00, tag=4, aclass=0) at tasn_enc.c:551
#3 0x0000000800771343 in asn1_template_ex_i2d (pval=0x61b828,
out=0x7fffffffc2e0, tt=0x8008f5cc8, tag=16, iclass=128) at tasn_enc.c:413
#4 0x0000000800770fa3 in ASN1_item_ex_i2d (pval=0x7fffffffbfd8,
out=0x7fffffffc2e0, it=0x8008f5620, tag=9395440, aclass=0)
at tasn_enc.c:249
#5 0x0000000800771250 in asn1_template_ex_i2d (pval=0x6243c0,
out=0x7fffffffc2e0, tt=0x8008f5620, tag=16, iclass=128) at tasn_enc.c:467
#6 0x0000000800770fa3 in ASN1_item_ex_i2d (pval=0x61b720, out=0x7fffffffc2e0,
it=0x8008f56a0, tag=9395728, aclass=0) at tasn_enc.c:249
#7 0x0000000800771312 in asn1_template_ex_i2d (pval=0x61b720,
out=0x7fffffffc2e0, tt=0x8008f5ef8, tag=16, iclass=128) at tasn_enc.c:404
#8 0x0000000800770fa3 in ASN1_item_ex_i2d (pval=0x621868, out=0x7fffffffc2e0,
it=0x8008f56e0, tag=9395824, aclass=0) at tasn_enc.c:249
#9 0x0000000800771343 in asn1_template_ex_i2d (pval=0x621868,
out=0x7fffffffc2e0, tt=0x8008f9e28, tag=16, iclass=128) at tasn_enc.c:413
#10 0x0000000800770fa3 in ASN1_item_ex_i2d (pval=0x7fffffffc2a0,
out=0x7fffffffc2e0, it=0x8008f9b20, tag=9412176, aclass=0)
at tasn_enc.c:249
#11 0x00000008007715d6 in ASN1_item_i2d (val=0x61d708, out=0x7fffffffc2e0,
it=0x8008f9b20) at tasn_enc.c:120
#12 0x0000000800768b07 in ASN1_i2d_bio (i2d=0x8007b0660 ,
out=0x5ff280, x=0x621860 "А\035b") at a_i2d_fp.c:99
#13 0x000000000045074c in ts_main (argc=5717248, argv=0x0) at ts.c:735
#14 0x000000000041578f in do_cmd (prog=0x573a00, argc=8, argv=0x7fffffffda48)
at openssl.c:389
#15 0x00000000004160ca in main (Argc=9, Argv=0x7fffffffda40) at openssl.c:304


--
Artem Chuprina
RFC2822: Jabber: ran@jabber.ran.pp.ru

Правки Белявского, сделанные им в рабочей копии головы
Из коммитлога.

__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org