NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/56318: sshd fails to start on NetBSD/pmax 9.2 R3000 3MIN



The following reply was made to PR lib/56318; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: lib/56318: sshd fails to start on NetBSD/pmax 9.2 R3000 3MIN
Date: Tue, 10 Aug 2021 02:25:35 +0900

 This also happens on SPARC station 2 (sun4c) + NetBSD/sparc 9.2:
 
 ---
 ss2-% ssh-keygen
 Generating public/private rsa key pair.
 assertion "(*wnumtop) == 0" failed: file "/usr/src/crypto/external/bsd/openssl/dist/crypto/bn/bn_div.c", line 439, function "bn_div_fixed_top"
 Abort (core dumped)
 ss2-% gdb /usr/bin/ssh-keygen ssh-keygen.core
 GNU gdb (GDB) 8.3
 Copyright (C) 2019 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.
 Type "show copying" and "show warranty" for details.
 This GDB was configured as "sparc--netbsdelf".
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>.
 Find the GDB manual and other documentation resources online at:
     <http://www.gnu.org/software/gdb/documentation/>.
 
 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 
 warning: ../../../../gdbscripts/bdump: No such file or directory
 
 warning: ../../../../gdbscripts/cpus: No such file or directory
 
 warning: ../../../../gdbscripts/kdump: No such file or directory
 
 warning: ../../../../gdbscripts/lwps: No such file or directory
 
 warning: ../../../../gdbscripts/msgbuf: No such file or directory
 
 warning: ../../../../gdbscripts/pgrpdump: No such file or directory
 
 warning: ../../../../gdbscripts/procs: No such file or directory
 
 warning: ../../../../gdbscripts/vchain: No such file or directory
 
 warning: ../../../../gdbscripts/vdump: No such file or directory
 Reading symbols from /usr/bin/ssh-keygen...
 Reading symbols from /usr/libdata/debug//usr/bin/ssh-keygen.debug...
 [New process 1]
 Core was generated by `ssh-keygen'.
 Program terminated with signal SIGABRT, Aborted.
 #0  abort () at /usr/src/lib/libc/stdlib/abort.c:80
 80              (void)signal(SIGABRT, SIG_DFL);
 (gdb) bt
 #0  abort () at /usr/src/lib/libc/stdlib/abort.c:80
 #1  0xeda19fc8 in __assert13 (
     file=0xedda9630 "/usr/src/crypto/external/bsd/openssl/dist/crypto/bn/bn_div.c", line=line@entry=439, function=<optimized out>,
     failedexpr=0xedda9670 "(*wnumtop) == 0")
     at /usr/src/lib/libc/gen/assert.c:72
 #2  0xedd466e0 in bn_div_fixed_top (dv=dv@entry=0x0, rm=rm@entry=0xed8c820c,
     num=num@entry=0xefffe69c, divisor=divisor@entry=0xed8c81f8,
     ctx=ctx@entry=0xedeb6150)
     at /usr/src/crypto/external/bsd/openssl/dist/crypto/bn/bn_div.c:439
 #3  0xedd46744 in BN_div (dv=dv@entry=0x0, rm=rm@entry=0xed8c820c,
     num=num@entry=0xefffe69c, divisor=divisor@entry=0xed8c81f8,
     ctx=ctx@entry=0xedeb6150)
     at /usr/src/crypto/external/bsd/openssl/dist/crypto/bn/bn_div.c:229
 #4  0xedd45a08 in BN_nnmod (r=r@entry=0xed8c820c, m=m@entry=0xefffe69c,
     d=d@entry=0xed8c81f8, ctx=ctx@entry=0xedeb6150)
     at /usr/src/crypto/external/bsd/openssl/dist/crypto/bn/bn_mod.c:20
 #5  0xedd44d28 in bn_mod_inverse_no_branch (pnoinv=0xefffe714, ctx=0xedeb6150,
     n=0xefffe784, a=<optimized out>, in=0xed8c81e4)
     at /usr/src/crypto/external/bsd/openssl/dist/crypto/bn/bn_gcd.c:67
 #6  int_bn_mod_inverse (in=0xed8c81e4, a=<optimized out>, n=0xefffe784,
     ctx=0xedeb6150, pnoinv=0xefffe714)
     at /usr/src/crypto/external/bsd/openssl/dist/crypto/bn/bn_gcd.c:214
 #7  0xedd45630 in BN_mod_inverse (in=in@entry=0xed8c81e4,
     a=a@entry=0xedb46144, n=n@entry=0xefffe784, ctx=ctx@entry=0xedeb6150)
     at /usr/src/crypto/external/bsd/openssl/dist/crypto/bn/bn_gcd.c:528
 #8  0xedd44a80 in BN_MONT_CTX_set (mont=mont@entry=0xedb46140,
     mod=mod@entry=0xedec20a0, ctx=ctx@entry=0xedeb6150)
     at /usr/src/crypto/external/bsd/openssl/dist/crypto/bn/bn_mont.c:351
 #9  0xedcfc06c in BN_is_prime_fasttest_ex (a=0xedec20a0,
     checks=<optimized out>, ctx_passed=0xedeb6150,
     do_trial_division=<optimized out>, cb=0x0)
     at /usr/src/crypto/external/bsd/openssl/dist/crypto/bn/bn_prime.c:215
 #10 0xedcfc784 in BN_generate_prime_ex (ret=ret@entry=0xedec20a0,
     bits=bits@entry=1536, safe=safe@entry=0, add=<optimized out>,
     add@entry=0x0, rem=rem@entry=0x0, cb=<optimized out>, cb@entry=0x0)
     at /usr/src/crypto/external/bsd/openssl/dist/crypto/bn/bn_prime.c:104
 #11 0xedc7b694 in rsa_builtin_keygen (cb=0x0, e_value=<optimized out>,
     primes=<optimized out>, bits=<optimized out>, rsa=0xedbba0c0)
     at /usr/src/crypto/external/bsd/openssl/dist/crypto/rsa/rsa_gen.c:164
 #12 RSA_generate_multi_prime_key (rsa=0xedbba0c0, bits=<optimized out>,
     primes=<optimized out>, e_value=<optimized out>, cb=0x0)
     at /usr/src/crypto/external/bsd/openssl/dist/crypto/rsa/rsa_gen.c:61
 #13 0xede37de4 in rsa_generate_private_key (rsap=0xedeb2148, bits=3072)
     at /usr/src/crypto/external/bsd/openssh/dist/sshkey.c:1454
 #14 sshkey_generate (type=-56, type@entry=0, bits=3072,
     keyp=keyp@entry=0xefffea98)
     at /usr/src/crypto/external/bsd/openssh/dist/sshkey.c:1607
 #15 0x0001931c in main (argc=<optimized out>, argv=0xeffff7f8)
     at /usr/src/crypto/external/bsd/openssh/dist/ssh-keygen.c:2816
 (gdb)
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index