Date: Sat, 14 Sep 2002 14:06:46 +0200 (CEST) From: Martin Blapp <mb@imp.ch> To: <netctar@freebsd.org> Cc: <cvs-committers@freebsd.org>, <cvs-all@freebsd.org> Subject: Re: cvs commit: src/lib/libc/net getaddrinfo.c gethostbydns.c getnetbydns.c name6.c res_query.c res_update.c Message-ID: <20020914135323.I3162-100000@levais.imp.ch>
next in thread | raw e-mail | index | archive | help
Hi, Almost every program which uses DNS is broken now by these commits. This is mozilla ... After restoring the MAXPACKET behaviour as before, everything worked fine. Unfortunatly I don't have the time to debug this. The retvals are everywhere bogus ... Program received signal SIGSEGV, Segmentation fault. 0x2862ec3a in _dns_gethostbyname (rval=0xbfadced0, cb_data=0x0, ap=0xbfadceb4 "@ó{\b\034") at /usr/src/lib/libc/net/gethostbydns.c:473 (gdb) bt #0 0x2862ec3a in _dns_gethostbyname (rval=0xbfadced0, cb_data=0x0, ap=0xbfadceb4 "@ó{\b\034") at /usr/src/lib/libc/net/gethostbydns.c:473 #1 0x2862d758 in nsdispatch (retval=0xbfadced0, disp_tab=0x286676e0, database=0x286623a9 "hosts", method=0x286623af "gethostbyname", defaults=0x286676c4) at /usr/src/lib/libc/net/nsdispatch.c:244 #2 0x2862cdea in gethostbyname2 (name=0x87bf340 "www.mozilla.org", type=28) at /usr/src/lib/libc/net/gethostnamadr.c:86 #3 0x2828bd39 in PR_GetIPNodeByName () from /usr/X11R6/lib/mozilla//libnspr4.so #4 0x288d6b90 in nsDNSLookup::DoSyncLookupInternal() () And another place .... (gdb) frame 0 #0 0x2861ddaa in __res_query (name=0x87b5f80 "www.mozilla.org", class=1, type=28, answer=0xbfadca40 "", anslen=1024) at /usr/src/lib/libc/net/res_query.c:111 111 { (gdb) list 106 res_query(name, class, type, answer, anslen) 107 const char *name; /* domain name */ 108 int class, type; /* class and type of query */ 109 u_char *answer; /* buffer to put answer */ 110 int anslen; /* size of answer buffer */ 111 { 112 u_char buf[MAXPACKET]; 113 HEADER *hp = (HEADER *) answer; 114 int n; 115 Martin Martin Blapp, <mb@imp.ch> <mbr@FreeBSD.org> ------------------------------------------------------------------ ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH Phone: +41 061 826 93 00: +41 61 826 93 01 PGP: <finger -l mbr@freebsd.org> PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E ------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020914135323.I3162-100000>