All of lore.kernel.org
 help / color / mirror / Atom feed
* dl-load.c (ld.so) bug??
@ 1999-06-21 22:52 Troy Benjegerdes
  1999-06-22  0:04 ` Hollis R Blanchard
  0 siblings, 1 reply; 12+ messages in thread
From: Troy Benjegerdes @ 1999-06-21 22:52 UTC (permalink / raw)
  To: linuxppc-dev



testcase:

#include <stdio.h>
int main(void){
        char * ptr;
        printf("hello world\n");
        fflush(stdout);
        ptr = (char *)malloc(100);
        free(ptr);
}   


compile this with:
gcc test.c -lefence -g -static

On a PPC glibc-2.1 box, this segfaults in dl-load.c:564

On a x86 Red Hat 6.0 system, it works fine (
[troybenj@mos6 troybenj]$ ./a.out

  Electric Fence 2.0.5 Copyright (C) 1987-1998 Bruce Perens.
hello world
[troybenj@mos6 troybenj]$ 


Either dl-load.c has a serious bug, or ElectricFence is broken on PPC.
I suspect it's the former, and if so, this would explain the weird
segfaults I've been seeing.

Can someone that knows glibc better please confirm or deny this for me?

--------------------------------------------------------------------------
| Troy Benjegerdes    |       troy@microux.com     |    hozer@drgw.net   |
|    Unix is user friendly... You just have to be friendly to it first.  |
| This message composed with 100% free software.    http://www.gnu.org   |
--------------------------------------------------------------------------


[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <Pine.LNX.3.96L.990622003119.5237E-100000@unix47.andrew.cmu.edu>]
[parent not found: <199906231258.HAA25989@www.cedarnet.org>]
[parent not found: <Pine.LNX.4.04.9906211749280.27642-100000@narn.local.drgw.n et>]

end of thread, other threads:[~1999-06-23 14:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-21 22:52 dl-load.c (ld.so) bug?? Troy Benjegerdes
1999-06-22  0:04 ` Hollis R Blanchard
1999-06-22  1:57   ` Troy Benjegerdes
1999-06-22  2:48     ` Hollis R Blanchard
1999-06-22  3:09       ` Daniel Jacobowitz
1999-06-22  4:36         ` Peter Chang
1999-06-22 13:52           ` Hollis R Blanchard
     [not found] <Pine.LNX.3.96L.990622003119.5237E-100000@unix47.andrew.cmu.edu>
1999-06-22  4:39 ` Peter Chang
     [not found] <199906231258.HAA25989@www.cedarnet.org>
1999-06-23 13:17 ` Geert Uytterhoeven
1999-06-23 14:19 ` Hollis R Blanchard
1999-06-23 14:32   ` Kevin Puetz
     [not found] <Pine.LNX.4.04.9906211749280.27642-100000@narn.local.drgw.n et>
1999-06-23 14:37 ` Franz Sirl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.