From nobody@FreeBSD.org  Wed Mar 20 13:14:00 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 3700737B426
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Mar 2002 13:13:51 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g2KLDpN90691;
	Wed, 20 Mar 2002 13:13:51 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200203202113.g2KLDpN90691@freefall.freebsd.org>
Date: Wed, 20 Mar 2002 13:13:51 -0800 (PST)
From: Kirill <kirill@tavrida.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: kernel panic with option PPP_DEFLATE for 4.5-STABLE
X-Send-Pr-Version: www-1.0

>Number:         36149
>Category:       kern
>Synopsis:       kernel panic with option PPP_DEFLATE for 4.5-STABLE
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 20 13:20:01 PST 2002
>Closed-Date:    Mon Dec 09 13:11:49 PST 2002
>Last-Modified:  Mon Dec 09 13:11:49 PST 2002
>Originator:     Kirill
>Release:        4.5
>Organization:
Alpha Telecom
>Environment:
FreeBSD tsokol.cruiser.dod.ua 4.5-STABLE FreeBSD 4.5-STABLE #2: Sat Mar 16 17:41:33 EET 2002 root@tsokol.cruiser.dod.ua:/usr/src/sys/compile/tsokol  i386
>Description:
1) system message with fatal error

z_decompress0: inflate returned -2 ()
<118>Mar 16 17:32:06 tsokol pppd[168]: Lost compression sync: disabling compression


Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x4
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc0134bdb
stack pointer	        = 0x10:0xcccddef4
frame pointer	        = 0x10:0xcccddf18
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 184 (mail.local)
interrupt mask		= none
trap number		= 12
panic: page fault

syncing disks... 45 
done
Uptime: 56s

2)message after reboot

Mar 16 21:23:14 tsokol /kernel: FreeBSD 4.5-STABLE #2: Sat Mar 16 17:41:33 EET 2002
Mar 16 21:23:14 tsokol /kernel: root@tsokol.cruiser.dod.ua:/usr/src/sys/compile/tsokol
Mar 16 21:23:14 tsokol /kernel: Timecounter "i8254"  frequency 1193182 Hz
Mar 16 21:23:14 tsokol /kernel: Timecounter "TSC"  frequency 801813023 Hz
Mar 16 21:23:14 tsokol /kernel: CPU: Pentium III/Pentium III Xeon/Celeron (801.81-MHz 686-class CPU)
Mar 16 21:23:14 tsokol /kernel: Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
Mar 16 21:23:14 tsokol /kernel: Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
Mar 16 21:23:14 tsokol /kernel: real memory  = 268435456 (262144K bytes)

3) kernel configuration

machine		i386
ident		tsokol
maxusers	64
cpu		I686_CPU		# aka Pentium Pro(tm)
options 	COMPAT_43
options 	SYSVSHM		# include support for shared memory
options 	SYSVSEM		# include support for semaphores
options 	SYSVMSG		# include support for message queues
makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
options 	DDB
options 	DDB_UNATTENDED
options 	FFS
options 	MFS
options 	NFS_NOSERVER
options 	FDESC
options 	PROCFS
options 	CD9660			#ISO 9660 filesystem
options 	CD9660_ROOT		#CD-ROM usable as root device
options 	SOFTUPDATES
options		UFS_DIRHASH
options 	FFS_ROOT
options 	KTRACE			#kernel tracing
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	INET			#Internet communications protocols
device		miibus		# MII bus support
pseudo-device	ether			#Generic Ethernet
pseudo-device	loop			#Network loopback device
pseudo-device	bpf	4		#Berkeley packet filter
pseudo-device	ppp	8
options 	PPP_BSDCOMP
options 	PPP_DEFLATE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
options 	PPP_FILTER
options 	IPFIREWALL
options 	IPFIREWALL_VERBOSE
pseudo-device	pty		#Pseudo ttys
pseudo-device	snp	3	#Snoop device - to look at pty/vty/etc..
device		isa
options 	AUTO_EOI_1
device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1 flags 0x1
device		vga0	at isa?
pseudo-device	splash
device		sc0	at isa? flags 0x100
device		npx0	at nexus? port IO_NPX irq 13
device		ata0	at isa? port IO_WD1 irq 14
device		ata1	at isa? port IO_WD2 irq 15
device		ata
device		atadisk		# ATA disk drives
device		atapicd		# ATAPI CDROM drives
options 	ATA_STATIC_ID		#Static device numbering
device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0
device		rl		# RealTek 8129/8139
device		pci
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3
device		sio2	at isa? disable port IO_COM3 irq 5
device		sio3	at isa? disable port IO_COM4 irq 9
device		puc
options		CLK_CALIBRATION_LOOP
options		CLK_USE_TSC_CALIBRATION

4) nm -n /var/crash/kernel.0 | grep c0134

c01341f4 T exec_map_first_page
c01343cc T exec_unmap_first_page
c0134400 T exec_new_vmspace
c01344c8 T exec_extract_strings
c01345bc t exec_copyout_strings
c0134724 T exec_check_permissions
c013481c T exec_register
c01348c4 T exec_unregister
c0134998 T sys_exit
c01349ac T exit1
c0134ec4 T owait
c0134ef8 T wait4
c0134f0c t wait1
      
>How-To-Repeat:
Please, repeat on
kirill@tavrida.net

>Fix:
      I don't no, may be look at PPP_DEFLATE and /usr/src/sys/net/ppp_deflate.c (string 
with line number near 556) ?

>Release-Note:
>Audit-Trail:

From: Chris Faulhaber <jedgar@fxp.org>
To: Kirill <kirill@tavrida.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/36149: kernel panic with option PPP_DEFLATE for 4.5-STABLE
Date: Wed, 20 Mar 2002 18:13:14 -0500

 --OgqxwSJOaUobr8KG
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Wed, Mar 20, 2002 at 01:13:51PM -0800, Kirill wrote:
 >=20
 > >Number:         36149
 > >Category:       kern
 > >Synopsis:       kernel panic with option PPP_DEFLATE for 4.5-STABLE
 =2E..
 >=20
 > z_decompress0: inflate returned -2 ()
 > <118>Mar 16 17:32:06 tsokol pppd[168]: Lost compression sync: disabling c=
 ompression
 >=20
 
 This should be fixed with Matt Dillon's recent sys/net/zlib.c
 commit.  Can you update and see if it is fixed for you?
 
 --=20
 Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org
 --------------------------------------------------------
 FreeBSD: The Power To Serve   -   http://www.FreeBSD.org
 
 --OgqxwSJOaUobr8KG
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (FreeBSD)
 Comment: FreeBSD: The Power To Serve
 
 iEYEARECAAYFAjyZF4oACgkQObaG4P6BelDk9gCfWW4pu733ag+VA4iPjb9yoAw5
 2lsAoIKBCXJY/cKGRGlsIYY8zAy9o5AE
 =+b5R
 -----END PGP SIGNATURE-----
 
 --OgqxwSJOaUobr8KG--
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sun Dec 8 09:58:08 PST 2002 
State-Changed-Why:  

This is almost certainly fixed. Can you confirm that the panic no 
longer happens on a more recent -STABLE or release? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36149 
State-Changed-From-To: feedback->closed 
State-Changed-By: iedowse 
State-Changed-When: Mon Dec 9 13:08:13 PST 2002 
State-Changed-Why:  

Submitter confirms that a May 01 2002 system works fine (the zlib 
bug was corrected on March 20th). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36149 
>Unformatted:
