On Wed, Feb 17, 2016 at 3:51 AM, Hisashi T Fujinaka <htodd at twofifty.com> wrote:> Sorry, I haven't been paying too much attention here, but I'm having > repeated failures when I tried this morning. > > NetBSD-current: > test_sshkey: ..................................[1] Segmentation fault > (core dumped) ${V} /home/htodd... > *** Error code 139did it produce a core dump? if so, could you feed it to gdb and get a backtrace?> NetBSD-7: > test_hostkeys: > regress/unittests/hostkeys/test_iterate.c:163 test #1 "hostkeys_iterate all > with key parse"I just installed NetBSD 7.0 on a VM ("7.0 NetBSD 7.0 (GENERIC.201509250726Z) amd64") tp try to reproduce this however the tests passed. What architecture is this, and have any changes been made to the system (eg, patches applied)? -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
On Wed, 17 Feb 2016, Darren Tucker wrote:> On Wed, Feb 17, 2016 at 3:51 AM, Hisashi T Fujinaka <htodd at twofifty.com> wrote: >> Sorry, I haven't been paying too much attention here, but I'm having >> repeated failures when I tried this morning. >> >> NetBSD-current: >> test_sshkey: ..................................[1] Segmentation fault >> (core dumped) ${V} /home/htodd... >> *** Error code 139 > > did it produce a core dump? if so, could you feed it to gdb and get a > backtrace?I have the dump but I don't have the executable file (or at least I'm not sure which one it is.)>> NetBSD-7: >> test_hostkeys: >> regress/unittests/hostkeys/test_iterate.c:163 test #1 "hostkeys_iterate all >> with key parse" > > I just installed NetBSD 7.0 on a VM ("7.0 NetBSD 7.0 > (GENERIC.201509250726Z) amd64") tp try to reproduce this however the > tests passed. What architecture is this, and have any changes been > made to the system (eg, patches applied)? > >-- Hisashi T Fujinaka - htodd at twofifty.com BSEE + BSChem + BAEnglish + MSCS + $2.50 = coffee
On Wed, 17 Feb 2016, Darren Tucker wrote:> On Wed, Feb 17, 2016 at 3:51 AM, Hisashi T Fujinaka <htodd at twofifty.com> wrote: >> Sorry, I haven't been paying too much attention here, but I'm having >> repeated failures when I tried this morning. >> >> NetBSD-current: >> test_sshkey: ..................................[1] Segmentation fault >> (core dumped) ${V} /home/htodd... >> *** Error code 139 > > did it produce a core dump? if so, could you feed it to gdb and get a > backtrace?Never mind, I'm being stupid. Here's the backtrace: Core was generated by `test_sshkey'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x000000000041273e in cert_parse (key=0x7f7ff7b120c0, certbuf=0x7f7ff7b16200, b=0x7f7ff7b161b0) at sshkey.c:1896 1896 key->cert->principals[key->cert->nprincipals++] = principal; (gdb) bt #0 0x000000000041273e in cert_parse (key=0x7f7ff7b120c0, certbuf=0x7f7ff7b16200, b=0x7f7ff7b161b0) at sshkey.c:1896 #1 sshkey_from_blob_internal (b=b at entry=0x7f7ff7b161b0, keyp=keyp at entry=0x7f7fffff9030, allow_cert=allow_cert at entry=1) at sshkey.c:2116 #2 0x000000000041291c in sshkey_from_blob (blob=<optimized out>, blen=blen at entry=422, keyp=keyp at entry=0x7f7fffff9030) at sshkey.c:2147 #3 0x0000000000412a75 in sshkey_read (ret=ret at entry=0x7f7ff7b12080, cpp=cpp at entry=0x7f7fffff9090) at sshkey.c:1302 #4 0x0000000000415f5a in sshkey_try_load_public (k=k at entry=0x7f7ff7b12080, filename=0x7f7ff7b16070 "/home/htodd/openssh-portable/regress/unittests/sshkey/testdata/rsa_1-cert.pub", commentp=commentp at entry=0x0) at authfile.c:314 #5 0x0000000000416712 in sshkey_load_cert (filename=<optimized out>, keyp=keyp at entry=0x7f7fffffd140) at authfile.c:419 #6 0x0000000000409f9d in sshkey_tests () at regress/unittests/sshkey/test_sshkey.c:527 #7 0x0000000000405d81 in tests () at regress/unittests/sshkey/tests.c:24 #8 0x000000000042cc4d in main (argc=3, argv=0x7f7fffffd250) at regress/unittests/test_helper/test_helper.c:162>> NetBSD-7: >> test_hostkeys: >> regress/unittests/hostkeys/test_iterate.c:163 test #1 "hostkeys_iterate all >> with key parse" > > I just installed NetBSD 7.0 on a VM ("7.0 NetBSD 7.0 > (GENERIC.201509250726Z) amd64") tp try to reproduce this however the > tests passed. What architecture is this, and have any changes been > made to the system (eg, patches applied)? > >-- Hisashi T Fujinaka - htodd at twofifty.com BSEE + BSChem + BAEnglish + MSCS + $2.50 = coffee
On Wed, Feb 17, 2016 at 12:54 PM, Hisashi T Fujinaka <htodd at twofifty.com> wrote:> On Wed, 17 Feb 2016, Darren Tucker wrote:[...]>> did it produce a core dump? if so, could you feed it to gdb and get a >> backtrace? > > I have the dump but I don't have the executable file (or at least I'm > not sure which one it is.)"file core" will usually tell you. from the output, it's probably regress/unittests/sshkey/test_sshkey. -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
On Tue, 16 Feb 2016, Hisashi T Fujinaka wrote:> On Wed, 17 Feb 2016, Darren Tucker wrote: > > > On Wed, Feb 17, 2016 at 3:51 AM, Hisashi T Fujinaka <htodd at twofifty.com> > > wrote: > > > Sorry, I haven't been paying too much attention here, but I'm having > > > repeated failures when I tried this morning. > > > > > > NetBSD-current: > > > test_sshkey: ..................................[1] Segmentation fault > > > (core dumped) ${V} /home/htodd... > > > *** Error code 139 > > > > did it produce a core dump? if so, could you feed it to gdb and get a > > backtrace? > > Never mind, I'm being stupid. Here's the backtrace: > > Core was generated by `test_sshkey'. > Program terminated with signal SIGSEGV, Segmentation fault. > #0 0x000000000041273e in cert_parse (key=0x7f7ff7b120c0, > certbuf=0x7f7ff7b16200, b=0x7f7ff7b161b0) at sshkey.c:1896 > 1896 key->cert->principals[key->cert->nprincipals++] > principal;Could you do a "print *key->cert" to see what is going wrong here? Thanks, Damien