From owner-freebsd-bugs Sun Jan 2 12:25:56 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.lublin.pl (mx1.lublin.pl [212.182.63.76]) by hub.freebsd.org (Postfix) with ESMTP id 2955C14CB0 for ; Sun, 2 Jan 2000 12:25:50 -0800 (PST) (envelope-from venglin@FreeBSD.lublin.pl) Received: from lubi.freebsd.lublin.pl ([212.182.118.90]:54278 "HELO lubi.FreeBSD.lublin.pl") by krupik.man.lublin.pl with SMTP id ; Sun, 2 Jan 2000 21:25:32 +0100 Received: (qmail 8931 invoked from network); 2 Jan 2000 20:25:28 -0000 Received: from lagoon.gadaczka.org (venglin@192.168.0.2) by mailhost.gadaczka.org with SMTP; 2 Jan 2000 20:25:28 -0000 Content-Length: 2783 Message-ID: X-Mailer: XFMail 1.3 [p0] on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT MIME-Version: 1.0 In-Reply-To: <200001021957.LAA59729@freefall.freebsd.org> X-Motto: I think I'm -DPARANOID X-Operating-System: FreeBSD 3.3-STABLE (i386) X-SMS: +48601062409@text.plusgsm.pl X-PGP: PGP key on WWW or finger X-GeekCode-1: GED d- s+:- a16 C+++ ULB++++$ P+>+++ L+++ E+ W+++$ N+++ X-GeekCode-2: o? K? w--- O M- V PS PE+ Y PGP++ t+ 5 X++ R tv++ b++ DI+ X-GeekCode-3: D++ G e- h! r !y+ Date: Sun, 02 Jan 2000 21:25:24 +0100 (CET) Organization: Lublin BSD Users Group (www.FreeBSD.lublin.pl) From: Przemyslaw Frasunek To: steve@FreeBSD.org, jacobsm@gate.net, freebsd-bugs@freebsd.org Subject: Re: bin/15831: pr command segfaults as non-root user Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 02-Jan-00 steve@FreeBSD.org wrote: > Still not enough information to help out. I cannot reproduce this on any > of the boxes here either, so I can't guess at what might be wrong. Please > send us the information that I requested of you in private mail and we'll > help to the best of our ability. Please don't open another PR. If you > want to send us details of the problem, do so as a followup to this PR. I can reproduce this on 3.4-STABLE (as of 18 Dec 1999), but NOT on ANY other machine. lagoon:venglin:/dupa/pr# gdb ./pr GNU gdb 4.18 Copyright 1998 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 "i386-unknown-freebsd"... (gdb) run Starting program: /dupa/pr/./pr Program received signal SIGSEGV, Segmentation fault. 0x2808480c in strftime () from /usr/lib/libc.so.3 (gdb) bt #0 0x2808480c in strftime () from /usr/lib/libc.so.3 #1 0x280847e2 in strftime () from /usr/lib/libc.so.3 #2 0x28083b09 in strftime () from /usr/lib/libc.so.3 #3 0x804a405 in nxtfile (argc=1, argv=0xbfbfd6e4, fname=0xbfbfd698, buf=0x804f200 "", dt=0) at pr.c:1367 #4 0x8048bdf in onecol (argc=1, argv=0xbfbfd6e4) at pr.c:202 #5 0x8048a90 in main (argc=1, argv=0xbfbfd6e4) at pr.c:127 (gdb) break nxtfile Breakpoint 1 at 0x804a149: file pr.c, line 1263. (gdb) run Starting program: /dupa/pr/./pr Breakpoint 1, nxtfile (argc=1, argv=0xbfbfd6e4, fname=0xbfbfd698, buf=0x804f200 "", dt=0) at pr.c:1263 1263 struct tm *timeptr = NULL; (gdb) n 1267 ++twice; (gdb) 1268 if (eoptind >= argc) { (gdb) 1272 if (twice) (gdb) 1274 clearerr(stdin); (gdb) 1275 inf = stdin; (gdb) 1276 if (header != NULL) (gdb) 1279 *fname = FNAME; (gdb) 1280 if (nohead) (gdb) 1282 if (gettimeofday(&tv, &tz) < 0) { (gdb) 1289 tv_sec = tv.tv_sec; (gdb) 1290 timeptr = localtime(&tv_sec); (gdb) 1291 } (gdb) 1292 for (; eoptind < argc; ++eoptind) { (gdb) 1361 if (inf == NULL) (gdb) 1367 if (strftime(buf, HDBUF, timefrmt, timeptr) <= 0) { (gdb) Program received signal SIGSEGV, Segmentation fault. 0x2808480c in strftime () from /usr/lib/libc.so.3 (gdb) --- * Fido: 2:480/124 ** WWW: http://www.FreeBSD.lublin.pl ** NIC-HDL: PMF9-RIPE * * Inet: venglin@FreeBSD.lublin.pl ** PGP: D48684904685DF43 EA93AFA13BE170BF * To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message