From nobody  Thu Jul 31 10:48:17 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.5/8.8.5) id KAA22860;
          Thu, 31 Jul 1997 10:48:17 -0700 (PDT)
Message-Id: <199707311748.KAA22860@hub.freebsd.org>
Date: Thu, 31 Jul 1997 10:48:17 -0700 (PDT)
From: jason@ampersand.com
To: freebsd-gnats-submit@freebsd.org
Subject: "vm_fault: fault on nofault entry" when running latex2html 97-1
X-Send-Pr-Version: www-1.0

>Number:         4200
>Category:       kern
>Synopsis:       NFS: "vm_fault: fault on nofault entry" when running latex2html 97-1
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    peter
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 31 10:50:02 PDT 1997
>Closed-Date:    Mon Sep 25 12:53:02 PDT 2000
>Last-Modified:  Mon Sep 25 12:54:04 PDT 2000
>Originator:     Jason Brazile
>Release:        2.2.1-RELEASE
>Organization:
Ampersand Inc
>Environment:
FreeBSD question.ampersand.com 2.2.1-RELEASE FreeBSD 2.2.1-RELEASE #0: Sun Mar 30 18:15:57 EST 1997     jason@question.ampersand.com:/usr/src/sys/compile/QUESTION  i386
>Description:
The machine panics on trying to run the latex2html translation program.
My brother told me it happened to him and I went and got the latest
version of latex2html (97-1) from CTAN and just tried to run it on
the example that comes with it.

The panic appears to be:vm_fault.c: line 200

        if (entry->eflags & MAP_ENTRY_NOFAULT) {
                panic("vm_fault: fault on nofault entry, addr: %lx",
                        vaddr);
         }

This happens to me every time.

I get addrs around f3483000 and f34e8000 but I use a custom kernel so
that probably doesn't help (sorry I don't have kernel debugging turned
on).


>How-To-Repeat:
1) get latex2html-97.1 from CTAN
2) it is a pain in the ass to install, these commands might help:

#
# edit latex2html.config to set LATEX2HTMLDIR to /usr/local/share/latex2html
#
# and command paths to include /usr/local/bin
tar -cf - latex2html.config pstoimg texexpand install-test latex2html configure-
pstoimg icons.gif styles versions example tests| (cd /usr/local/share/latex2html
 && tar -xf -)
mkdir /usr/local/share/texmf/tex/latex/latex2html
(cd texinputs && (tar -cf - * | (cd /usr/local/share/texmf/tex/latex/latex2html 
&& tar -xf -)))
texhash

note that you also need perl, ghostscript, netpbm, and teTeX installed

You will get the panic right after it runs:

/usr/local/share/latex2html/pstoimg -gif -discard -interlace -antialias -geometr
y 348x16 -margins 134,72 -scale 1.6 -transparent -out s2img1.gif 258_image001.ps

Running that by itself on the command line works fine. Perhaps it is due to the
interaction with perl. Unfortunately, I didn't have time to track it down
further.
>Fix:

>Release-Note:
>Audit-Trail:

From: jason@ampersand.com (Jason Brazile)
To: freebsd-gnats-submit@freebsd.org
Cc:  Subject: Re: kern/4200: "vm_fault: fault on nofault entry" when running latex2html 97-1
Date: Thu, 31 Jul 1997 14:14:55 -0400

 Just to follow up my own report. I noticed someone else mentioned
 they thought this was related to NFS. Sure enough, I had been running
 this on an NFS partition mounted from a Solaris 2.5.1 machine. When
 I moved the example to a local filesystem, it worked fine and there
 was no panic.
 
 This makes me wish I reported the only other time I noticed a panic
 under FreeBSD 2.2.1 which was doing a "cvs remove -d" on a directory
 tree located on the same NFS mounted partition I am experiencing this
 problem.
 
 Jason
 
Responsible-Changed-From-To: freebsd-bugs->peter 
Responsible-Changed-By: phk 
Responsible-Changed-When: Mon May 4 04:13:43 PDT 1998 
Responsible-Changed-Why:  
->peter 

From: sysop@ripco.com (Ripco sysop)
To: freebsd-gnats-submit@freebsd.org, jason@ampersand.com
Cc:  Subject: re:kern/4200: NFS: %22vm_fault: fault on nofault entry%22 when running latex2html97-1
Date: Thu, 7 May 1998 17:58:02 -0500 (CDT)

 Running 2.2.6-RELEASE.
 
 I am experiencing the identical panic with the same 'nofault' message as
 documented in kern/4200, though I do not run Latex. The problem seems
 to be related to Perl.
 
 
 This is with several NFS partitions mounted from a Solaris machine, some
 read-only, some read-write, on a web server running numerous I/O intensive
 perl CGI scripts, Apache, and nothing else.
 
 When I was running 2.1.7-RELEASE and Perl5.002 this problem did not occur,
 moving up to 2.2.6-RELEASE and Perl5.00404 brought it on.
 
State-Changed-From-To: open->closed 
State-Changed-By: peter 
State-Changed-When: Mon Sep 25 12:53:02 PDT 2000 
State-Changed-Why:  
NFS problems of this sort are believed to be fixed in 4.x and beyond 

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