From nobody@FreeBSD.org  Thu Jan  4 04:45:51 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id B45FA16A407
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  4 Jan 2007 04:45:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 8C98E13C455
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  4 Jan 2007 04:45:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l044jpQE011749
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 4 Jan 2007 04:45:51 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l044jpGm011748;
	Thu, 4 Jan 2007 04:45:51 GMT
	(envelope-from nobody)
Message-Id: <200701040445.l044jpGm011748@www.freebsd.org>
Date: Thu, 4 Jan 2007 04:45:51 GMT
From: Haven Hash<havenster@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Page Fault when attempting to run most network applications (sshd, sendmail, etc)
X-Send-Pr-Version: www-3.0

>Number:         107504
>Category:       i386
>Synopsis:       Page Fault when attempting to run most network applications (sshd, sendmail, etc)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    delphij
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 04 04:50:04 GMT 2007
>Closed-Date:    Fri Jan 05 06:18:09 GMT 2007
>Last-Modified:  Fri Jan 05 06:18:09 GMT 2007
>Originator:     Haven Hash
>Release:        6.1-RELEASE cvsup'd to 6.2-PRERELEASE
>Organization:
self - home user
>Environment:
FreeBSD  6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Tue Jan  2 14:22:41 PST 2007     root@:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I installed 6.1 RELEASE from cd and proceded to follow updating (builworld, buildkernel, mergemaster,etc) procedures from http://techstore.ie/phpBB2/viewtopic.php?p=338& after encountering my current problem I redid the entire procedure from the handbook page at http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html

Whenever I would attempt to boot the system (pretty stock poweredge 2400) it would page fault on the first network service (sshd, sendmail, etc). I used FreeSBie to disable each of these services in rc.conf and was able to successfully boot and log in. Though if I attempt to run ssh, sshd, fetch, etc the same page fault occurs, though I can succesfully run ping, traceroute, and dhclient. I tried a different ethernet card with no effect. I followed the handbook instructions and make a kernel dump and savecore and attempted to debug the kernel with kgdb. The information I got from these operations is below:

Unread portion of the kernel message buffer:
kernel trap 12 with interrupts disabled

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x74
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc06983fd
stack pointer           = 0x28:0xe9279be0
frame pointer           = 0x28:0xe9279be4
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 3153 (sshd)
trap number             = 12
panic: page fault
Uptime: 21h51m42s
Dumping 1023 MB (2 chunks)
  chunk 0: 1MB (160 pages) ... ok
  chunk 1: 1023MB (261886 pages) 1008 992 976 960 944 928 912 896 8
80 864 848 832 816 800 784 768 752 736 720 704 688 672 656 640 624
608 592 576 560 544 528 512 496 480 464 448 432 416 400 384 368 352
 336 320 304 288 272 256 240 224 208 192 176 160 144 128 112 96 80
64 48 32 16

#0  doadump () at pcpu.h:165
165     pcpu.h: No such file or directory.
        in pcpu.h

I have some C programming experience and went to line 165 in pcpu.h but I was unsure what to do, the line was an assembly call and looked important.

I did not have this issue upon initial install so I'll probably just reinstall and go with the cd builds or try 6.2 RC2. 

I would be happy to provide the dump or more information upon request.
>How-To-Repeat:
Run most network applications on my particular setup and hardware.

>Fix:

I am a single user and this is not very important, I was just curious about what was going on, do not invest effort if this looks to be a fruitless effort.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-net 
Responsible-Changed-By: remko 
Responsible-Changed-When: Thu Jan 4 07:23:32 UTC 2007 
Responsible-Changed-Why:  
Hello Networking team, can you please have a look at the 
reported issues. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107504 
State-Changed-From-To: open->feedback 
State-Changed-By: delphij 
State-Changed-When: Thu Jan 4 08:41:55 UTC 2007 
State-Changed-Why:  
Hi, Haven, 

I think this is a known and fixed issue.  Would you please 
confirm that your src/sys/netinet/tcp_subr.c is 1.228.2.13 
or higher?  If it is not, and you have 
src/sys/netinet/tcp_subr.c:1.228.2.12 *and* you have 
src/sys/netinet/tcp_usrreq.c:1.124.2.5, please re-cvsup 
your source tree and rebuild/install kernel. 

If you are not able to do cvsup, please manually apply the 
patch available at: 

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netinet/tcp_subr.c.diff?r1=1.228.2.12&r2=1.228.2.13 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107504 
Responsible-Changed-From-To: freebsd-net->delphij 
Responsible-Changed-By: delphij 
Responsible-Changed-When: Thu Jan 4 08:47:51 UTC 2007 
Responsible-Changed-Why:  
Handle this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107504 

From: "Haven Hash" <havenster@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: i386/107504: Page Fault when attempting to run most network applications (sshd, sendmail, etc)
Date: Thu, 4 Jan 2007 18:53:16 -0800

 ------=_Part_14614_2703616.1167965596364
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 I did indeed have version 1.228.2.12 of src/sys/netinet/tcp_subr.c and
 version 1.124.2.5 of src/sys/netinet/tcp_usrreq.c
 
 I applied the provided patch and redid the buildworld instructions from the
 handbook page at
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
 
 Everything appears to being working fine now, I have run many network
 services (ssh, fetch, etc) with no problems, I applaud your expediency and
 thank you for your assistance.
 
 Haven Hash
 
 ------=_Part_14614_2703616.1167965596364
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 <br>I did indeed have version <a href="http://1.228.2.12">1.228.2.12</a> of 
 src/sys/netinet/tcp_subr.c and 
 version <a href="http://1.124.2.5">1.124.2.5</a> of src/sys/netinet/tcp_usrreq.c <br><br>I applied the provided patch and redid the buildworld instructions from the handbook page at <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html">
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html</a><br><br>Everything appears to being working fine now, I have run many network services (ssh, fetch, etc) with no problems, I applaud your expediency and thank you for your assistance.
 <br><br>Haven Hash<br>
 
 ------=_Part_14614_2703616.1167965596364--
State-Changed-From-To: feedback->closed 
State-Changed-By: delphij 
State-Changed-When: Fri Jan 5 06:17:28 UTC 2007 
State-Changed-Why:  
Submitter has confirmed that latest 6-STABLE has fixed 
the issue, so close the PR. 

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