[Gllug] C libraries on Red Hat 7.1

Julie Hui jmh at digital-science.net
Fri Dec 21 02:30:05 UTC 2001


> > 18370:  symbol=malloc;  lookup in file=./freader
> > 18370:  symbol=malloc;  lookup in file=/lib/i686/libc.so.6
> > 18370:  symbol=malloc;  lookup in file=/lib/ld-linux.so.2
> > 18370:  binding file ./freader to /lib/i686/libc.so.6: normal symbol 
> 'malloc' [GLIBC_2.0]
>
>This is very strange. It looks like normal output when the LD_DEBUG
>environment variable is set to `symbols', or maybe `bindings' (run a
>program with LD_DEBUG=help for the full list), but it's much smaller
>output volume than that normally generated by LD_DEBUG leaves me
>puzzled.
>
>LD_DEBUG normally generates thousands of lines of output, at least one
>line per symbol; is all you're doing in this program calling malloc()?

There were more lines, that was a sample.  Somehow I didn't think that a 
hundred lines of the stuff would be useful...hrm, I'll try to remember to 
be a bit clearer next time.  Mostly the proggie really does just call 
malloc though.  Being new to C I figured I'd jump into the memory 
allocation stuff and see if it starts to make any sense.  Slowly but surely 
all the pieces are coming together. :-)

Cheers for all the help and suggestions,
Jules


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list