From andreas@klemm.gtn.com  Sat Jul 11 02:01:06 1998
Received: from news1.gtn.com (news1.gtn.com [192.109.159.3])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA13947
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 Jul 1998 02:01:04 -0700 (PDT)
          (envelope-from andreas@klemm.gtn.com)
Received: (from uucp@localhost)
	by news1.gtn.com (8.8.6/8.8.6) with UUCP id LAA23842
	for FreeBSD-gnats-submit@freebsd.org; Sat, 11 Jul 1998 11:00:07 +0200 (MET DST)
Received: (from andreas@localhost)
	by klemm.gtn.com (8.8.8/8.8.8) id KAA02456;
	Sat, 11 Jul 1998 10:52:41 +0200 (CEST)
	(envelope-from andreas)
Message-Id: <199807110852.KAA02456@klemm.gtn.com>
Date: Sat, 11 Jul 1998 10:52:41 +0200 (CEST)
From: Andreas Klemm <andreas@klemm.gtn.com>
Reply-To: andreas@klemm.gtn.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: processes die with signal 6, if machine out of swap, no recovery
X-Send-Pr-Version: 3.2

>Number:         7245
>Category:       kern
>Synopsis:       processes die with signal 6, if machine out of swap, no recovery
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 11 02:10:00 PDT 1998
>Closed-Date:    Wed Dec 19 17:47:26 PST 2001
>Last-Modified:  Wed Dec 19 17:48:15 PST 2001
>Originator:     Andreas Klemm
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

	FreeBSD-current since January 1998 as reported by
	Holm Tiffe <freebsd@magnet.geophysik.tu-freiberg.de>

>Description:

	When the machine is nearly out of swap (around 92% or 95%)
	then daemons start dying. The console under X11 isn't
	useable. Machine replies to ping's but a telnet via network
	in isn't possible, sine it reports:
	inetd in realloc(): error: junk pointer, too high to make sense.

	Here something from syslogd:
	
Jul 11 10:16:38 titan /kernel: swap_pager: suggest more swap space: 156 MB
Jul 11 10:16:53 titan su: andreas to root on /dev/ttyp1
Jul 11 10:18:23 titan /kernel: isppp0: phase terminate
Jul 11 10:18:23 titan /kernel: isppp0: phase dead
Jul 11 10:20:38 titan /kernel: isppp0: phase establish
Jul 11 10:20:40 titan /kernel: isppp0: phase authenticate
Jul 11 10:20:40 titan /kernel: isppp0: phase network
Jul 11 10:21:26 titan /kernel: pid 14964 (inetd), uid 0: exited on signal 6
Jul 11 10:22:57 titan /kernel: swap_pager: out of swap space
Jul 11 10:22:57 titan /kernel: pid 18354 (cc1), uid 0: exited on signal 6 (core 
dumped)
Jul 11 10:22:57 titan /kernel: pid 18344 (cc1), uid 0: exited on signal 6 (core 
dumped)
Jul 11 10:22:57 titan /kernel: pid 18351 (cc1), uid 0: exited on signal 6 (core 
dumped)
Jul 11 10:22:57 titan /kernel: pid 18338 (cc1), uid 0: exited on signal 6 (core 
dumped)
Jul 11 10:22:57 titan /kernel: pid 18319 (cc1), uid 0: exited on signal 6 (core 
dumped)
Jul 11 10:22:57 titan /kernel: pid 18337 (cc1), uid 0: exited on signal 6 (core 
dumped)
Jul 11 10:22:57 titan /kernel: pid 18345 (as), uid 0: exited on signal 6 (core
d
umped)
Jul 11 10:22:57 titan /kernel: pid 18329 (cc1), uid 0: exited on signal 6 (core 
dumped)
Jul 11 10:22:58 titan /kernel: pid 18341 (as), uid 0: exited on signal 6 (core
d
umped)
Jul 11 10:22:58 titan /kernel: pid 18340 (as), uid 0: exited on signal 6 (core
d
umped)
Jul 11 10:22:58 titan /kernel: pid 863 (top), uid 1000: exited on signal 6
Jul 11 10:22:58 titan /kernel: pid 18324 (as), uid 0: exited on signal 6 (core
d
umped)
Jul 11 10:22:58 titan /kernel: pid 18343 (as), uid 0: exited on signal 6 (core
d
umped)
Jul 11 10:22:58 titan /kernel: pid 18333 (as), uid 0: exited on signal 6 (core
d
umped)
Jul 11 10:22:58 titan /kernel: pid 816 (XF86_SVGA), uid 0: exited on signal 6
Jul 11 10:23:05 titan /kernel: isppp0: phase terminate
Jul 11 10:23:05 titan /kernel: isppp0: phase dead
Jul 11 10:26:21 titan /kernel: pid 18359 (inetd), uid 0: exited on signal 6
Jul 11 10:26:21 titan inetd[203]: /usr/local/libexec/tcpd[18359]: exit status
0x
6
Jul 11 10:26:21 titan /kernel: pid 18360 (inetd), uid 0: exited on signal 6
Jul 11 10:26:21 titan inetd[203]: /usr/local/libexec/tcpd[18360]: exit status
0x
6
Jul 11 10:26:21 titan /kernel: pid 18361 (inetd), uid 0: exited on signal 6
Jul 11 10:26:21 titan inetd[203]: /usr/local/libexec/tcpd[18361]: exit status
0x
6
Jul 11 10:26:21 titan /kernel: pid 18362 (inetd), uid 0: exited on signal 6
Jul 11 10:26:21 titan inetd[203]: /usr/local/libexec/tcpd[18362]: exit status
0x6

And lot's more of this inetd messages ....
This has already been discussed, in the -current mailinglist
under the subject "dying daemons". But it's still not solved.

>How-To-Repeat:

	Reduce your swap space, fire up netscape and such and
	perhaps a make -j 8 world and startup gimp and such ...
	I have a SMP machine with 2 PPro's 200, 80 MB,
	where I reduced the swap
	from:
Device      1K-blocks     Used    Avail Capacity  Type
/dev/sd0s2b     67584     9848    57608    15%    Interleaved
/dev/sd1s1b    102400     9808    92464    10%    Interleaved
/dev/sd2s1b    102400     9728    92544    10%    Interleaved
Total          272000    29384   242616    11%

	to:
/dev/sd0s2b     67584     9848    57608 ...


>Fix:
	
	Sorry, no idea.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sun Dec 2 10:09:15 PST 2001 
State-Changed-Why:  

Does this problem still occur? The "inetd in realloc(): error: junk 
pointer" bit was fixed long ago anyway. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=7245 
State-Changed-From-To: feedback->closed 
State-Changed-By: iedowse 
State-Changed-When: Wed Dec 19 17:47:26 PST 2001 
State-Changed-Why:  

Submitter says that this can be closed. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=7245 
>Unformatted:
