Vulnerability Development mailing list archives

less bug


From: prrar () NITNET COM BR (Ribeiro, Paulo)
Date: Sun, 26 Mar 2000 20:03:28 -0300


Hi, everyone.

Some time ago, I was playing with less (used by man) and I've found out
this:

When, in console, I ask:

$ uname -a
Linux linux.prrar.net 2.2.5-15 #1 Mon Apr 19 22:21:09 EDT 1999 i586
unknown
$ rpm -q less
less-332-6
$ less file
(...)
(press Print Scrn)
fileQuit (core dumped)
$ ls core
$ gdb less core
GNU gdb 4.17.0.11 with Linux support
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-redhat-linux"...
(no debugging symbols found)...
Core was generated by `less /etc/inittab'.
Program terminated with signal 3, Quit.
Reading symbols from /usr/lib/libncurses.so.4...(no debugging symbols
found)...
done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
#0  0x400f9534 in __libc_read ()
(gdb) where
#0  0x400f9534 in __libc_read ()
#1  0xffffffff in ?? ()
#2  0x8054f08 in winch ()
#3  0x804d1cc in clear ()
#4  0x804d403 in clear ()
#5  0x80495b4 in strcpy ()
#6  0x4006ecb3 in __libc_start_main (main=0x80492b0 <strcpy+192>,
argc=2,
    argv=0xbffffd94, init=0x8048e00 <_init>, fini=0x8054f6c <_fini>,
    rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffd8c)
    at ../sysdeps/generic/libc-start.c:78

In man, when Print Scrn is pressed:
(...)
:Quit
$ ls core
core

Any idea?

Yours,
Paulo Ribeiro.


Current thread: