*BSD News Article 29173


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:9632 news.software.nntp:7223
Newsgroups: comp.os.386bsd.questions,news.software.nntp
Path: sserve!newshost.anu.edu.au!munnari.oz.au!comp.vuw.ac.nz!hoqual!wellington.mafqual.govt.nz!pc
From: pc@wellington.mafqual.govt.nz (PC)
Subject: FreeBSD and innwatch segmentation faults
Message-ID: <pc.23.2DA6178E@wellington.mafqual.govt.nz>
Lines: 90
Sender: usenet@hoqual.mafqual.govt.nz (nntp poster userid)
Nntp-Posting-Host: 138.71.122.145
Organization: Ministry of Ag & Fish, MAFQual, NZ
Date: Sat, 9 Apr 1994 02:48:46 GMT


hi

i'm running freebsd 1.02 and inn 1.4sec. has anyone else had these problems?

on the forth pass of innwatch from either being kicked off from rc.news
or run manually both in foreground and backgroup it gives segmentation
fault errors continuosly until i kill the process. i've tried it with
all commands commented out of innwatch.ctl, same result.

this is part of the output of innwatch using sh -x ./innwatch -t 15

[it's already run this code 3 times ok]
blah
blah
+ sleep 15
+ wait
+ :
+ NEXTSLEEP=15
+ test -f /usr/local/news/LOCK.news.daily
+ ctlinnd -s -t 120 mode
+ false
+ cat /usr/local/news/innd/innd.pid
+ nPID=20353
+ test -n 20353 -a 20353 -ne 20353
+ VALUE=0
+ PREVEXP=
+ exec
+ exec
+ LINE=0
+ read line
+ expr 0 + 1
+ LINE=1
+ test -z ##  $Revision: 1.3 $
+ expr ##  $Revision: 1.3 $ : \(.\).*
+ delim=#
+ test X# = X#
+ continue
+ read line
+ expr 1 + 1
+ LINE=2
+ test -z ##  innwatch.ctl -- control file for innwatch.
+ expr ##  innwatch.ctl -- control file for innwatch. : \(.\).*
+ delim=#
+ test X# = X#
+ continue
+ read line
+ expr 2 + 1
Segmentation fault
+ LINE=
+ test -z ##  Indicates what to run to test the state of the news system, and what
Segmentation fault
+ expr ##  Indicates what to run to test the state of the news system, and what
: \(.\).*
Segmentation fault
blah
blah


the second problem is in innstat, when run from cron this code

echo 'Server connections:'
ctlinnd -t60 name '' 2>&1 \
    | ${SED} -e '/^[    ]*$/d' \
    | ${AWK} '{print length($0), $0}' \
    | sort -n \
    | ${SED} 's/^[0-9][0-9]*  *//' \
    | ${AWK} '
    [code deleted]

gives

Server connections:
awk: cmd. line:2 fatal: can't stat fd 0 (Bad file descriptor)

it runs fine running innstat from the prompt. if i take out the
sorting lines and run

echo 'Server connections:'
ctlinnd -t60 name '' 2>&1 \
    | ${SED} -e '/^[    ]*$/d' \
    | ${AWK} '
    [code deleted]

it runs ok.

thanx for your help

pete clare
pc@wellington.mafqual.govt.nz