Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 May 2007 20:54:51 -0000
From:      Chris Dionissopoulos <dionch@freemail.gr>
To:        Larry Rosenman <ler@lerctr.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re[2]: PINE: SIG 6
Message-ID:  <12710698595.20070519232256@freemail.gr>
In-Reply-To: <B86D4453-6748-4AA2-BCB6-ED3D622DFFE0@lerctr.org>
References:  <299DD8FD-0E7A-4E3D-9902-2C7FE45AA7BC@lerctr.org> <20070519141503.07e94a36@kan.dnsalias.net> <E3B706CD-FBD7-45A3-B3D3-1AB8BE2DA2A3@lerctr.org> <20070519143105.65072348@kan.dnsalias.net> <9F2A10A0-2B58-4BE4-8DD0-9D7811B6BCE6@lerctr.org> <20070519155919.453081a5@kan.dnsalias.net> <8F80AFD4-C83E-413F-8158-CFD27453AE87@lerctr.org> <B86D4453-6748-4AA2-BCB6-ED3D622DFFE0@lerctr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Larry,

Saturday, May 19, 2007, 11:04:41 PM, you wrote:

> On May 19, 2007, at 3:02 PM, Larry Rosenman wrote:

>>               
>> On May 19, 2007, at 2:59 PM, Alexander Kabaev wrote:
>>
>>> Now, you need to know contents of s, s->session, session- 
>>> >sess_cert and


It seems that libssl/libcrypto are broken in -CURRENT just after GCC 4.2 import.
Binaries using these libs produce core in my core2duo (current).
i.e. apache2+ssl , postfix(tls) , and portsnap are some of them.

How to reproduce:

mail# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
Fetching snapshot tag from portsnap3.FreeBSD.org... Illegal instruction (core dumped)
invalid snapshot tag.
Fetching snapshot tag from portsnap1.FreeBSD.org... Illegal instruction (core dumped)
invalid snapshot tag.
Fetching snapshot tag from portsnap2.FreeBSD.org... Illegal instruction (core dumped)
invalid snapshot tag.
No mirrors remaining, giving up.

mail# ll /var/db/portsnap/openssl.core
-rw-------  1 root  wheel  1859584 May 19 23:10 /var/db/portsnap/openssl.core

mail# gdb -c openssl.core /usr/bin/openssl
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 "i386-marcel-freebsd"...
Core was generated by `openssl'.
Program terminated with signal 4, Illegal instruction.
Reading symbols from /usr/lib/libssl.so.5...done.
Loaded symbols for /usr/lib/libssl.so.5
Reading symbols from /lib/libcrypto.so.5...done.
Loaded symbols for /lib/libcrypto.so.5
Reading symbols from /lib/libthr.so.2...done.
Loaded symbols for /lib/libthr.so.2
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x281d2d26 in PEM_read_bio_PUBKEY (bp=0x284050c0, x=0x0, cb=0x8086025 <password_callback>, u=0xbfbfe6e4) at pem_all.c:248
248     static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey)
[New Thread 0x28401100 (LWP 100064)]
(gdb) bt
#0  0x281d2d26 in PEM_read_bio_PUBKEY (bp=0x284050c0, x=0x0, cb=0x8086025 <password_callback>, u=0xbfbfe6e4) at pem_all.c:248
#1  0x080853ad in load_pubkey (err=0x28405040, file=0xbfbfedb9 "pub.ssl", format=3, maybe_stdin=0, pass=0x0, e=0x0, key_descrip=0x8099039 "Public Key") at apps.c:974
#2  0x0806ced3 in rsautl_main (argc=0, argv=0xbfbfecbc) at rsautl.c:194
#3  0x080556f9 in do_cmd (prog=0x28406260, argc=5, argv=0xbfbfecac) at openssl.c:382
#4  0x08055da1 in main (Argc=-1077941080, Argv=0x2825daf9) at openssl.c:301
(gdb) q

Something ugly lives inside these libs.

Chris.


p.s. all binaries builded with sources cvsed 2 hours ago.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?12710698595.20070519232256>