From owner-freebsd-current Fri Mar 17 10: 0:27 2000 Delivered-To: freebsd-current@freebsd.org Received: from ipt2.iptelecom.net.ua (ipt2.iptelecom.net.ua [212.9.224.2]) by hub.freebsd.org (Postfix) with ESMTP id 9A22537BBFE; Fri, 17 Mar 2000 10:00:15 -0800 (PST) (envelope-from sobomax@altavista.net) Received: from vega.vega.com (dialup5-41.iptelecom.net.ua [212.9.227.41]) by ipt2.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id UAA28490; Fri, 17 Mar 2000 20:04:15 +0200 (EET) Received: from altavista.net (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.9.3/8.9.3) with ESMTP id TAA03226; Fri, 17 Mar 2000 19:34:13 +0200 (EET) (envelope-from sobomax@altavista.net) Message-ID: <38D26C93.A897F093@altavista.net> Date: Fri, 17 Mar 2000 19:34:11 +0200 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: "Daniel C. Sobral" Cc: sobomax@mail.ru, current@FreeBSD.ORG, stable@FreeBSD.ORG Subject: Re: gcc -Os optimisation broken (RELENG_4) References: <38CF48CF.59A100D7@altavista.net> <38D25B2D.B442D523@newsguy.com> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Daniel C. Sobral" wrote: > Maxim Sobolev wrote: > > > > I've just upgraded my production server to the 4.0-RELEASE and found that > > squid23 when compiled with -Os option dying with signal 11 on each attempt to > > load page. When I recompiled it with -O fault disappeared. After some digging > > into the sources with gdb I found that fault came from dereferencing NULL > > pointer somewhere in the DNS query procedures. I've tracked the source of this > > pointer and found that the function rfc1035QuestionPack (rfc1035.c) called from > > rfc1035BuildAQuery receives NULL pointer instead of the supplied hostname as a > > 3rd argument. Following is two debugging sessions with squid compiled with -Os > > and -O (faulty call is in the end of the output): > > Well... where is "name" being set? That would help. It is not clear what do you mean, please explain. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message