From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 27 11:06:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0804D16A4CE for ; Sat, 27 Nov 2004 11:06:22 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C17243D2F for ; Sat, 27 Nov 2004 11:06:21 +0000 (GMT) (envelope-from dr.clau@gmail.com) Received: by rproxy.gmail.com with SMTP id b11so275286rne for ; Sat, 27 Nov 2004 03:06:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:return-path:message-id:disposition-notification-to:date:from:user-agent:x-accept-language:mime-version:to:subject:x-enigmail-version:x-enigmail-supports:content-type; b=RpH6etw55iYcLyDWvbAv3ASSb9p+OVf9OLN4tuiVoSqogVmq6KEYJ1noRh21JFurAG5uR11qjyTusaSim8Ow4wdZ2zlnQ4OU/gPOBLvj20Domt4wc2oIvTXYZ3bBm62MX6d/gC9np5oOMGbnpjhPtZYz5sPXab7U7YKJJ2zpVHs= Received: by 10.38.67.36 with SMTP id p36mr820881rna; Sat, 27 Nov 2004 03:06:20 -0800 (PST) Received: from ?82.79.29.15? ([82.79.29.15]) by smtp.gmail.com with ESMTP id 63sm3643rna; Sat, 27 Nov 2004 03:06:20 -0800 (PST) Message-ID: <41A85FE7.4040302@gmail.com> Date: Sat, 27 Nov 2004 13:07:19 +0200 From: Claudiu Dragalia-Paraipan User-Agent: Mozilla Thunderbird 0.9 (X11/20041125) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBB68D212D5305B979F6A8417" Subject: ssh & select() problem on 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Nov 2004 11:06:22 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBB68D212D5305B979F6A8417 Content-Type: multipart/mixed; boundary="------------000701020803030504030506" This is a multi-part message in MIME format. --------------000701020803030504030506 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, since I have upgraded to FreeBSD 5.3 I have the following problem with SSH client: I log on several FreeBSD 5.2.1 machines, and when I start a command that gives a 'large' result (like dmesg, cat a file), ssh client locks. I ran ssh in gdb, and found out that it locks in select() in libc.so.5. I do it like this: run ssh in gdb, connect to the host, run a dmesg. After this it locks, and I have to send a SIGKILL or SIGTERM before I can see this in gdb: Program received signal SIGTERM, Terminated. 0x282b5dd7 in select () from /lib/libc.so.5 (gdb) The result of a bt is (if relevant): #0 0x282b5dd7 in select () from /lib/libc.so.5 #1 0x08050aae in ?? () #2 0x0000000a in ?? () #3 0x0806e3a0 in ?? () #4 0x0806e3c0 in ?? () #5 0x00000000 in ?? () #6 0x00000000 in ?? () #7 0x0806e3a0 in ?? () #8 0xbfbfe878 in ?? () #9 0x08050a47 in ?? () #10 0x280c1134 in datafellows () from /usr/lib/libssh.so.2 #11 0x280c11e0 in datafellows () from /usr/lib/libssh.so.2 #12 0xbfbfe818 in ?? () #13 0x280ab99f in packet_read_expect () from /usr/lib/libssh.so.2 #14 0x08051efd in ?? () #15 0xbfbfe8b0 in ?? () #16 0xbfbfe8b4 in ?? () #17 0xbfbfe8b8 in ?? () #18 0xbfbfe8bc in ?? () #19 0x00000000 in ?? () #20 0x00000000 in ?? () #21 0xbfbfe948 in ?? () #22 0x08051ec5 in ?? () #23 0x080644dc in ?? () #24 0x080644c0 in ?? () #25 0xc856fd7a in ?? () #26 0x41d06a17 in ?? () #27 0x0806e3a0 in ?? () #28 0x0806e3c0 in ?? () #29 0x00000009 in ?? () #30 0x00000004 in ?? () #31 0x0805e87c in ?? () #32 0xbfbfe904 in ?? () #33 0x28066b02 in rlock_release () from /libexec/ld-elf.so.1 #34 0x0804e8e7 in ?? () #35 0x00000001 in ?? () #36 0x0000007e in ?? () #37 0x00000000 in ?? () #38 0x0804e880 in ?? () #39 0x08060180 in ?? () #40 0x0805ef2c in environ () #41 0xbfbfeb80 in ?? () #42 0x0804da63 in ?? () #43 0x28085150 in ?? () #44 0xbfbfeb48 in ?? () #45 0xbfbfe998 in ?? () #46 0x28064262 in find_symdef () from /libexec/ld-elf.so.1 Previous frame inner to this frame (corrupt stack?) This happens both in SMP on UP kernels. Attached is dmesg for UP kernel. Also, ocasionally it hangs at shutdown or reboot, at random places (?), and it seems to be happening after I have a locked ssh client in the system. If you need more informations about this, and you think this are related, let me know and I will run a kernel with debugging enabled, to get more informations. Best regards, -- Claudiu Dragalina-Paraipan dr.clau@gmail.com --------------000701020803030504030506 Content-Type: text/plain; name="dmesg.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dmesg.txt" Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.3-RELEASE-p1 #0: Sat Nov 27 12:37:28 EET 2004 root@oxygen:/usr/obj/usr/src/sys/O2 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2793.20-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf29 Stepping = 9 Features=0xbfebfbff Hyperthreading: 2 logical CPUs real memory = 250802176 (239 MB) avail memory = 239951872 (228 MB) ACPI APIC Table: ioapic0 irqs 0-23 on motherboard npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: port 0xec00-0xec07 mem 0xffa80000-0xffafffff,0xf0000000-0xf7ffffff irq 16 at device 2.0 on pci0 agp0: detected 16252k stolen memory agp0: aperture size is 128M pcib1: at device 30.0 on pci0 pci1: on pcib1 rl0: port 0xd800-0xd8ff mem 0xff8ffc00-0xff8ffcff irq 17 at device 5.0 on pci1 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:10:b5:87:62:d3 fxp0: port 0xdc00-0xdc3f mem 0xff8fe000-0xff8fefff irq 20 at device 8.0 on pci1 miibus1: on fxp0 inphy0: on miibus1 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:0c:f1:e2:33:e5 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pci0: at device 31.3 (no driver attached) pci0: at device 31.5 (no driver attached) acpi_button0: on acpi0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 fdc0: port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3,0x3f0-0x3f1 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A pmtimer0 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled Timecounter "TSC" frequency 2793198416 Hz quality 800 Timecounters tick every 10.000 msec acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0% ad0: 76319MB [155061/16/63] at ata0-master UDMA100 ad2: 39266MB [79780/16/63] at ata1-master UDMA100 acd0: CDRW at ata1-slave UDMA33 Mounting root from ufs:/dev/ad0s3a pflog0: promiscuous mode enabled --------------000701020803030504030506-- --------------enigBB68D212D5305B979F6A8417 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBqF/tm0FWxb+swkQRArBaAJ9lz2k42RjVobWCmm4RTTFOgB5PgQCfalAi XMSepPW138HZixyT96ees3I= =QcVl -----END PGP SIGNATURE----- --------------enigBB68D212D5305B979F6A8417--