Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Mar 2000 01:19:57 +0900
From:      "Daniel C. Sobral" <dcs@newsguy.com>
To:        sobomax@mail.ru
Cc:        current@FreeBSD.ORG, stable@FreeBSD.ORG
Subject:   Re: gcc -Os optimisation broken (RELENG_4)
Message-ID:  <38D25B2D.B442D523@newsguy.com>
References:  <38CF48CF.59A100D7@altavista.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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.

--
Daniel C. Sobral			(8-DCS)
dcs@newsguy.com
dcs@freebsd.org

	One Unix to rule them all, One Resolver to find them,
        One IP to bring them all and in the zone bind them.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38D25B2D.B442D523>