From nobody@FreeBSD.org Thu Oct 14 09:45:24 2004 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E014616A4CE for ; Thu, 14 Oct 2004 09:45:23 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1D6D43D66 for ; Thu, 14 Oct 2004 09:45:23 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i9E9it3E039735 for ; Thu, 14 Oct 2004 09:44:55 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i9E9haOk038678; Thu, 14 Oct 2004 09:43:36 GMT (envelope-from nobody) Message-Id: <200410140943.i9E9haOk038678@www.freebsd.org> Date: Thu, 14 Oct 2004 09:43:36 GMT From: Adrian Pircalabu To: freebsd-gnats-submit@FreeBSD.org Subject: telnet client crashes regularly on 4.10-STABLE if interrupted before connection is established X-Send-Pr-Version: www-2.3 >Number: 72676 >Category: bin >Synopsis: telnet client crashes regularly on 4.10-STABLE if interrupted before connection is established >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 14 09:50:22 GMT 2004 >Closed-Date: Mon Dec 20 11:19:34 GMT 2004 >Last-Modified: Mon Dec 20 11:19:34 GMT 2004 >Originator: Adrian Pircalabu >Release: 4.10-STABLE >Organization: BitDefender >Environment: FreeBSD host 4.10-STABLE FreeBSD 4.10-STABLE #4: Mon Aug 9 09:44:10 EEST 2004 root@host:/usr/obj/usr/src/sys/GENERIC i386 >Description: telnet crashes if it's interrupted with CTRL + \ while trying to connect to remote host. This occurs very often on a slow link which induces connection timeouts. It also crashes if it's interrupted before resolving the remote hostname (also connection related, I guess) >How-To-Repeat: 1. open a port on a remote system 2. filter that port dropping packets and try to connect there using telnet 3. CTRL + \ crashes it I got 2 types of crash: a. in connect () if it can't connect: (gdb) bt #0 0x28227bec in connect () from /usr/lib/libc.so.4 #1 0x804d0b0 in free () #2 0x804e0c2 in free () #3 0x8049e1e in free () b. in kevent () if it can't resolve (gdb) bt #0 0x28226c6c in kevent () from /usr/lib/libc.so.4 #1 0x28239461 in res_send () from /usr/lib/libc.so.4 #2 0x28240682 in getaddrinfo () from /usr/lib/libc.so.4 #3 0x28240b3d in getaddrinfo () from /usr/lib/libc.so.4 #4 0x282408a2 in getaddrinfo () from /usr/lib/libc.so.4 #5 0x28240088 in getaddrinfo () from /usr/lib/libc.so.4 #6 0x2823eda7 in getaddrinfo () from /usr/lib/libc.so.4 #7 0x2823ea2f in getaddrinfo () from /usr/lib/libc.so.4 #8 0x804cb96 in free () #9 0x804e0c2 in free () #10 0x8049e1e in free () >Fix: None known >Release-Note: >Audit-Trail: From: Adrian Pircalabu To: freebsd-gnats-submit@FreeBSD.org, apircalabu@bitdefender.com Cc: Subject: Re: i386/72676: telnet client crashes regularly on 4.10-STABLE if interrupted before connection is established Date: Thu, 14 Oct 2004 14:38:25 +0300 It also reproduces on 5.2.1-RELEASE uname -a FreeBSD host 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386 Unfortunately, I can't test it on 5.3 at this time -- Adrian Pircalabu -- This message was scanned for spam and viruses by BitDefender For more information please visit http://www.bitdefender.com/ Responsible-Changed-From-To: freebsd-i386->freebsd-bugs Responsible-Changed-By: linimon Responsible-Changed-When: Sun Oct 24 00:27:33 GMT 2004 Responsible-Changed-Why: This does not sound i386-specific. http://www.freebsd.org/cgi/query-pr.cgi?pr=72676 State-Changed-From-To: open->closed State-Changed-By: maxim State-Changed-When: Mon Dec 20 11:13:46 GMT 2004 State-Changed-Why: Control + tells kernel to send SIGQUIT to the foreground process group. The default action on SIGQUIT - create a core image and quit. Please refer to stty(1) and signal(3) man pages for more info. The default telnet escape sequence is ^], not ^. http://www.freebsd.org/cgi/query-pr.cgi?pr=72676 >Unformatted: