From: hlu@eecs.wsu.edu (H.J. Lu) Subject: Re: Strange behaviour of libc-4.3 and X11-1.2 Date: 25 Feb 1993 23:20:57 GMT
In article <NATION.93Feb25155542@dopey.sanders.lockheed.com>, nation@dopey.sanders.lockheed.com (Robert Nation) writes:
|> Perhaps the program you are compiling has a subroutine with the same
|> name as a library subroutine. Under libc-4.3, if you specify a
|> subroutine named, for example, malloc(), all library calls to malloc
|> will be re-directed to your subroutine. While this is an obvious case,
|> there are less obvious cases, like dtoa(), which is how I found out
|> about this problem (dtoa is used when printing floats out, so any
|> time you try to print a float, it calls this subroutine, which, in my
|> case
|> caused a segmentation violation). This behavior is new in libc-4.3. I
|> am not aware of an easy way of debugging it.
|>
|> Rob Nation
|> (nation@rocket.sanders.lockheed.com).
I forgot to mention that you have to use gcc -v during the link stage
to see the messages.
H.J.