Article View: news.software.nn
Article #10606[long] nntpserver error and debug logged
From: Arctic Fidelity
Date: Wed, 02 Mar 2005 23:15
Date: Wed, 02 Mar 2005 23:15
242 lines
7499 bytes
7499 bytes
Alright, I mentioned I would put up this log, all the problems I was having
with nn, so, here's my debugging thread. :-) Keep in mind that I have a
working nn-6.6.5 which works with all the values I have tested here.
Problem: nn-6.6.4 built using Slack and slack packages, errors out with
"NNTPSERVER is invalid." error no. 01.
***
What I've done, noticed, etc.
***
Alright I can verify that the problems I'm having are not because of bad
configuration of the /etc/nntpserver file which contains:
% cat /etc/nntpserver
news.gvtc.com
%
Now, here's a quote of the current config file for nn-6.6.4:
% cat /usr/lib/nn/conf
VERSION="6.6.4 (NOV)"
INEWS="/usr/lib/news/inews"
INEWS_DIR="/usr/lib/news"
AWK="awk"
NOV=true NNTP=true ACTIVE=/usr/lib/nn/.nn/ACTIVE
NNTPCACHE=
LOG=/usr/lib/nn/Log
TMP=${TMPDIR-/var/tmp}
DB=/usr/lib/nn/.nn
BIN=/usr/bin
LIB=/usr/lib/nn
RECMAIL="/usr/sbin/sendmail -t"
SPOOL=/usr/spool/news
NLIB=/usr/lib/news
MASTER=/usr/lib/nn
HELP=/usr/lib/nn/help
DBDATA=""
DBSHORTNAME=true
OWNER=news GROUP=news
AUTH=false
#include <stdio.h>
#include <ctype.h>
#define NOV
#define DO_NOV_DIGEST
#define NOV_DIRECTORY "/var/spool/news/over.view"
#define NNTP
#define NNTP_SERVER "/etc/nntpserver"
#define HIDDENNET
#include "s-linux.h"
#include "m-sparc.h"
#define BIN_DIRECTORY "/usr/bin"
#define LIB_DIRECTORY "/usr/lib/nn"
#define DONT_COUNT_LINES
#define REC_MAIL "/usr/sbin/sendmail -t"
#define APPEND_SIGNATURE
#define BUG_REPORT_ADDRESS "mtpins@nndev.org"
#define DEFAULT_PAGER "more"
#define DEFAULT_PRINTER "lpr -JNEWS"
#define OWNER "news"
#define GROUP "news"
#define FOLDER_DIRECTORY "~/News"
#define NAME_LENGTH 16
#define PUT_TIMESTAMP_IN_SCRIPTS
#include "global.h"
%
And here's the output of my nn-6.6.5 conf:
% cat /usr/local/lib/nn/conf
VERSION="6.6.5 (NOV)"
INEWS="/usr/lib/news/inews"
INEWS_DIR="/usr/lib/news"
AWK="awk"
NOV=true NNTP=true ACTIVE=/usr/local/lib/nn/.nn/ACTIVE
NNTPCACHE=
LOG=/usr/local/lib/nn/Log
TMP=${TMPDIR-/var/tmp}
DB=/usr/local/lib/nn/.nn
BIN=/usr/local/bin
LIB=/usr/local/lib/nn
RECMAIL="/usr/lib/sendmail -t"
SPOOL=/usr/spool/news
NLIB=/usr/lib/news
MASTER=/usr/local/lib/nn
HELP=/usr/local/lib/nn/help
DBDATA=""
DBSHORTNAME=true
OWNER=news GROUP=news
AUTH=false
INEWSWAIT=0
SYNCHRO=true
#include <stdio.h>
#include <ctype.h>
#define NOV
#define DO_NOV_DIGEST
#define NNTP
#define NNTP_SERVER "/etc/nntpserver"
#define HIDDENNET
#include "s-linux.h"
#include "m-i80386.h"
#define BIN_DIRECTORY "/usr/local/bin"
#define LIB_DIRECTORY "/usr/local/lib/nn"
#define DONT_COUNT_LINES
#define REC_MAIL "/usr/lib/sendmail -t"
#define APPEND_SIGNATURE
#define BUG_REPORT_ADDRESS "mtpins@nndev.org"
#define DEFAULT_PAGER "more"
#define DEFAULT_PRINTER "lpr -p -JNEWS"
#define OWNER "news"
#define GROUP "news"
#define FOLDER_DIRECTORY "~/News"
#define NAME_LENGTH 16
#define INEWS_IS_FAST
#define SYNCHRONOUS_POSTING
#define PUT_TIMESTAMP_IN_SCRIPTS
#include "global.h"
%
And the diff:
% diff /usr/lib/nn/conf /usr/local/lib/nn/conf
1c1
< VERSION="6.6.4 (NOV)"
---
> VERSION="6.6.5 (NOV)"
5c5
< NOV=true NNTP=true ACTIVE=/usr/lib/nn/.nn/ACTIVE
---
> NOV=true NNTP=true ACTIVE=/usr/local/lib/nn/.nn/ACTIVE
7c7
< LOG=/usr/lib/nn/Log
---
> LOG=/usr/local/lib/nn/Log
9,12c9,12
< DB=/usr/lib/nn/.nn
< BIN=/usr/bin
< LIB=/usr/lib/nn
< RECMAIL="/usr/sbin/sendmail -t"
---
> DB=/usr/local/lib/nn/.nn
> BIN=/usr/local/bin
> LIB=/usr/local/lib/nn
> RECMAIL="/usr/lib/sendmail -t"
15,16c15,16
< MASTER=/usr/lib/nn
< HELP=/usr/lib/nn/help
---
> MASTER=/usr/local/lib/nn
> HELP=/usr/local/lib/nn/help
20a21,22
> INEWSWAIT=0
> SYNCHRO=true
25d26
< #define NOV_DIRECTORY "/var/spool/news/over.view"
30,32c31,33
< #include "m-sparc.h"
< #define BIN_DIRECTORY "/usr/bin"
< #define LIB_DIRECTORY "/usr/lib/nn"
---
> #include "m-i80386.h"
> #define BIN_DIRECTORY "/usr/local/bin"
> #define LIB_DIRECTORY "/usr/local/lib/nn"
34c35
< #define REC_MAIL "/usr/sbin/sendmail -t"
---
> #define REC_MAIL "/usr/lib/sendmail -t"
38c39
< #define DEFAULT_PRINTER "lpr -JNEWS"
---
> #define DEFAULT_PRINTER "lpr -p -JNEWS"
42a44,45
> #define INEWS_IS_FAST
> #define SYNCHRONOUS_POSTING
%
Here are my additions coupled with the diffs for Slackware regarding the
nntp.c file,
% diff nntp.c nntp.c.new
215a216
> printf("Gathered nntp_server: %s\n", nntp_server);
840a842
> printf("nntpserver: %s\nhostname: %s\n", nntp_server, host_name);
842c844,845
< if ((hp = gethostbyname(nntp_server)) != NULL)
---
> if ((hp = gethostbyname(nntp_server)) != NULL) {
> printf("Setting server_real_name\n");
843a847
> }
844a849
> printf("NNTP host %s is unknown -- edit /etc/nntpserver\n",nntp_server);
%
And here's the grep for NNTPSERVER in the directory:
% cd nn-6.6.4; grep NNTPSERVER *
/home/af/nn/nn-6.6.4/ChangeLog: no longer segfaults if NNTPSERVER is invalid.
Binary file /home/af/nn/nn-6.6.4/nn matches
/home/af/nn/nn-6.6.4/nntp.c: if ((cp = getenv("NNTPSERVER")) != NULL) {
/home/af/nn/nn-6.6.4/nntp.c: nn_exitmsg(1, "NNTPSERVER is invalid");
Binary file /home/af/nn/nn-6.6.4/nntp.o matches
%
And here's the output of gdb test on running nn:
% cat ./cmds
run
quit
% gdb /usr/bin/nn -x cmds
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-slackware-linux"...Using host libthread_db library "/lib/libthread_db.so.1".
Gathered nntp_server: news.gvtc.com
nntpserver: news.gvtc.com
hostname: frostbite.homeunix.net
Setting server_real_name
NNTPSERVER is invalid
Program exited with code 01.
%
Now, I know that it's not going through the place I think it's going
through, but now I can't figure out what's going on after this, HOW is
this program exiting like this when nn-6.6.5 works fine? Is it something
in my config? What on earth is wrong?
I hope one of you can help.
- Arctic Fidelity
--
"Beware of bugs in the above code; I have only proved it correct, not
tried it."
-- Donald Knuth
Technical Details
Message-ID:
<5ridnR3tOZKw1LvfRVn-gQ@gvtc.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.dca.giganews.com!local01.nntp.dca.giganews.com!nntp.gvtc.com!news.gvtc.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <5ridnR3tOZKw1LvfRVn-gQ@gvtc.com> Subject: [long] nntpserver error and debug logged Date: Wed, 02 Mar 2005 17:15:57 -0600 From: Arctic Fidelity <spam@sacrificumdeo.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.dca.giganews.com!local01.nntp.dca.giganews.com!nntp.gvtc.com!news.gvtc.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 02 Mar 2005 17:15:57 -0600 Newsgroups: news.software.nn User-Agent: nn/6.6.5 Lines: 242 NNTP-Posting-Host: 64.185.189.174 X-Trace: sv3-kQkzKclqYmFLv0/e80DvMpMD5FrgCCQ7xLJmPD1+cHnBZBg/+UxMeu1z84b15IQvN80IKy6bhbXuMaw!N29UYgyQfLPTSrBWjUWJ3JzzQsMnJt42b3pAWmQ3IuiN+VrTM469lxcuXYuEE6r1ZOZt X-Complaints-To: abuse@gvtc.com X-DMCA-Complaints-To: abuse@gvtc.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32