Date: Sun, 13 Apr 1997 16:45:57 +0300 (IDT) From: Gennady Sorokopud <gena@NetVision.net.il> To: current@freebsd.org Subject: vfork() hangs Message-ID: <XFMail.970413165635.gena@NetVision.net.il>
index | next in thread | raw e-mail
Hi!
After recompiling the latest kernel i suddenly discovered that xrdb hangs when
i try to start the X server. After closer examination i found out that popen()
was the culprit, which on it's turn uses vfork(). After replacing vfork with
fork in popen.c (inside libc) things got back to normal. It looks really
strange because vfork in my program works just fine...
Also i'm having a few other problems with -current:
- QUOTA does not work. Actually it does, but when i try to reboot the system
panics.
- reboot hangs. however rebooting from single-user mode works fine.
- sometimes, when debugging a process with gdb , the debugged process gets
stuck with DEX+ status in ps. I can kill gdb after that, but the program is
stuck forever.
- the system freezes every 5-10 hours (no panic).
Here is my kernel configuration:
#
# BURKA -- my desktop machine
#
# $Id: BURKA,v 1.1 1995/01/26 11:38:00 gena Exp $
#
machine "i386"
cpu "I586_CPU"
maxusers 20
ident BURKA
options INET #InterNETworking
options FFS #Berkeley Fast File System
options PROCFS #Process File System
#options QUOTA #enable disk quotas
options "COMPAT_43" #Compatible with BSD 4.3
options BROKEN_KEYBOARD_RESET
options BOUNCE_BUFFERS #include support for DMA bounce buffers
options SYSVSHM
options SYSVSEM
options SYSVMSG
options UCONSOLE #X Console support
config kernel root on sd0 swap on sd0 dumps on sd0
controller isa0
controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk fd0 at fdc0 drive 0
device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr
device npx0 at isa? port "IO_NPX" irq 13 vector npxintr
device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr
device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr
device lpt0 at isa? port? tty irq 7 vector lptintr
device ep0 at isa? port 0x300 net irq 10 vector epintr
controller pci0
controller ahc1
controller scbus0
device vx0
device sd0
pseudo-device snp 1 #Snoop device - to look at pty/vty/etc..
pseudo-device loop
pseudo-device ether
pseudo-device log
pseudo-device tun 1
pseudo-device pty 16
pseudo-device speaker
pseudo-device bpfilter 1 #berkeley packet filter
pseudo-device gzip #Exec gzipped a.out's
And here is dmesg output:
Copyright (c) 1992-1997 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
FreeBSD 3.0-CURRENT #0: Sun Apr 13 14:36:05 IDT 1997
gena@Burka.NetVision.net.il:/usr/src/sys/compile/BURKA
CPU: Pentium (90.00-MHz 586-class CPU)
Origin = "GenuineIntel" Id = 0x525 Stepping=5
Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory = 41943040 (40960K bytes)
avail memory = 38965248 (38052K bytes)
Probing for devices on PCI bus 0:
chip0 <SiS 85c501> rev 64 on pci0:0:0
chip1 <SiS 85c503> rev 1 on pci0:1:0
pci0:8: CMD, device=0x0640, class=storage (ide) int a irq 14 [no driver
assigned]
vga0 <VGA-compatible display device> rev 0 int a irq ?? on pci0:9:0
vx0 <3COM 3C590 Etherlink III PCI> rev 0 int a irq 9 on pci0:11:0
utp[*utp*] address 00:20:af:f7:f2:dd
Warning! Defective early revision adapter!
ahc0 <Adaptec 2940 SCSI host adapter> rev 0 int a irq 11 on pci0:12:0
ahc0: aic7870 Single Channel, SCSI Id=7, 16 SCBs
scbus0 at ahc0 bus 0
sd0 at scbus0 target 0 lun 0
sd0: <HP C3725S 4299> type 0 fixed SCSI 2
sd0: Direct-Access 2069MB (4238836 512 byte sectors)
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 72065B
fd0: 1.44MB 3.5in
1 3C5x9 board(s) on ISA found at 0x300
ep0 at 0x300-0x30f irq 10 on isa
ep0: utp[*UTP*] address 00:60:97:23:a2:8b
npx0 on motherboard
npx0: INT 16 interface
WARNING: / was not properly dismounted.
pid 285 (tcsh), uid 0: exited on signal 11 (core dumped)
pid 7664 (tcsh), uid 0: exited on signal 11 (core dumped)
pid 454 (tcsh), uid 0: exited on signal 11 (core dumped)
Any ideas?
Best regards.
--------
Gennady B. Sorokopud - System programmer at NetVision Israel.
E-Mail: Gennady Sorokopud <gena@NetVision.net.il>
PGP public key is available by fingering gena@netvision.net.il
This message was sent at 13-Apr-97 16:45:57 by XFMail
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.970413165635.gena>
