Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jul 1999 09:46:28 +0530
From:      "Biju Susmer" <bee@wipinfo.soft.net>
To:        <freebsd-bugs@FreeBSD.ORG>
Subject:   "3.2-RELEASE #0" crashed
Message-ID:  <000c01bed71d$a5b55360$88291fac@wipro.tcpn.com>

next in thread | raw e-mail | index | archive | help
ooops! the encoding (base64) looks stupid in the mailing list... trying again!
sorry


Hi,

   The following program caused my system to crash and reboot. I was
doing a stress test on my machine by keeping it 200% busy... My uid is
1001 [not root ;) ]. I attached all details which i think may be useful.
The system has swap of 37MB on /dev/wd0s2b.

Category: kern
Sev: serious
Pri: High
Class: sw_bug

3 out of 6 times it rebooted. In all cases, the message "swap_pager: out of swap
space" was repeated at least 7 times. The messages generated were different.
  * first time i could not catch (un-expected)
  * second and third time it showed some thing, and gave me 15 seconds, but i
could not do anything. I remember it is some thing "de allocated many times" or
so. PLEASE TELL ME HOW CAN I CATCH THE MESSAGES IF I WANT TO GIVE IT TO U!!

The rest 3 times, it went to some loop, i believe. Nothing worked. The chars i
typed were echod on the terminal in which i started the program. Also switching
screens (v0-v2) were fine, but nothing echod on those screens. Intr or quit char
didn't have any effect. at last after one minute i resetted.

i tried changing kern.securelevel to 2 but that also didn't help.

Ask me if u need more information.

thanks,

-bee



$ cat crash.c
/* program to create "out of CPU" error */
#include<sys/types.h>
#include<unistd.h>

main()
{
	while(1)
		if(fork()< 0) /* multiply... */
			while(1); /* if no more processes, eat up CPU */
}

$ uname -a
FreeBSD bash 3.2-RELEASE FreeBSD 3.2-RELEASE #0: Tue May 18 04:05:08 GMT 1999
jkh@cathair:/usr/src/sys/compile/GENERIC  i386


$ sysctl -a
kern.ostype: FreeBSD
kern.osrelease: 3.2-RELEASE
kern.osrevision: 199506
kern.version: FreeBSD 3.2-RELEASE #0: Tue May 18 04:05:08 GMT 1999
    jkh@cathair:/usr/src/sys/compile/GENERIC

