From nobody@FreeBSD.org  Wed Oct 31 22:23:32 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 4C1E437B405
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 31 Oct 2001 22:23:32 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id fA16NWd83957;
	Wed, 31 Oct 2001 22:23:32 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200111010623.fA16NWd83957@freefall.freebsd.org>
Date: Wed, 31 Oct 2001 22:23:32 -0800 (PST)
From: brad forschinger <bnjf@optushome.com.au>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ssh-keygen dumps core when changing a dsa passphrase
X-Send-Pr-Version: www-1.0

>Number:         31683
>Category:       bin
>Synopsis:       ssh-keygen dumps core when changing a dsa passphrase
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 31 22:30:01 PST 2001
>Closed-Date:    Mon Jan 21 00:20:20 PST 2002
>Last-Modified:  Mon Jan 21 00:21:49 PST 2002
>Originator:     brad forschinger
>Release:        4.4-stable
>Organization:
>Environment:
FreeBSD betwixt.uliginous.dyndns.org 4.4-STABLE FreeBSD 4.4-STABLE #15: Sun Sep 16 18:34:01 EST 2001     bradf@betwixt.uliginous.dyndns.org:/usr/src/sys/compile/BETWIXT  i386

>Description:
ssh-keygen dumps core when attempting to change a passphrase for a dsa key.
>How-To-Repeat:
ssh-keygen -t dsa -p
>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) 

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: roam 
State-Changed-When: Sun Jan 6 13:11:06 PST 2002 
State-Changed-Why:  
Does the patch in the audit trail of PR bin/32175 fix the coredump for you? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31683 

From: Peter Pentchev <roam@ringlet.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/31683: ssh-keygen dumps core when changing a dsa passphrase
Date: Mon, 21 Jan 2002 10:18:41 +0200

 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 -----
State-Changed-From-To: feedback->closed 
State-Changed-By: roam 
State-Changed-When: Mon Jan 21 00:20:20 PST 2002 
State-Changed-Why:  
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! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31683 
>Unformatted:
