Subject: Re: lib/25869: resolver changes make bitkeeper crash
To: None <christos@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-userlevel
Date: 06/09/2004 02:09:03
--NextPart-20040609015712-0136100
Content-Type: Text/Plain; charset=us-ascii

hi,

here's a simple test case of the binary compatibility problem.

1. compile the attached file on a pre-bind9resolver box.
	% cc a.c
	% objdump -x a.out|grep _res
	08049bc0 g     O .bss   000001bc _res
	% ./a.out
	%

2. run it on a post-bind9resolver box.
	kaeru% objdump -x /lib/libc.so.12.120|grep _res\$
	000b5240 g     O .bss   00000200 _res
	kaeru% ./a.out
	zsh: segmentation fault (core dumped)  ./a.out

YAMAMOTO Takashi


--NextPart-20040609015712-0136100
Content-Type: Text/Plain; charset=us-ascii
Content-Disposition: attachment; filename="a.c"

#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>

int
main()
{
	_res.options |= RES_AAONLY;
	res_init();
}

--NextPart-20040609015712-0136100--