kern.maxvnodes: 1362
kern.maxproc: 532
kern.maxfiles: 1064
kern.argmax: 65536
kern.securelevel: -1
kern.hostname: bash
kern.hostid: 0
kern.clockrate: { hz = 100, tick = 10000, tickadj = 5, profhz = 1024, stathz =
128 }
kern.posix1version: 199009
kern.ngroups: 16
kern.job_control: 1
kern.saved_ids: 0
kern.boottime: { sec = 932909434, usec = 851781 } Sun Jul 25 19:00:34 1999
kern.domainname:
kern.osreldate: 320001
kern.bootfile: /kernel
kern.maxfilesperproc: 1064
kern.maxprocperuid: 531
kern.dumpdev: { major = 255, minor = -65281 }
kern.ipc.maxsockbuf: 262144
kern.ipc.sockbuf_waste_factor: 8
kern.ipc.somaxconn: 128
kern.ipc.max_linkhdr: 16
kern.ipc.max_protohdr: 40
kern.ipc.max_hdr: 56
kern.ipc.max_datalen: 40
kern.ipc.nmbclusters: 1024
kern.ipc.maxsockets: 1064
kern.dummy: 0
kern.ps_strings: -1077944336
kern.usrstack: -1077944320
kern.logsigexit: 1
kern.cam.cd.changer.min_busy_seconds: 5
kern.cam.cd.changer.max_busy_seconds: 15
kern.module_path: /;/boot/;/modules/
kern.acct_suspend: 2
kern.acct_resume: 4
kern.acct_chkfreq: 15
kern.timecounter.method: 0
kern.fast_vfork: 1
kern.ntp_pll.mult: 0
kern.ntp_pll.div: 0
kern.sugid_coredump: 0
kern.corefile: %N.core
kern.quantum: 10
kern.ccpu: 1948
kern.fscale: 2048
kern.devstat.numdevs: 2
kern.devstat.generation: 2
kern.devstat.version: 3
kern.consmute: 0
vm.loadavg: { 0.02 0.04 0.01 }
vm.v_free_min: 133
vm.v_free_target: 384
vm.v_free_reserved: 118
vm.v_inactive_target: 576
vm.v_cache_min: 384
vm.v_cache_max: 768
vm.v_pageout_free_min: 34
vm.pageout_algorithm: 0
vm.swap_enabled: 1
vm.swap_idle_threshold1: 2
vm.swap_idle_threshold2: 10
vm.stats.sys.v_swtch: 3764
vm.stats.sys.v_trap: 9440
vm.stats.sys.v_syscall: 23506
vm.stats.sys.v_intr: 113955
vm.stats.sys.v_soft: 2701
vm.stats.vm.v_vm_faults: 10998
vm.stats.vm.v_cow_faults: 4352
vm.stats.vm.v_cow_optim: 654
vm.stats.vm.v_zfod: 2393
vm.stats.vm.v_ozfod: 2261
vm.stats.vm.v_swapin: 0
vm.stats.vm.v_swapout: 0
vm.stats.vm.v_swappgsin: 0
vm.stats.vm.v_swappgsout: 0
vm.stats.vm.v_vnodein: 205
vm.stats.vm.v_vnodeout: 0
vm.stats.vm.v_vnodepgsin: 1472
vm.stats.vm.v_vnodepgsout: 0
vm.stats.vm.v_intrans: 1
vm.stats.vm.v_reactivated: 0
vm.stats.vm.v_pdwakeups: 0
vm.stats.vm.v_pdpages: 0
vm.stats.vm.v_dfree: 0
vm.stats.vm.v_pfree: 4281
vm.stats.vm.v_tfree: 9469
vm.stats.vm.v_page_size: 4096
vm.stats.vm.v_page_count: 3323
vm.stats.vm.v_free_reserved: 118
vm.stats.vm.v_free_target: 384
vm.stats.vm.v_free_min: 133
vm.stats.vm.v_free_count: 563
vm.stats.vm.v_wire_count: 692
vm.stats.vm.v_active_count: 744
vm.stats.vm.v_inactive_target: 576
vm.stats.vm.v_inactive_count: 1315
vm.stats.vm.v_cache_count: 0
vm.stats.vm.v_cache_min: 384
vm.stats.vm.v_cache_max: 768
vm.stats.vm.v_pageout_free_min: 34
vm.stats.vm.v_interrupt_free_min: 2
vm.stats.misc.zero_page_count: 506
vm.stats.misc.cnt_prezero: 5432
vm.pageout_stats_max: 384
vm.pageout_full_stats_interval: 20
vm.pageout_stats_interval: 5
vm.pageout_stats_free_max: 5
vm.swap_idle_enabled: 0
vm.defer_swapspace_pageouts: 0
vm.disable_swapspace_pageouts: 0
vm.max_page_launder: 32
vm.zone:
ITEM            SIZE     LIMIT    USED    FREE  REQUESTS

