Bug 31683

Summary: ssh-keygen dumps core when changing a dsa passphrase
Product: Base System Reporter: bnjf <bnjf>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description bnjf 2001-11-01 06:30:01 UTC
ssh-keygen dumps core when attempting to change a passphrase for a dsa key.

Fix: 

% gdb =ssh-keygen ssh-keygen.core
GNU gdb 4.18
Copyright 1998 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-unknown-freebsd"...(no debugging symbols found)...
Core was generated by `ssh-keygen'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libcrypto.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols found)...done.
#0  0x28199d5a in vfprintf () from /usr/lib/libc.so.4
(gdb) bt
#0  0x28199d5a in vfprintf () from /usr/lib/libc.so.4
#1  0x2818710c in printf () from /usr/lib/libc.so.4
#2  0x804b1f8 in sigprocmask ()
#3  0x804ba34 in sigprocmask ()
#4  0x804a215 in sigprocmask ()
(gdb)
How-To-Repeat: ssh-keygen -t dsa -p
Comment 1 Peter Pentchev freebsd_committer freebsd_triage 2002-01-06 21:11:06 UTC
State Changed
From-To: open->feedback

Does the patch in the audit trail of PR bin/32175 fix the coredump for you?
Comment 2 Peter Pentchev 2002-01-21 08:18:41 UTC
Adding this to the audit trail..

G'luck,
Peter

-- 
Hey, out there - is it *you* reading me, or is it someone else?

----- Forwarded message from Brad Forschinger <bnjf@optushome.com.au> -----

Date: Mon, 21 Jan 2002 10:18:39 +1100
From: Brad Forschinger <bnjf@optushome.com.au>
To: roam@FreeBSD.org
Cc: bnjf@optushome.com.au, freebsd-bugs@FreeBSD.org
Subject: Re: bin/31683: ssh-keygen dumps core when changing a dsa passphrase

On Sun, Jan 06, 2002 at 01:11:38PM -0800, roam@FreeBSD.org wrote:
> Does the patch in the audit trail of PR bin/32175 fix the coredump for you?

yep!

% ssh-keygen -t dsa -p
Enter file in which the key is (/home/bradf/.ssh/id_dsa):
Key has comment 'dsa w/o comment'
Enter new passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved with the new passphrase.
% ssh-keygen -t dsa -p
Enter file in which the key is (/home/bradf/.ssh/id_dsa):
Enter old passphrase:
Key has comment 'dsa w/o comment'
Enter new passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved with the new passphrase.
%

-- 
Brad Forschinger <bnjf@optushome.com.au>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message


----- End forwarded message -----
Comment 3 Peter Pentchev freebsd_committer freebsd_triage 2002-01-21 08:20:20 UTC
State Changed
From-To: feedback->closed

Brian Feldman, the FreeBSD OpenSSH maintainer, will soon MFC 
the patch in PR bin/32175 which fixes this problem. 

Thank you for the problem report!