[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

telnet core dumps with long host names



telnet from 20001019 snapshot

reproduce with:-

# ./telnet llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch.co.uk 80

backtrace:-

Trying 194.42.244.17...
Memory fault (core dumped) 
root_(_at_)_bigtop:/usr/src/usr.bin/telnet
# gdb telnet telnet.core                                                       
GNU gdb 4.16.1
Copyright 1996 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-openbsd2.8"...
Core was generated by `telnet'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.so...done.
Reading symbols from /usr/lib/libcurses.so.7.1...done.
Reading symbols from /usr/lib/libkrb.so.9.0...done.
Reading symbols from /usr/lib/libdes.so.6.0...done.
Reading symbols from /usr/lib/libc.so.25.2...done.
#0  0x400e36a8 in strdup ()
(gdb) bt
#0  0x400e36a8 in strdup ()
#1  0x5a53 in env_define (var=0x5797 "USER", 
    value=0x6e727977 <Address 0x6e727977 out of bounds>) at commands.c:1728
#2  0x74c3 in tn (argc=0, argv=0x2) at commands.c:2494
#3  0x58 in ?? ()
#4  0xfffe in kerberos4_is ()
Cannot access memory at address 0xeb3ae990.
(gdb) root_(_at_)_bigtop:/usr/src/usr.bin/telnet

-- 
1024/D9C69DF9 steve mynott steve_(_at_)_tightrope_(_dot_)_demon_(_dot_)_co_(_dot_)_uk

    if we knew what it was we were doing, it would not be called research,
would it?  - albert einstein




Visit your host, monkey.org