PIPE:            160,        0,      2,    100,       29
unpcb:            64,        0,      3,    125,        3
ripcb:            96,     1064,      0,     42,        0
tcpcb:           288,     1064,      7,     21,        5
udpcb:            96,     1064,      5,     79,        8
unpcb:            64,        0,      0,      0,        0
socket:          160,     1064,     16,     34,       22
AIOLIO:          704,        0,      0,      0,        0
AIOL:             64,        0,      0,      0,        0
AIOCB:           128,        0,      0,      0,        0
AIOP:             32,        0,      0,      0,        0
AIO:              96,        0,      0,      0,        0
NFSNODE:         288,        0,      0,      0,        0
NFSMOUNT:        544,        0,      0,      0,        0
VNODE:           192,        0,    250,     68,      247
NAMEI:          1024,        0,      0,     16,     2725
VMSPACE:         192,        0,     13,     51,      253
PROC:            352,        0,     16,     42,      256
DP fakepg:        64,        0,      0,      0,        0
PV ENTRY:         28,   114586,   1647,   2446,    37469
MAP ENTRY:        40,        0,    172,    160,     7486
KMAP ENTRY:       40,      958,     37,    193,      147
MAP:             100,        0,      7,      3,        7
VM OBJECT:       136,        0,    319,     57,     4213
vm.zone_kmem_pages: 8
vm.zone_kmem_kvaspace: 3817472
vm.zone_kern_pages: 39
vfs.nfs.nfs_privport: 0
vfs.nfs.async: 0
vfs.nfs.gatherdelay: 10000
vfs.nfs.gatherdelay_v3: 0
vfs.nfs.defect: 0
vfs.nfs.diskless_valid: 0
vfs.nfs.diskless_rootpath:
vfs.nfs.diskless_swappath:
vfs.nfs.access_cache_timeout: 2
vfs.nfs.access_cache_hits: 0
vfs.nfs.access_cache_fills: 0
vfs.numdirtybuffers: 5
vfs.lodirtybuffers: 30
vfs.hidirtybuffers: 60
vfs.numfreebuffers: 320
vfs.lofreebuffers: 23
vfs.hifreebuffers: 46
vfs.maxbufspace: 1363968
vfs.bufspace: 1368064
vfs.maxvmiobufspace: 909312
vfs.vmiospace: 1016832
vfs.maxmallocbufspace: 68198
vfs.bufmallocspace: 60416
vfs.kvafreespace: 65536
vfs.cache.numneg: 15
vfs.cache.numcache: 246
vfs.cache.numcalls: 5549
vfs.cache.dothits: 81
vfs.cache.dotdothits: 3
vfs.cache.numchecks: 4611
vfs.cache.nummiss: 1225
vfs.cache.nummisszap: 15
vfs.cache.numposzaps: 22
vfs.cache.numposhits: 4027
vfs.cache.numnegzaps: 7
vfs.cache.numneghits: 169
vfs.cache.numcwdcalls: 18
vfs.cache.numcwdfail1: 0
vfs.cache.numcwdfail2: 0
vfs.cache.numcwdfail3: 0
vfs.cache.numcwdfail4: 0
vfs.cache.numcwdfound: 18
vfs.mod0: 0
vfs.mod1: 0
vfs.usermount: 0
vfs.aio.max_aio_per_proc: 32
vfs.aio.max_aio_queue_per_proc: 256
vfs.aio.max_aio_procs: 32
vfs.aio.num_aio_procs: 0
vfs.aio.num_queue_count: 0
vfs.aio.max_aio_queue: 1024
vfs.aio.target_aio_procs: 0
vfs.aio.max_buf_aio: 16
vfs.aio.num_buf_aio: 0
vfs.aio.aiod_lifetime: 3000
vfs.aio.aiod_timeout: 1000
vfs.ffs.doreallocblks: 1
vfs.ffs.doasyncfree: 1
net.local.stream.sendspace: 8192
net.local.stream.recvspace: 8192
net.local.dgram.maxdgram: 2048
net.local.dgram.recvspace: 4096
net.local.inflight: 0
net.inet.ip.portrange.lowfirst: 1023
net.inet.ip.portrange.lowlast: 600
net.inet.ip.portrange.first: 1024
net.inet.ip.portrange.last: 5000
net.inet.ip.portrange.hifirst: 49152
net.inet.ip.portrange.hilast: 65535
net.inet.ip.forwarding: 0
net.inet.ip.redirect: 1
net.inet.ip.ttl: 64
net.inet.ip.rtexpire: 3600
net.inet.ip.rtminexpire: 10
net.inet.ip.rtmaxcache: 128
net.inet.ip.sourceroute: 0
net.inet.ip.intr_queue_maxlen: 50
net.inet.ip.intr_queue_drops: 0
net.inet.ip.accept_sourceroute: 0
net.inet.ip.fastforwarding: 0
net.inet.ip.subnets_are_local: 0
net.inet.icmp.maskrepl: 0
net.inet.icmp.icmplim: -1
net.inet.icmp.bmcastecho: 0
net.inet.tcp.rfc1323: 0
net.inet.tcp.rfc1644: 0
net.inet.tcp.mssdflt: 512
net.inet.tcp.rttdflt: 3
net.inet.tcp.keepidle: 14400
net.inet.tcp.keepintvl: 150
net.inet.tcp.sendspace: 16384
net.inet.tcp.recvspace: 16384
net.inet.tcp.keepinit: 150
net.inet.tcp.log_in_vain: 0
net.inet.tcp.delayed_ack: 1
net.inet.tcp.pcbcount: 7
net.inet.tcp.always_keepalive: 0
net.inet.udp.checksum: 1
net.inet.udp.maxdgram: 9216
net.inet.udp.recvspace: 41600
net.inet.udp.log_in_vain: 0
net.inet.raw.maxdgram: 8192
net.inet.raw.recvspace: 8192
net.link.generic.system.ifcount: 5
net.link.ether.inet.prune_intvl: 300
net.link.ether.inet.max_age: 1200
net.link.ether.inet.host_down_time: 20
net.link.ether.inet.maxtries: 5
net.link.ether.inet.useloopback: 1
net.link.ether.inet.proxyall: 0
debug.elf_trace: 0
debug.fdexpand: 4
debug.ttydebug: 0
debug.nchash: 2047
debug.ncnegfactor: 16
debug.numneg: 15
debug.numcache: 246
debug.vfscache: 1
debug.vnsize: 164
debug.ncsize: 36
debug.numvnodes: 250
debug.wantfreevnodes: 25
debug.freevnodes: 24
debug.disablecwd: 0
debug.if_tun_debug: 0
debug.ncr_debug: 0
hw.machine: i386
hw.model: Pentium/P55C
hw.ncpu: 1
hw.byteorder: 1234
hw.physmem: 13864960
hw.usermem: 11034624
hw.pagesize: 4096
hw.floatingpoint: 1
hw.machine_arch: i386
hw.availpages: 3225
machdep.consdev: { major = 0, minor = 0 }
machdep.adjkerntz: -19800
machdep.disable_rtc_set: 0
machdep.wall_cmos_clock: 1
machdep.do_dump: 1
machdep.ispc98: 0
machdep.msgbuf:
machdep.msgbuf_clear: 0
machdep.uc_devlist: $
machdep.uc_pnplist:
machdep.i8254_freq: 1193182
machdep.tsc_freq: 233865384
machdep.cs_recv_delay: 570
machdep.conspeed: 9600
user.cs_path: /usr/bin:/bin:/usr/sbin:/sbin:
user.bc_base_max: 99
user.bc_dim_max: 2048
user.bc_scale_max: 99
user.bc_string_max: 1000
user.coll_weights_max: 0
user.expr_nest_max: 32
user.line_max: 2048
user.re_dup_max: 255
user.posix2_version: 199212
user.posix2_c_bind: 0
user.posix2_c_dev: 0
user.posix2_char_term: 0
user.posix2_fort_dev: 0
user.posix2_fort_run: 0
user.posix2_localedef: 0
user.posix2_sw_dev: 0
user.posix2_upe: 0
user.stream_max: 20
user.tzname_max: 255
p1003_1b.asynchronous_io: 0
p1003_1b.mapped_files: 0
p1003_1b.memlock: 0
p1003_1b.memlock_range: 0
p1003_1b.memory_protection: 0
p1003_1b.message_passing: 0
p1003_1b.prioritized_io: 0
p1003_1b.priority_scheduling: 0
p1003_1b.realtime_signals: 0
p1003_1b.semaphores: 0
p1003_1b.fsync: 0
p1003_1b.shared_memory_objects: 0
p1003_1b.synchronized_io: 0
p1003_1b.timers: 0
p1003_1b.aio_listio_max: 0
p1003_1b.aio_max: 0
p1003_1b.aio_prio_delta_max: 0
p1003_1b.delaytimer_max: 0
p1003_1b.mq_open_max: 0
p1003_1b.pagesize: 4096
p1003_1b.rtsig_max: 0
p1003_1b.sem_nsems_max: 0
p1003_1b.sem_value_max: 0
p1003_1b.sigqueue_max: 0
p1003_1b.timer_max: 0


