Subject: Re: panic in procfs
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: current-users
Date: 10/30/2003 14:53:55
In article <20031030091728.GA2600@openbsd.cz>,
Milos Urbanek <urbanek@openbsd.cz> wrote:
>Hi,
>
>I'm running NetBSD 1.6ZC. When I start openoffice 1.1, the system panics.
>It does not happend however every time. Sometimes everything goes fine
>and I can get openoffice running without problems.
>The error happens even before the openoffice main window is initialized.
>The procfs is obviously mounted with -o linux.
>
>Any help appreciated.
>
>Milos

I am just guessing here, but try this:

Index: procfs_linux.c
===================================================================
RCS file: /cvsroot/src/sys/miscfs/procfs/procfs_linux.c,v
retrieving revision 1.14
diff -u -u -r1.14 procfs_linux.c
--- procfs_linux.c	21 Aug 2003 23:00:07 -0000	1.14
+++ procfs_linux.c	30 Oct 2003 14:50:46 -0000
@@ -172,7 +172,7 @@
 	    p->p_pgid,
 	    p->p_session->s_sid,
 	    tty ? tty->t_dev : 0,
-	    tty ? tty->t_pgrp->pg_id : 0,
+	    (tty && tty->t_pgrp) ? tty->t_pgrp->pg_id : 0,
 
 	    p->p_flag,