Skip site navigation (1)Skip section navigation (2)
Date:        Sun, 02 Jan 2000 21:25:24 +0100 (CET)
From:      Przemyslaw Frasunek <venglin@FreeBSD.lublin.pl>
To:        steve@FreeBSD.org, jacobsm@gate.net, freebsd-bugs@freebsd.org
Subject:   Re: bin/15831: pr command segfaults as non-root user
Message-ID:  <XFMail.000102212524.venglin@FreeBSD.lublin.pl>
In-Reply-To: <200001021957.LAA59729@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.000102212524.venglin>