From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22298 invoked by alias); 23 Jan 2003 19:45:29 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 22261 invoked from network); 23 Jan 2003 19:45:29 -0000 Received: from unknown (HELO deimos.hpl.hp.com) (192.6.19.190) by 172.16.49.205 with SMTP; 23 Jan 2003 19:45:29 -0000 Received: from hplms2.hpl.hp.com (hplms2.hpl.hp.com [15.0.152.33]) by deimos.hpl.hp.com (8.9.3 (PHNE_24419)/HPL-PA Relay) with ESMTP id LAA12024; Thu, 23 Jan 2003 11:45:27 -0800 (PST) Received: from napali.hpl.hp.com (napali.hpl.hp.com [15.4.89.123]) by hplms2.hpl.hp.com (8.10.2/8.10.2 HPL-PA Hub) with ESMTP id h0NJjQK04949; Thu, 23 Jan 2003 11:45:27 -0800 (PST) Received: from napali.hpl.hp.com (napali [127.0.0.1]) by napali.hpl.hp.com (8.12.3/8.12.3/Debian -4) with ESMTP id h0NJjQZw025910; Thu, 23 Jan 2003 11:45:26 -0800 Received: (from davidm@localhost) by napali.hpl.hp.com (8.12.3/8.12.3/Debian -4) id h0NJjQ1Z025906; Thu, 23 Jan 2003 11:45:26 -0800 From: David Mosberger MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <15920.18006.383327.719985@napali.hpl.hp.com> Date: Thu, 23 Jan 2003 19:45:00 -0000 To: Andreas Schwab Cc: libc-hacker@sources.redhat.com Subject: Re: Crash in DT_FINI_ARRAY In-Reply-To: References: Reply-To: davidm@hpl.hp.com X-SW-Source: 2003-01/txt/msg00166.txt.bz2 What platform did it crash on? I'm sure I tested it on ia64 and it worked fine, there (at least it got through the test-suite without visible errors). --david >>>>> On Thu, 23 Jan 2003 14:08:20 +0100, Andreas Schwab s= aid: Andreas> The pointers in DT_FINI_ARRAY are already relocated. Andreas> Andreas. Andreas> 2003-01-23 Andreas Schwab Andreas> * elf/dl-close.c (_dl_close): Don't relocate Andreas> DT_FINI_ARRAY elements. Andreas> --- elf/dl-close.c.~1.93.~ 2003-01-16 11:19:32.000000000 Andreas> +0100 +++ elf/dl-close.c 2003-01-22 21:11:29.000000000 Andreas> +0100 @@ -241,7 +241,7 @@ _dl_close (void *_map) unsigned Andreas> int cnt; =20 Andreas> for (cnt =3D 0; cnt < sz; ++cnt) - ((fini_t) Andreas> (imap->l_addr + array[cnt])) (); + ((fini_t) array[cnt]) Andreas> (); } =20 Andreas> /* Next try the old-style destructor. */ Andreas> -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Andreas> Deutschherrnstr. 15-19, D-90429 N=FCrnberg Key fingerprint =3D Andreas> 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now Andreas> for something completely different."