Report forwarded to debian-bugs-dist@lists.debian.org, Mike Coleman <coleman@chez-gnu.cstp.umkc.edu>:
Bug#8092; Package nn.
debian-bugs-dist@lists.debian.orgMike Coleman
Subject: Bug#8092: nn looks for active file in /usr/lib/news/active
Reply-To: Richard Braakman , 8092@bugs.debian.org
Resent-From: Richard Braakman
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Mike Coleman
Resent-Date: Sun, 16 Mar 1997 04:18:01 GMT
Resent-Message-ID:
Resent-Sender: iwj@debian.org
X-Debian-PR-Package: nn
X-Debian-PR-Keywords:
X-Loop: owner@bugs.debian.org
Received: via spool by bugs@bugs.debian.org id=B.85848580513308
(code B ref -1); Sun, 16 Mar 1997 04:18:01 GMT
From: Richard Braakman
Message-Id: <199703160407.FAA03892@xs1.xs4all.nl>
To: debian-bugs@pixar.com
Date: Sun, 16 Mar 1997 05:07:22 +0100 (MET)
X-Mailer: ELM [version 2.4 PL25]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Package: nn
Version: 6.5.0.b3.linux.1.1-01
When I start nn, it aborts immediately:
]night:[dark]~: nn
]could not fetch active file
]
]night:[dark]~:
I use suck and innd to create a local news spool. INN (1.4unoff4-1)
keeps its active file in /var/lib/news/active.
I used strace, and it turns out that nn looks for the active file
in /usr/lib/news/active. This is the wrong place.
I have tried it with the NNTPSERVER environment variable unset,
or set to "localhost", or set to "night" (the hostname). The
behaviour is the same.
If I set NNTPSERVER to the FQDN, nn segfaults. But I suspect that
belongs in another bugreport. I'll send one when I have investigated.
Other details requested by the bug-report doc:
(I doubt they're relevant, but it can't hurt)
Kernel version (uname -a):
Linux night 2.0.6 #104 Fri Mar 14 01:48:44 MET 1997 i486
Libc version 5.4.20
/etc/debian_version reports 1.1, but that's probably because I
upgraded to a newer dpkg package. My original install was from
the Sep 1996 Info-Magic disks.
I guess the strace output is also relevant:
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x40007000
mprotect(0x40000000, 20301, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x8000000, 207512, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=2727, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 4
mmap(0, 2727, PROT_READ, MAP_SHARED, 4, 0) = 0x40008000
close(4) = 0
stat("/etc/ld.so.preload", 0xbffffba4) = -1 ERRNO_2 (No such file or directory)
open("/lib/libncurses.so.3.0", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 249856, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x40009000
mmap(0x40009000, 198134, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0x40009000
mmap(0x4003a000, 30592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x30000) = 0x4003a000
mmap(0x40042000, 13444, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 4294967295, 0) = 0x40042000
close(4) = 0
mprotect(0x40009000, 198134, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
open("/lib/libc.so.5", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 757760, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x40046000
mmap(0x40046000, 528099, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0x40046000
mmap(0x400c7000, 22860, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x80000) = 0x400c7000
mmap(0x400cd000, 204720, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 4294967295, 0) = 0x400cd000
close(4) = 0
mprotect(0x40046000, 528099, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
munmap(0x40008000, 2727) = 0
mprotect(0x8000000, 207512, PROT_READ|PROT_EXEC) = 0
mprotect(0x40009000, 198134, PROT_READ|PROT_EXEC) = 0
mprotect(0x40046000, 528099, PROT_READ|PROT_EXEC) = 0
mprotect(0x40000000, 20301, PROT_READ|PROT_EXEC) = 0
personality(0) = 0
geteuid() = 1000
getuid() = 1000
getgid() = 1000
getegid() = 1000
brk(0x803e1c8) = 0x803e1c8
ioctl(0, 0x5401, {B9600 opost isig icanon echo ...}) = 0
sigaction(SIGTERM, {0x80052d0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
sigaction(SIGHUP, {0x80052d0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
sigaction(SIGPIPE, {0x8005310, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
sigaction(SIGALRM, {SIG_IGN}, {SIG_DFL}) = 0
sigaction(SIG30, {0x80052d0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
getuid() = 1000
getgroups(32, [1000]) = 1
getegid() = 1000
geteuid() = 1000
getpid() = 28572
brk(0x803e1f0) = 0x803e1f0
brk(0x803f000) = 0x803f000
stat("/var/spool/nn/DATA/0", 0x8037260) = -1 ERRNO_2 (No such file or directory)
sigaction(SIGINT, {0x80052f0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
sigaction(SIGQUIT, {0x80052f0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
sigaction(SIGTSTP, {0x8005330, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
stat("/home/dark/.nn", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
uname({sys="Linux", node="night", ...}) = 0
stat("/etc/locale/C/libc.cat", 0xbfffee60) = -1 ERRNO_2 (No such file or directory)
stat("/usr/share/locale/C/libc.cat", 0xbfffee60) = -1 ERRNO_2 (No such file or directory)
stat("/usr/share/locale/libc/C", 0xbfffee60) = -1 ERRNO_2 (No such file or directory)
stat("/usr/share/locale/C/libc.cat", 0xbfffee60) = -1 ERRNO_2 (No such file or directory)
stat("/usr/local/share/locale/C/libc.cat", 0xbfffee60) = -1 ERRNO_2 (No such file or directory)
open("/etc/host.conf", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=46, ...}) = 0
fcntl(4, F_GETFL) = 0 (flags O_RDONLY)
fstat(4, {st_mode=S_IFREG|0644, st_size=46, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x40008000
lseek(4, 0, SEEK_CUR) = 0
read(4, "order hosts,bind\nmulti on\nnosp"..., 4096) = 46
gettimeofday({858485228, 102386}, NULL) = 0
getpid() = 28572
open("/etc/resolv.conf", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=41, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x400ff000
read(5, "domain xs4all.nl\nnameserver 194"..., 4096) = 41
read(5, "", 4096) = 0
close(5) = 0
munmap(0x400ff000, 4096) = 0
read(4, "", 4096) = 0
close(4) = 0
munmap(0x40008000, 4096) = 0
uname({sys="Linux", node="night", ...}) = 0
open("/etc/hosts", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x40008000
read(4, "127.0.0.1\tnight\tlocalhost\n192"..., 4096) = 57
read(4, "", 4096) = 0
close(4) = 0
munmap(0x40008000, 4096) = 0
uname({sys="Linux", node="night", ...}) = 0
open("/etc/hosts", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x40008000
read(4, "127.0.0.1\tnight\tlocalhost\n192"..., 4096) = 57
read(4, "", 4096) = 0
close(4) = 0
munmap(0x40008000, 4096) = 0
brk(0x8042000) = 0x8042000
brk(0x8045000) = 0x8045000
open("/usr/lib/news/active", O_RDONLY) = -1 ERRNO_2 (No such file or directory)
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 194), ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x40008000
ioctl(1, 0x5401, {B9600 opost isig icanon echo ...}) = 0
write(1, "could not fetch active file\n", 28) = 28
write(1, "\n", 1) = 1
_exit(1) = ?
Acknowledgement sent to Richard Braakman <dark@xs4all.nl>:
New bug report received and forwarded. Copy sent to Mike Coleman <coleman@chez-gnu.cstp.umkc.edu>.
-t
From: owner@bugs.debian.org (Ian Jackson)
To: Richard Braakman
Subject: Bug#8092: Acknowledgement (was: nn looks for active file in /usr/lib/news/active)
Message-ID:
In-Reply-To: <199703160407.FAA03892@xs1.xs4all.nl>
References: <199703160407.FAA03892@xs1.xs4all.nl>
Thank you for the problem report you have sent regarding Debian Linux.
This is an automatically generated reply, to let you know your message has
been received. It is being forwarded to the developers' mailing list for
their attention; they will reply in due course.
Your message has been sent to the package maintainer(s):
Mike Coleman
If you wish to submit further information on your problem, please send
it to 8092@bugs.debian.org (and *not* to
bugs@bugs.debian.org).
Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.
Ian Jackson
(maintainer, Debian bug tracking system)
Received: (at submit) by bugs.debian.org; 16 Mar 1997 04:16:45 +0000
Received: (qmail 13306 invoked from network); 16 Mar 1997 04:16:43 -0000
Received: from pixar.pixar.com (HELO pixar.com) (138.72.10.20)
by master.debian.org with SMTP; 16 Mar 1997 04:16:43 -0000
Received: from smtp1.xs4all.nl by pixar.com with SMTP id AA21786
(5.67b/IDA-1.5 for submit@bugs.debian.org); Sat, 15 Mar 1997 20:07:21 -0800
Received: from magigimmix.xs4all.nl (magigimmix.xs4all.nl [194.109.6.25]) by smtp1.xs4all.nl (8.7.6/XS4ALL) with ESMTP id FAA17253 for ; Sun, 16 Mar 1997 05:07:25 +0100 (MET)
Received: from xs1.xs4all.nl (xs1.xs4all.nl [194.109.6.42]) by magigimmix.xs4all.nl (8.7.6/XS4ALL) with ESMTP id FAA05306; Sun, 16 Mar 1997 05:07:23 +0100 (MET)
Received: (from dark@localhost) by xs1.xs4all.nl (8.7.6/XS4ALL) id FAA03892; Sun, 16 Mar 1997 05:07:23 +0100 (MET)
From: Richard Braakman
Message-Id: <199703160407.FAA03892@xs1.xs4all.nl>
Subject: nn looks for active file in /usr/lib/news/active
To: debian-bugs@pixar.com
Date: Sun, 16 Mar 1997 05:07:22 +0100 (MET)
X-Mailer: ELM [version 2.4 PL25]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Package: nn
Version: 6.5.0.b3.linux.1.1-01
When I start nn, it aborts immediately:
]night:[dark]~: nn
]could not fetch active file
]
]night:[dark]~:
I use suck and innd to create a local news spool. INN (1.4unoff4-1)
keeps its active file in /var/lib/news/active.
I used strace, and it turns out that nn looks for the active file
in /usr/lib/news/active. This is the wrong place.
I have tried it with the NNTPSERVER environment variable unset,
or set to "localhost", or set to "night" (the hostname). The
behaviour is the same.
If I set NNTPSERVER to the FQDN, nn segfaults. But I suspect that
belongs in another bugreport. I'll send one when I have investigated.
Other details requested by the bug-report doc:
(I doubt they're relevant, but it can't hurt)
Kernel version (uname -a):
Linux night 2.0.6 #104 Fri Mar 14 01:48:44 MET 1997 i486
Libc version 5.4.20
/etc/debian_version reports 1.1, but that's probably because I
upgraded to a newer dpkg package. My original install was from
the Sep 1996 Info-Magic disks.
I guess the strace output is also relevant:
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x40007000
mprotect(0x40000000, 20301, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x8000000, 207512, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=2727, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 4
mmap(0, 2727, PROT_READ, MAP_SHARED, 4, 0) = 0x40008000
close(4) = 0
stat("/etc/ld.so.preload", 0xbffffba4) = -1 ERRNO_2 (No such file or directory)
open("/lib/libncurses.so.3.0", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 249856, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x40009000
mmap(0x40009000, 198134, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0x40009000
mmap(0x4003a000, 30592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x30000) = 0x4003a000
mmap(0x40042000, 13444, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 4294967295, 0) = 0x40042000
close(4) = 0
mprotect(0x40009000, 198134, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
open("/lib/libc.so.5", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 757760, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x40046000
mmap(0x40046000, 528099, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0x40046000
mmap(0x400c7000, 22860, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x80000) = 0x400c7000
mmap(0x400cd000, 204720, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 4294967295, 0) = 0x400cd000
close(4) = 0
mprotect(0x40046000, 528099, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
munmap(0x40008000, 2727) = 0
mprotect(0x8000000, 207512, PROT_READ|PROT_EXEC) = 0
mprotect(0x40009000, 198134, PROT_READ|PROT_EXEC) = 0
mprotect(0x40046000, 528099, PROT_READ|PROT_EXEC) = 0
mprotect(0x40000000, 20301, PROT_READ|PROT_EXEC) = 0
personality(0) = 0
geteuid() = 1000
getuid() = 1000
getgid() = 1000
getegid() = 1000
brk(0x803e1c8) = 0x803e1c8
ioctl(0, 0x5401, {B9600 opost isig icanon echo ...}) = 0
sigaction(SIGTERM, {0x80052d0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
sigaction(SIGHUP, {0x80052d0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
sigaction(SIGPIPE, {0x8005310, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
sigaction(SIGALRM, {SIG_IGN}, {SIG_DFL}) = 0
sigaction(SIG30, {0x80052d0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
getuid() = 1000
getgroups(32, [1000]) = 1
getegid() = 1000
geteuid() = 1000
getpid() = 28572
brk(0x803e1f0) = 0x803e1f0
brk(0x803f000) = 0x803f000
stat("/var/spool/nn/DATA/0", 0x8037260) = -1 ERRNO_2 (No such file or directory)
sigaction(SIGINT, {0x80052f0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
sigaction(SIGQUIT, {0x80052f0, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
sigaction(SIGTSTP, {0x8005330, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}, {SIG_DFL}) = 0
stat("/home/dark/.nn", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
uname({sys="Linux", node="night", ...}) = 0
stat("/etc/locale/C/libc.cat", 0xbfffee60) = -1 ERRNO_2 (No such file or directory)
stat("/usr/share/locale/C/libc.cat", 0xbfffee60) = -1 ERRNO_2 (No such file or directory)
stat("/usr/share/locale/libc/C", 0xbfffee60) = -1 ERRNO_2 (No such file or directory)
stat("/usr/share/locale/C/libc.cat", 0xbfffee60) = -1 ERRNO_2 (No such file or directory)
stat("/usr/local/share/locale/C/libc.cat", 0xbfffee60) = -1 ERRNO_2 (No such file or directory)
open("/etc/host.conf", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=46, ...}) = 0
fcntl(4, F_GETFL) = 0 (flags O_RDONLY)
fstat(4, {st_mode=S_IFREG|0644, st_size=46, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x40008000
lseek(4, 0, SEEK_CUR) = 0
read(4, "order hosts,bind\nmulti on\nnosp"..., 4096) = 46
gettimeofday({858485228, 102386}, NULL) = 0
getpid() = 28572
open("/etc/resolv.conf", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=41, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x400ff000
read(5, "domain xs4all.nl\nnameserver 194"..., 4096) = 41
read(5, "", 4096) = 0
close(5) = 0
munmap(0x400ff000, 4096) = 0
read(4, "", 4096) = 0
close(4) = 0
munmap(0x40008000, 4096) = 0
uname({sys="Linux", node="night", ...}) = 0
open("/etc/hosts", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x40008000
read(4, "127.0.0.1\tnight\tlocalhost\n192"..., 4096) = 57
read(4, "", 4096) = 0
close(4) = 0
munmap(0x40008000, 4096) = 0
uname({sys="Linux", node="night", ...}) = 0
open("/etc/hosts", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x40008000
read(4, "127.0.0.1\tnight\tlocalhost\n192"..., 4096) = 57
read(4, "", 4096) = 0
close(4) = 0
munmap(0x40008000, 4096) = 0
brk(0x8042000) = 0x8042000
brk(0x8045000) = 0x8045000
open("/usr/lib/news/active", O_RDONLY) = -1 ERRNO_2 (No such file or directory)
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 194), ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 4294967295, 0) = 0x40008000
ioctl(1, 0x5401, {B9600 opost isig icanon echo ...}) = 0
write(1, "could not fetch active file\n", 28) = 28
write(1, "\n", 1) = 1
_exit(1) = ?