Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2017 00:30:47 +0200 (CEST)
From:      Martin MATO <martin.mato@orange.fr>
To:        FreeBSD <freebsd-stable@freebsd.org>
Subject:   Re: 11.0 and tw_cli fail
Message-ID:  <731703634.18333.1496183447919.JavaMail.www@wwinf1g18>
In-Reply-To: <CAOtMX2hSp56KOhYxyhWF16ORXw_upV10A1B1KwNvJvPpTKi=MA@mail.gmail.com>
References:  <CAPjUTPMPN3bCGvqGm9zrbUdWS_Ua-JOGmpRn5QAJFr5N2h_ijQ@mail.gmail.com> <CAOtMX2hSp56KOhYxyhWF16ORXw_upV10A1B1KwNvJvPpTKi=MA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
=C2=A0

>From my experience;

=C2=A0

I posess one 9650se card 12 ports with a computer build with freeBSD=20

with a custom kernel build.

i haved this particular error one day (it uses old mmap calls, which have r=
emoved=C2=A0 some time ago)

=C2=A0

you can see why it fails by invoking the tw_cli after the truss(1) command

=C2=A0

# truss tw_cli
readlink("/etc/malloc.conf",0x7fffffffea50,63)=C2=A0=C2=A0 ERR#2 'No such f=
ile or directory'
issetugid()=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 =3D 0 (0x0)
compat6.mmap(0x0,0x1000,0x3,0x1002,0xffffffff,0x0,0x0) =3D 34366898176 (0x8=
006d4000)
break(0x78f000)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 0 (0x0)
break(0x790000)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 0 (0x0)
break(0x791000)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 0 (0x0)
sysarch(AMD64_SET_FSBASE,0x7fffffffeb10)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 =3D 0 (0x0)
----snip----

=C2=A0

the tw_cli utility worked again=C2=A0 with COMPAT_FREEBSD6 compiled in the =
kernel

and the compat libraries from the same version also installed...

=C2=A0

this two things solved this very particular problem; for me at least.

=C2=A0

hope=C2=A0 it helps you.

=C2=A0

Regards.

=C2=A0

> Message du 30/05/17 23:34
> De : "Alan Somers"=20
> A : "CBL"=20
> Copie =C3=A0 : "FreeBSD"=20
> Objet : Re: 11.0 and tw_cli fail
>=20
> Was the tw_cli utility built for FreeBSD 10? If so, you need to
> either rebuilt it, or build your kernel with COMPAT_FREEBSD10 in the
> config file. It's in the GENERIC config file, so you'll have it if
> you don't use a custom kernel.
> -Alan
>=20
> On Tue, May 30, 2017 at 3:19 PM, CBL  wrote:
> > Updated a box to 11.0 with a legacy 3ware 9690SA using the twe driver.
> > Now the tw_cli utility is now throwing "Bad system call (core dumped).
> >
> > Anybody have any suggestions? Was working fine on 10.3.
> >
> > Thanks
> > _______________________________________________
> > freebsd-stable@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.or=
g"
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
>
From owner-freebsd-stable@freebsd.org  Tue May 30 22:40:51 2017
Return-Path: <owner-freebsd-stable@freebsd.org>
Delivered-To: freebsd-stable@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 56367BF010E
 for <freebsd-stable@mailman.ysv.freebsd.org>;
 Tue, 30 May 2017 22:40:51 +0000 (UTC)
 (envelope-from gpalmer@freebsd.org)
Received: from mail.in-addr.com (mail.in-addr.com
 [IPv6:2a01:4f8:191:61e8::2525:2525])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 221867DD36;
 Tue, 30 May 2017 22:40:51 +0000 (UTC)
 (envelope-from gpalmer@freebsd.org)
Received: from gjp by mail.in-addr.com with local (Exim 4.89 (FreeBSD))
 (envelope-from <gpalmer@freebsd.org>)
 id 1dFpom-0003Jk-Sz; Tue, 30 May 2017 23:40:48 +0100
Date: Tue, 30 May 2017 23:40:48 +0100
From: Gary Palmer <gpalmer@freebsd.org>
To: CBL <alandaluz@gmail.com>
Cc: Alan Somers <asomers@freebsd.org>, FreeBSD <freebsd-stable@freebsd.org>
Subject: Re: 11.0 and tw_cli fail
Message-ID: <20170530224048.GA51893@in-addr.com>
References: <CAPjUTPMPN3bCGvqGm9zrbUdWS_Ua-JOGmpRn5QAJFr5N2h_ijQ@mail.gmail.com>
 <CAOtMX2hSp56KOhYxyhWF16ORXw_upV10A1B1KwNvJvPpTKi=MA@mail.gmail.com>
 <CAPjUTPPQy6syOPgJqVJLO6-L=bS2_AkN5dq2yqp_DG3hWifYCw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAPjUTPPQy6syOPgJqVJLO6-L=bS2_AkN5dq2yqp_DG3hWifYCw@mail.gmail.com>
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Mail-From: gpalmer@freebsd.org
X-SA-Exim-Scanned: No (on mail.in-addr.com); SAEximRunCond expanded to false
X-BeenThere: freebsd-stable@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Production branch of FreeBSD source code <freebsd-stable.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-stable>, 
 <mailto:freebsd-stable-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-stable/>;
List-Post: <mailto:freebsd-stable@freebsd.org>
List-Help: <mailto:freebsd-stable-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-stable>,
 <mailto:freebsd-stable-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 30 May 2017 22:40:51 -0000


% file tw_cli
tw_cli: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically linked, for FreeBSD 5.4, stripped

Try COMPAT_FREEBSD5

Regards,

Gary

On Tue, May 30, 2017 at 03:55:03PM -0600, CBL wrote:
> Yeah, I have a custom kernel with COMPAT_FREEBSD10 already in it and no
> joy. However, I checked GENERIC and it works. Then I tried COMPAT_FREEBSD9
> too and no go.. guess I'll keep playing.
> 
> On Tue, May 30, 2017 at 3:33 PM, Alan Somers <asomers@freebsd.org> wrote:
> 
> > Was the tw_cli utility built for FreeBSD 10?  If so, you need to
> > either rebuilt it, or build your kernel with COMPAT_FREEBSD10 in the
> > config file.  It's in the GENERIC config file, so you'll have it if
> > you don't use a custom kernel.
> > -Alan
> >
> > On Tue, May 30, 2017 at 3:19 PM, CBL <alandaluz@gmail.com> wrote:
> > > Updated a box to 11.0 with a legacy 3ware 9690SA using the twe driver.
> > > Now the tw_cli utility is now throwing "Bad system call (core dumped).
> > >
> > > Anybody have any suggestions?  Was working fine on 10.3.
> > >
> > > Thanks
> > > _______________________________________________
> > > freebsd-stable@freebsd.org mailing list
> > > https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> > > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org
> > "
> >
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> 



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