$ mount
/dev/wd0s2a on / (local, writes: sync 20 async 57)
/dev/wd0s2f on /usr (local, writes: sync 10 async 75)
/dev/wd0s2e on /var (local, writes: sync 114 async 151)
/dev/wd0s1 on /c: (local)
procfs on /proc (local)


$ df
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/wd0s2a     39647    21394    15082    59%    /
/dev/wd0s2f    501343   193892   267344    42%    /usr
/dev/wd0s2e     19815     1710    16520     9%    /var
/dev/wd0s1    1441400  1299552   141848    90%    /c:
procfs              4        4        0   100%    /proc


$ dmesg
Copyright (c) 1992-1999 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 3.2-RELEASE #0: Tue May 18 04:05:08 GMT 1999
    jkh@cathair:/usr/src/sys/compile/GENERIC
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium/P55C (233.87-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x543  Stepping=3
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  = 16777216 (16384K bytes)
config> di zp0
config> di ze0
config> di lnc0
config> di le0
config> di ie0
config> di fe0
config> di ex0
config> di ep0
config> di ed0
config> di cs0
config> di wt0
config> di scd0
config> di mcd0
config> di matcdc0
config> di aha0
config> di adv0
config> q
avail memory = 13205504 (12896K bytes)
Preloaded elf kernel "kernel" at 0xc0358000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc035809c.
Probing for devices on PCI bus 0:
chip0: <Host to PCI bridge (vendor=1039 device=5597)> rev 0x02 on pci0.0.0
chip1: <SiS 85c503> rev 0x01 on pci0.1.0
ide_pci0: <PCI IDE controller (busmaster capable)> rev 0xd0 int a irq 14 on
pci0.1.1
vga0: <Cirrus Logic GD5446 SVGA controller> rev 0x45 on pci0.9.0
Probing for PnP devices:
CSN 1 Vendor ID: CSC4236 [0x3642630e] Serial 0xffffffff Comp ID: @@@0000
[0x00000000]
Probing for devices on the ISA bus:
sc0 on isa
sc0: VGA color <16 virtual consoles, flags=0x0>
atkbdc0 at 0x60-0x6f on motherboard
atkbd0 irq 1 on isa
psm0 irq 12 on isa
psm0: model Generic PS/2 mouse, device ID 0
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <ST32122A>
wd0: 2014MB (4124736 sectors), 4092 cyls, 16 heads, 63 S/T, 512 B/S
wdc1 not found at 0x170
ppc0 at 0x378 irq 7 flags 0x40 on isa
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
lpt0: <generic printer> on ppbus 0
lpt0: Interrupt-driven port
ppi0: <generic parallel i/o> on ppbus 0
plip0: <PLIP network interface> on ppbus 0
lpt0: <generic printer> on ppbus 0
lpt0: Interrupt-driven port
bt_isa_probe: Probe failled for card at 0x330
bt_isa_probe: Probe failled for card at 0x334
bt_isa_probe: Probe failled for card at 0x230
bt_isa_probe: Probe failled for card at 0x234
bt_isa_probe: Probe failled for card at 0x130
bt_isa_probe: Probe failled for card at 0x134
bt0 not found at 0x134
vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
npx0 on motherboard
npx0: INT 16 interface
Intel Pentium detected, installing workaround for F00F bug
changing root device to wd0s2a
WARNING: / was not properly dismounted



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000c01bed71d$a5b55360$88291fac>