From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 11384 invoked from network); 29 Jun 1998 19:34:05 -0000 Received: from anubis.gsfc.nasa.gov (128.183.126.248) by mail2.redhat.com with SMTP; 29 Jun 1998 19:34:05 -0000 Received: from localhost (miket@localhost) by anubis.gsfc.nasa.gov (8.8.5/8.8.5) with SMTP id PAA13586 for ; Mon, 29 Jun 1998 15:32:56 -0400 Date: Mon, 29 Jun 1998 15:32:56 -0400 (xyUU) From: Mike Tripicco To: axp-list@redhat.com Subject: malloc oddity? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I've run into something odd and hoped someone here might be able to help. I've got a PC164 and am still running RedHat v4.1 because just about everything works OK and, given the discussion on this list (which I've been following for about six months) I'm afraid that an upgrade to 5.1 would cost me more downtime (and lost hair) than I can afford right now. Anyway, my problem is related to the fact that when I malloc anything more than 128kb the allocated memory suddenly jumps to a very high address: # testalloc 131048 allocating 131048 bytes address is 0x150000250 # testalloc 131049 allocating 131049 bytes address is 0x15555568010 Running the same test program on an Alpha running OSF/1 v3.2 shows no such behavior. Is this related to the same bugs in the linker and/or assembler which cause the infamous "relocation truncated to fit" errors discussed back in April of 1997? I'm running binutils-2.7.0.2-4 and glibc-0.961212-4 (from rpms) along with gcc 2.8.1 compiled from source. Attempts to update the binutils and/or glibc rpms have always failed due to dependency clashes. Short of a full upgrade to RH5.1 is there any way to fix this odd behavior from malloc? I've tried compiling the GNU binutils from source and swapping in those versions of ld and as, but that led to completely inoperable executables. Any advice would be appreciated. Thanks! Mike