3.7.1p2 on OpenBSD 2.8/sparc

Scott Lipcon slipcon at mercea.net
Tue Sep 30 22:55:40 EST 2003


Hello,

I'm trying to compile openssh 3.7.1p2 on a sparc 5 running OpenBSD
2.8.  

I compiled and installed OpenSSL 0.9.7b, and the tests all pass
without error.  

I configured openssh with --with-ssl-dir=/usr/local/ssl and ssh
compiles fine, however when it attepts to make a rsa1 key, ssh-keygen
core dumps:

oldyeek# make host-key
(cd openbsd-compat && make)
gcc -o ssh-keygen ssh-keygen.o -L. -Lopenbsd-compat/
-L/usr/local/ssl/lib -lssh -lopenbsd-compat -lutil -lz  -lcrypto
Generating public/private rsa1 key pair.
Memory fault (core dumped) 
*** Error code 139

Stop in /usr/local/src/openssh-3.7.1p2 (line 326 of Makefile).

the same thing happens if I run the ssh-keygen command by hand:

oldyeek# ./ssh-keygen -t rsa1 -f ssh_host_key -N ""
Generating public/private rsa1 key pair.
zsh: segmentation fault (core dumped)  ./ssh-keygen -t rsa1 -f
ssh_host_key -N 

Ths dsa and rsa keys generate fine - its just the rsa1 key with a
problem.  Running ssh-keygen through gdb, I get:

(gdb) run -t rsa1 -f ssh_host_key -N ""
Starting program: /usr/local/src/openssh-3.7.1p2/./ssh-keygen -t rsa1
-f ssh_host_key -N ""
Generating public/private rsa1 key pair.

Program received signal SIGSEGV, Segmentation fault.
0x1c338 in BN_num_bits ()
(gdb) bt
#0  0x1c338 in BN_num_bits ()
#1  0x5d9c in key_save_private_rsa1 (key=0xd0600, filename=0xcaec8
"ssh_host_key", passphrase=0xd0670 "", 
    comment=0xf7fff2f8 "root at oldyeek.mercea.net") at authfile.c:124
#2  0x617c in key_save_private (key=0xd0600, filename=0xcaec8
"ssh_host_key", passphrase=0xd0670 "", 
    comment=0xf7fff2f8 "root at oldyeek.mercea.net") at authfile.c:209
#3  0x58e8 in main (ac=7, av=0xcaec8) at ssh-keygen.c:1095


Any ideas?   the bn_tests for openssl did pass, so I'm not sure if
this is a openssh or openssl problem.

Please cc me on any replies -
Thanks,

Scott








More information about the openssh-unix-dev mailing list