ssh & select() problem on 5.3

From: Claudiu Dragalia-Paraipan <dr.clau_at_gmail.com>
Date: Sun, 28 Nov 2004 12:02:55 +0200
Hello,

I've posted this on hackers list too, but it might be more 'at home' here.

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_at_gmail.com

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_at_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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Hyperthreading: 2 logical CPUs
real memory  = 250802176 (239 MB)
avail memory = 239951872 (228 MB)
ACPI APIC Table: <INTEL  D865GBF >
ioapic0 <Version 2.0> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <INTEL D865GBF> 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: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82865G (865G GMCH) SVGA controller> 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: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib1
rl0: <Accton MPX 5030/5038 10/100BaseTX> port 0xd800-0xd8ff mem 0xff8ffc00-0xff8ffcff irq 17 at device 5.0 on pci1
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:10:b5:87:62:d3
fxp0: <Intel 82801BA (D865) Pro/100 VE Ethernet> port 0xdc00-0xdc3f mem 0xff8fe000-0xff8fefff irq 20 at device 8.0 on pci1
miibus1: <MII bus> on fxp0
inphy0: <i82562ET 10/100 media interface> on miibus1
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:0c:f1:e2:33:e5
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH5 UDMA100 controller> 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: <serial bus, SMBus> at device 31.3 (no driver attached)
pci0: <multimedia, audio> at device 31.5 (no driver attached)
acpi_button0: <Sleep Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
fdc0: <floppy drive controller> 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: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> 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 <WDC WD800JB-00DUA3/75.13B75> [155061/16/63] at ata0-master UDMA100
ad2: 39266MB <IC35L040AVVA07-0/VA2OA52A> [79780/16/63] at ata1-master UDMA100
acd0: CDRW <TEAC CD-W552G/Q4S2> at ata1-slave UDMA33
Mounting root from ufs:/dev/ad0s3a
pflog0: promiscuous mode enabled

Received on Sun Nov 28 2004 - 09:01:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:23 UTC