Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Dec 2011 20:54:27 +0100
From:      Yamagi Burmeister <lists@yamagi.org>
To:        kostikbel@gmail.com
Cc:        freebsd-current@freebsd.org, julian@elischer.org
Subject:   Re: running old binaries on -current
Message-ID:  <20111204205427.f0989300.lists@yamagi.org>
In-Reply-To: <20100702184426.GW13238@deviant.kiev.zoral.com.ua>
References:  <4C2E2BFD.1030204@elischer.org> <20100702184426.GW13238@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Sun__4_Dec_2011_20_54_27_+0100_aeM58VjxTMJ7ni0n
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, 2 Jul 2010 21:44:26 +0300
Kostik Belousov <kostikbel@gmail.com> wrote:

> On Fri, Jul 02, 2010 at 11:12:13AM -0700, Julian Elischer wrote:
> > every now and then, for fun I run up a chroot of freebsd 1.1. or 1.0=20
> > under a chroot.  Usually hillarity ensues with teh 15 second kernel=20
> > compile and the 4 minute make world.
> >=20
> > in -current I can't do that any more.. any binary just exits with 'Abor=
t'.
> >=20
> > I think I last tried it in 7.0 or there abouts.
> >=20
> > I have options COMPAT_AOUT and COMPAT_FREEBSD4 through COMPAT_FREEBSD7
> >=20
> > does anyone else have any ideas as to what may be needed?
> >=20
> > I vaguely remember another option but I am not seeing it at the moment.
> >=20
> > For those of you who do not remember, 1.0 had a.out static binaries onl=
y.
> >=20
>=20
> Can you ktrace/kdump the run attempt, I suspect that abort is
> sent by image activator.
>=20
> Also, please put some static binary somewhere to download.

Hi,
digging around I found one of the first programs ever written. It's an
static aout binary from 1994 or so, running it on FreeBSD 8.2 shows
exactly this problem. Some more extensive tests narrowed this problem
down to FreeBSD 1.x binaries, they're all broken. FreeBSD 2 aout
binaries are still working.=20
Since Google found this rather old thread I decided to provide the data
your requested, but I do not insist on a fix. I guess that nobody will
try to run FreeBSD 1.x binaries these day... So if you want to spend
some work on this I'll test patches but if you decide to do nothing
it's okay.

This is the /bin/sh of FreeBSD 1.0 (taken from the official
installation cd image f=FCr i386):

% file sh
sh: VAX demand paged pure executable

% ./sh
Abort

The ktrace / kdump:
  1065 ktrace   RET   ktrace 0
  1065 ktrace   CALL  execve(0xbfbfee1b,0xbfbfecf8,0xbfbfed00)
  1065 ktrace   NAMI  "./sh"

I've uploaded the binary to:
http://deponie.yamagi.org/freebsd/tmp/sh_freebsd1

Thanks,
Yamagi

--=20
Homepage:  www.yamagi.org
XMPP:      yamagi@yamagi.org
GnuPG/GPG: 0xEFBCCBCB

--Signature=_Sun__4_Dec_2011_20_54_27_+0100_aeM58VjxTMJ7ni0n
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iEYEARECAAYFAk7bz/gACgkQWTjlg++8y8seswCeMEdxBzGv0IQiLHBHos0SFLtx
5LAAnj9DRPeG+lf4WH3g/FU3mJbkJ5f9
=BHto
-----END PGP SIGNATURE-----

--Signature=_Sun__4_Dec_2011_20_54_27_+0100_aeM58VjxTMJ7ni0n--



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