From owner-freebsd-current@FreeBSD.ORG Wed Jun 11 23:05:58 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4AE937B401 for ; Wed, 11 Jun 2003 23:05:58 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-169-104-32.dsl.lsan03.pacbell.net [64.169.104.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 056FA43FA3 for ; Wed, 11 Jun 2003 23:05:58 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id B013766BE5; Wed, 11 Jun 2003 23:05:57 -0700 (PDT) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 93C37B34; Wed, 11 Jun 2003 23:05:57 -0700 (PDT) Date: Wed, 11 Jun 2003 23:05:57 -0700 From: Kris Kennaway To: Wiktor Niesiobedzki Message-ID: <20030612060557.GA37441@rot13.obsecurity.org> References: <200306112248.AA655556764@141.com> <20030612045022.GA36033@rot13.obsecurity.org> <20030612051812.GQ48387@mail.evip.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <20030612051812.GQ48387@mail.evip.pl> User-Agent: Mutt/1.4.1i cc: current@freebsd.org cc: Kris Kennaway Subject: Re: adsl/pppoe no longer connecting on 5.1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 06:05:59 -0000 --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 12, 2003 at 07:18:12AM +0200, Wiktor Niesiobedzki wrote: > On Wed, Jun 11, 2003 at 09:50:22PM -0700, Kris Kennaway wrote: > > On Wed, Jun 11, 2003 at 10:48:32PM -0600, Andrew Lankford wrote: > > > >Can you try backing out bsd.sys.mk to r1.26 and rebuild your world a= nd > > > >kernel? Later versions of this file are causing strange problems >w= ith > > > >package builds. > > >=20 > > > I was a little lazy and just backed out bsd.sys.mk to 1.26 as you > > > suggested, rebuilt /usr/lib/ , /usr/include/, and ppp. My kernel is = the > > > same as last time. As a result, ppp's now up and running again. > >=20 > > Thanks, that's actually more useful because it isolates the problem. > > It's probably something in ppp that is misbehaving with CSTD=3Dc99. > >=20 > alloca(3) function is misbehaving in ppp (namely ether.c). Is this a comp= iler > bug? It looks like gcc's inline alloca implementation allocates chunks in larger chunks than the alloca.S implementation does. This (untested) patch should make the alloca.S behaviour match that of gcc. Kris Index: i386/gen/alloca.S =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/home/ncvs/src/lib/libc/i386/gen/alloca.S,v retrieving revision 1.10 diff -u -r1.10 alloca.S --- i386/gen/alloca.S 23 Mar 2002 02:44:18 -0000 1.10 +++ i386/gen/alloca.S 12 Jun 2003 06:00:52 -0000 @@ -47,8 +47,8 @@ popl %edx /* pop return addr */ popl %eax /* pop amount to allocate */ movl %esp,%ecx - addl $3,%eax /* round up to next word */ - andl $0xfffffffc,%eax + addl $15,%eax /* round up to next word */ + andl $0xfffffff0,%eax subl %eax,%esp movl %esp,%eax /* base of newly allocated space */ pushl 8(%ecx) /* copy possible saved registers */ --9jxsPFA5p3P2qPhR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+6BhFWry0BWjoQKURAph9AKCRe+gSYCOmali/4L7rbLuTrr793gCgt+Yh twkTb7t0cEj8+IxGNrMgPsM= =KlR4 -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR--