From owner-freebsd-stable Tue Sep 10 19:18:51 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 307BD37B410 for ; Tue, 10 Sep 2002 19:18:46 -0700 (PDT) Received: from alcanet.com.au (mail3.alcanet.com.au [208.178.117.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF67543E3B for ; Tue, 10 Sep 2002 19:18:44 -0700 (PDT) (envelope-from peter.jeremy@alcatel.com.au) Received: from sydsmtp01.alcatel.com.au (IDENT:root@localhost.localdomain [127.0.0.1]) by alcanet.com.au (8.12.4/8.12.4/Alcanet1.3) with ESMTP id g8B2IZRS016421; Wed, 11 Sep 2002 12:18:36 +1000 Received: from gsmx07.alcatel.com.au ([139.188.20.247]) by sydsmtp01.alcatel.com.au (Lotus Domino Release 5.0.10) with ESMTP id 2002091112183536:8074 ; Wed, 11 Sep 2002 12:18:35 +1000 Received: from gsmx07.alcatel.com.au (localhost [127.0.0.1]) by gsmx07.alcatel.com.au (8.12.5/8.12.5) with ESMTP id g8B2IZ2t092782; Wed, 11 Sep 2002 12:18:35 +1000 (EST) (envelope-from peter.jeremy@alcatel.com.au) Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.12.5/8.12.5/Submit) id g8B2IZdH092781; Wed, 11 Sep 2002 12:18:35 +1000 (EST) (envelope-from peter.jeremy@alcatel.com.au) Date: Wed, 11 Sep 2002 12:18:34 +1000 From: Peter Jeremy To: John Polstra Cc: stable@FreeBSD.ORG Subject: Re: Malloc backwards compat problem in stable as of yesterday ? Message-ID: <20020911021834.GA92749@gsmx07.alcatel.com.au> Mail-Followup-To: John Polstra , stable@FreeBSD.ORG References: <20020820222727.GC407@axiom.niw.com.au> <200208210155.g7L1tiJx083675@vashon.polstra.com> Mime-Version: 1.0 In-Reply-To: <200208210155.g7L1tiJx083675@vashon.polstra.com> User-Agent: Mutt/1.4i X-MIMETrack: Itemize by SMTP Server on SYDSMTP01/AlcatelAustralia(Release 5.0.10 |March 22, 2002) at 11/09/2002 12:18:35 PM, Serialize by Router on SYDSMTP01/AlcatelAustralia(Release 5.0.10 |March 22, 2002) at 11/09/2002 12:18:37 PM, Serialize complete at 11/09/2002 12:18:37 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-Aug-20 18:55:44 -0700, John Polstra wrote: >Yes, and what a pain! For any program linked against a recent >libc but run against a slightly older one, malloc fails on >all calls. I looked into it a bit, and found that sbrk() is >returning garbage. I'm fairly certain the cause was this commit to >"src/lib/libc/i386/sys/sbrk.S": > > revision 1.7.2.1 > date: 2002/08/12 14:23:29; author: kan; state: Exp; lines: +3 -3 > MFC 1.11: Use '_end' symbol instead of 'end' to initialize minbrk > and curbrk variables. > > Approved by: obrien Having also been bitten by this one... I initially worked around it by upgrading my systems to be recent enough to avoid the problem. But I've now worked myself into a bit of a corner: My development systems all have sbrk.S v1.7.2.1 but I have a need to install a binary onto some older -stable machines - which I can't afford to upgrade at present. Any suggestions on a work-around other than static linking? Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message