Subject: Re: lib/25869: resolver changes make bitkeeper crash
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 06/09/2004 03:40:59
In article <1086742348.826301.1023.nullmailer@yamt.dyndns.org>,
YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> wrote:
>> | > Tried this and it works for me:
>> | > 
>> | > [6:39pm] 73>objdump -x res | grep -w _res
>> | > 08049a00 g     O .bss   000001bc _res
>> | > [6:39pm] 74>objdump -x /lib/libc.so.12.120 | grep -w _res
>> | > 000b5240 g     O .bss   00000200 _res
>> | > [6:39pm] 75>./res
>> | 
>> | coredump or not is not important.
>> | you can see what's the problem, can't you?
>> 
>> that the libc version is 512 bytes and the program's version is 444. But
>> that should not matter since the first 440 bytes are the same.
>> 
>> christos
>
>actually it matters because __res_vinit clobbers the latter part of
>the struct.

But who allocates the struct? it seems that libc does if it does not get
referenced by main, but main does if it references it. This seems bad to
me.

christos