From owner-cvs-all Sat Sep 14 5: 6:57 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E018F37B400; Sat, 14 Sep 2002 05:06:51 -0700 (PDT) Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA59543E3B; Sat, 14 Sep 2002 05:06:50 -0700 (PDT) (envelope-from mb@imp.ch) Received: from nbs.imp.ch (nbs.imp.ch [157.161.4.7]) by mail.imp.ch (8.12.3/8.12.3) with ESMTP id g8EC6m2O065235; Sat, 14 Sep 2002 14:06:49 +0200 (CEST) (envelope-from Martin.Blapp@imp.ch) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by nbs.imp.ch (8.12.3/8.12.3) with ESMTP id g8EC6m75598724; Sat, 14 Sep 2002 14:06:48 +0200 (MES) Date: Sat, 14 Sep 2002 14:06:46 +0200 (CEST) From: Martin Blapp To: Cc: , 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> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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, ------------------------------------------------------------------ ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH Phone: +41 061 826 93 00: +41 61 826 93 01 PGP: 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