From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19057 invoked by uid 1002); 5 Jan 2003 07:15:55 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 16470 invoked from network); 5 Jan 2003 07:15:54 -0000 To: gentoo-dev@gentoo.org References: <200301022027.08364.zhen@gentoo.org> <1041728970.29666.5.camel@Chinstrap.homeunix.net> <1041738765.25917.1.camel@Chinstrap.homeunix.net> <1041741579.25213.1.camel@Chinstrap.homeunix.net> <1041747830.17746.3.camel@Chinstrap.homeunix.net> X-URL: http://terje.kvernes.no/ Organization: do you Gentoo? From: Terje Kvernes Date: 05 Jan 2003 08:13:48 +0100 In-Reply-To: <1041747830.17746.3.camel@Chinstrap.homeunix.net> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Terje Kvernes Subject: Re: [gentoo-dev] Announcing new Prelinking Guide X-Archives-Salt: 7a771806-2764-41fc-b493-a4c2fd1fb171 X-Archives-Hash: 42ee03306f3cab56ad783a56c8b28a96 Caleb Shay writes: > On Sun, 2003-01-05 at 00:27, Terje Kvernes wrote: > > > run "strace -f prelink -famv". and please tell me that mmap or > > one of his brothers isn't the last thing there. > > Well, not quite the last thing... > > munmap(0x40654000, 274432) = 0 > munmap(0x406c5000, 188416) = 0 > close(4) = 0 > munmap(0x40697000, 188416) = 0 > brk(0x8cf1000) = 0x8cf1000 > munmap(0x40611000, 274432) = 0 > brk(0x8cc7000) = 0x8cc7000 > munmap(0x405a9000, 212992) = 0 > munmap(0x40167000, 2232320) = 0 > munmap(0x400f3000, 237568) = 0 > brk(0x8ca2000) = 0x8ca2000 > brk(0x8c72000) = 0x8c72000 > munmap(0x40027000, 417792) = 0 > close(3) = 0 > time(NULL) = 1041747716 > utime("/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.so.5.0.2.#prelink#.UofgUB", [2003/01/05-01:21:56, 2003/01/04-23:28:30]) = 0 > rename("/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.so.5.0.2.#prelink#.UofgUB", "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.so.5.0.2") = 0 > stat64("/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.so.5.0.2", > {st_mode=S_IFREG|0755, st_size=4233762, ...}) = 0 > --- SIGSEGV (Segmentation fault) --- > +++ killed by SIGSEGV +++ this is weird. okay, so prelink correctly renames the prelink mktemp'ed file to the original. then it does a stat, which returns properly, _then_ it segfaults. I peeked a quick peek at the source code, but I'm too tired to dig up anything overly useful from C. it does however look very buggy. :-/ but it does work fine if you do prelink -v /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.so.5.0.2 right? -- Terje -- gentoo-dev@gentoo.org mailing list