Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Aug 2013 10:13:02 -0500
From:      Diane Bruce <db@db.net>
To:        Ganbold Tsagaankhuu <ganbold@gmail.com>
Cc:        "freebsd-arm@freebsd.org" <arm@freebsd.org>
Subject:   Re: SSHD crash
Message-ID:  <20130820151302.GA98234@night.db.net>
In-Reply-To: <CAGtf9xPvxVKK=J-iNNNUNzQ67TV2TwiLu_Xg2podsQNSFBBLdA@mail.gmail.com>
References:  <B2BC1D2F-A270-4E37-AF0D-DABF7097F726@freebsd.org> <CAGtf9xPvxVKK=J-iNNNUNzQ67TV2TwiLu_Xg2podsQNSFBBLdA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 23, 2013 at 01:13:58PM +0800, Ganbold Tsagaankhuu wrote:
> On Tue, Jul 23, 2013 at 12:48 PM, Tim Kientzle <kientzle@freebsd.org> wrote:
> 
> > Hope to find time to dig into this later this week, but am seeing
> > a pretty consistent crash in sshd on BeagleBone Black with armv6:
> >
> > $ sshd -d
> > ?. connect from another machine ...
> > ?. usual connection messages, then ...
> > debug1: Local version string SSH-2.0-OpenSSH_6.2 FreeBSD-20130515
> > debug1: permanently_set_uid: 22/22 [preauth]
> > debug1: list_hostkey_types: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256 [preauth]
> > debug1: SSH2_MSG_KEXINIT sent [preauth]
> > debug1: SSH2_MSG_KEXINIT received [preauth]
> > <jemalloc>: jemalloc_arena.c:380: Failed assertion: "p[i] == 0"
> >
> 
> If I'm not mistaken I've seen this recently on mips board(Routerstation
> Pro) too.
> 
> Ganbold


I've continued to poke at this.

My suspicion is this commit.

http://svnweb.freebsd.org/base?view=revision&revision=250991

The failing gdb is using jemalloc, the older revisions are using
our older malloc code. I can confirm this using gdb.

I note that sshd does not fail with ElectricFence malloc as well.

I've suggested the possibility that it is a weird locking error.
Tim and Ian also suggest memory layout problem but I think that's
now less likely.

Ian reports arm6 locking is much simpler than arm4 
Ian also reports sshd works fine with arm4 board he has.
If it is also confirmed there is a problem on mips,
I'd sure love to hear about it.

>From IRC
<cognet> it works fine with my pandaboard, with a world from 07/31

<DamnHippi> I've only tried rpi, bbw, and dreamplug

<ganbold_> db_: I noticed only once or so in routerstation pro, then didn't
+pay much attention to it

> 
> 
> >
> > This is with SVN r253514
> >
> > Completely standard build except for the vm_map.c patch.
> >
> > Tim
> >
> >

- Diane
-- 
- db@FreeBSD.org db@db.net http://www.db.net/~db



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130820151302.GA98234>