Bug 39

Summary: segmentation violations & bus errors
Product: Portable OpenSSH Reporter: Lyndon Van Wagner <lyndon.vanwagner>
Component: ssh-keygenAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P3    
Version: -current   
Hardware: All   
OS: Other   

Description Lyndon Van Wagner 2001-12-12 01:19:18 AEDT
This problem has existed in both v3.0.1p1 and v3.0.2p1.  And in both Solaris 6 
and 8, at least on old sun4m (Super SPARC machines).  The problem occurs when 
trying to build DSA keys with ssh-keygen.  You get either a segmentation 
violation or a bus error.  

Actually, I've narrowed the problem to the OpenSSL code for DSA keys.  I've 
fixed it locally by initializing all automatic variables in mem.c, dsa_gen.c, 
and dsa_key.c.  Also using calloc instead of malloc.  And increase buffer 
allocations by 1.

I've also had similar problems with running the ssh client.  And had to repair 
the OpenSSL code in the DH module.

Just thought you might want to check it out.

--Lyndon
Comment 1 Damien Miller 2001-12-12 12:27:51 AEDT
Please send debugger traces and verify that you have not old OpenSSL headers
lying around
Comment 2 Damien Miller 2002-01-14 19:59:30 AEDT
Please also try the latest patch release (0.9.6c) of OpenSSL
Comment 3 Kevin Steves 2002-04-05 19:58:11 AEST
is this still an open issue?
Comment 4 Lyndon Van Wagner 2002-04-06 01:56:11 AEST
Sorry, but I don't have time to investigate this futher.  
The source environment I was using is gone now, and I've decided to use the pre-
built binaries from www.sunfreeware.org instead.  But thanks anyways
Comment 5 Damien Miller 2004-04-14 12:24:17 AEST
Mass change of RESOLVED bugs to CLOSED