From owner-freebsd-stable Thu Oct 16 20:59:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA16596 for stable-outgoing; Thu, 16 Oct 1997 20:59:13 -0700 (PDT) (envelope-from owner-freebsd-stable) Received: from bob.tri-lakes.net ([207.3.81.6]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id UAA16586 for ; Thu, 16 Oct 1997 20:59:07 -0700 (PDT) (envelope-from cdillon@tri-lakes.net) Received: from [207.3.81.149] by bob.tri-lakes.net (NTMail 3.02.13) with ESMTP id ha304025 for ; Thu, 16 Oct 1997 22:58:28 -0500 Message-ID: X-Mailer: XFMail 1.1 [p0] on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <22272.877052840@coconut.itojun.org> Date: Thu, 16 Oct 1997 21:53:37 -0000 (GMT) From: Chris Dillon To: itojun@itojun.org Subject: Re: Problem with Hylafax Cc: stable@FreeBSD.ORG, ports@FreeBSD.ORG Sender: owner-freebsd-stable@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On 17-Oct-97 itojun@itojun.org wrote: > > Hello, thanks for the detailed report, > >>I've had a problem with Hylafax for a little while, though I can't >remember >>for the life of me when it started (don't use it often enough). hfaxd >>throws a signal-11 at me every time it starts. I run 2.2-stable with >the >>last make world (cvsup right before) on October 9'th. My kernel >>configuration has remained the same before/after the problems (pretty >sure, >>since I haven't changed it in a while). >(snip) >>So.. I have no clue whats going on.. (novice C programmer to begin with, >>not to mention I have no clue about c++). > > It looks that your hostname (configured by /bin/hostname) does not > have correct entry in DNS database. gethostbyname() fails and > in InetFaxServer.c++ code touches incorrect memory region. > Is it the case? > I'll try submitting a report to the implementers of hylafax, so that > there'll be proper error handling. > >itojun This is correct, however, i don't have a DNS server setup on this machine, nor does my ISP have any clue in hell about DNS, (try and reverse my usual dialup address, 207.3.81.149, using any DNS server in the world... then use one of theirs, such as 207.3.81.5... I've bugged them about this for ages since it prevents me from connecting to sites who require reverse lookups to work) I DO have a hostname set with /bin/hostname (wyze.tri-lakes.net). This, however, was not a problem previously. Hylafax worked fine some time ago even with my 'bogus' hostname. Someone did suggest that bash was the culprit, and so I am reinstalling Hylafax (already removed it again.. might as well test a patch while I'm at it) with its dependancy for bash1 changed to bash2. Hmmm.. no luck with bash2 there. Still does a SIGSEGV.. Now to see if maybe I can fix that problem and supply a patch. :-) I could do: if (hp != NULL) memcpy(&in, hp->h_addr, sizeof (in)); a check just like the line before it, but that will probably cause something ELSE to fail.. :-( I'll look into it a bit deeper, but I notice you just notified the HylaFax team at SGI about it. --- Chris Dillon --- cdillon@tri-lakes.net --- Powered by FreeBSD, the best free OS on the planet ---- (http://www.freebsd.org)