From willow@mugen.ht.sfc.keio.ac.jp  Mon Jan  7 13:09:37 2002
Return-Path: <willow@mugen.ht.sfc.keio.ac.jp>
Received: from mugen.ht.sfc.keio.ac.jp (mugen.ht.sfc.keio.ac.jp [133.27.171.224])
	by hub.freebsd.org (Postfix) with ESMTP id 4C8B637B41C
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  7 Jan 2002 13:09:36 -0800 (PST)
Received: (from willow@localhost)
	by mugen.ht.sfc.keio.ac.jp (8.11.6/8.11.6) id g07LA0e00536;
	Tue, 8 Jan 2002 06:10:00 +0900 (JST)
	(envelope-from willow)
Message-Id: <200201072110.g07LA0e00536@mugen.ht.sfc.keio.ac.jp>
Date: Tue, 8 Jan 2002 06:10:00 +0900 (JST)
From: Tadashi Yanagihara <willow@ht.sfc.keio.ac.jp>
Reply-To: Tadashi Yanagihara <willow@ht.sfc.keio.ac.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: linux applications execution causes reboot
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         33662
>Category:       kern
>Synopsis:       linux applications execution causes reboot
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    roam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 07 13:10:01 PST 2002
>Closed-Date:    Tue Jan 8 08:01:53 PST 2002
>Last-Modified:  Tue Jan 08 08:02:32 PST 2002
>Originator:     Tadashi Yanagihara
>Release:        FreeBSD 4.5-PRERELEASE i386
>Organization:
Tokuda Laboratory, Keio University, Japan
>Environment:
>Description:
	Ever since from the 4.5-PRERELEASE-20011225, I have been experiencing reboots when trying to execute linux applications such as netscape and realplayer under linux-emulation. Acrobat Reader 4.05 does not cause a reboot, but ends with a segmentation fault. I have been hoping this problem would be fixed before code freeze, but unfortunently it seems to have gone unreported. I have not tryed with linux_base-7 yet.
>How-To-Repeat:
	using linux-netscape or realplayer causes reboot, acroread results in a segmentation fault
>Fix:

>Release-Note:
>Audit-Trail:

From: Willow <willow@ht.sfc.keio.ac.jp>
To: freebsd-gnats-submit@FreeBSD.org
Cc: willow@ht.sfc.keio.ac.jp
Subject: Re: kern/33662: linux applications execution causes reboot
Date: Tue, 08 Jan 2002 19:32:23 +0900 (JST)

 Follow up to Problem Report kern/33662...
 
 I thought about reinstalling the linux_base62, and 
 when I came upon the install phase... 
 
 > Fatal trap 12: page fault while in kernel mode
 > fault virtual address	  = 0x20
 > fault code		  = supervisor read, page not present
 > instruction pointer	  = 0x8:0xccca6583
 > stack pointer		  = 0x10:0xd9814d74
 > frame pointer		  = 0x10:0xd9814d80
 > 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	  = 288 (make)
 > interrupt mask	  = none
 > trap number		  = 12
 > panic: page fault
 
 a page fault...maybe this the thief behind those reboots.
 
 Also, I was skimming through other bug reports, when I came upon:
 
 > Problem Report kern/32353
 > if kern.maxproc > 512 sybase ASE 11.9.2(linux binary) exits on signal 11
 
 I haven't had any signal 11s so far, but my kern.maxproc IS 1988, 
 which is over 512. I doubt this is what is causing the reboots, however.
 
 I'll just post my sysctl parameters, just in case:
 
 my sysctl values:
 > kern.maxusers: 123 (128 in KERNEL)
 > kern.maxfilesperproc: 3578
 > kern.maxprocperuid: 1789
 
 In my sysctl.conf:
 > vfs.vmiodirenable=1
 > kern.ipc.somaxconn=4096
 > kern.maxfiles=65536
 
 I'll post again I find anything new...
 
 ---
 Regards,
 Tadashi Yanagihara <willow@ht.sfc.keio.ac.jp>
 

From: Peter Pentchev <roam@ringlet.net>
To: Tadashi Yanagihara <willow@ht.sfc.keio.ac.jp>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/33662: linux applications execution causes reboot
Date: Tue, 8 Jan 2002 13:30:36 +0200

 On Tue, Jan 08, 2002 at 06:10:00AM +0900, Tadashi Yanagihara wrote:
 > 
 > >Number:         33662
 > >Category:       kern
 > >Synopsis:       linux applications execution causes reboot
 > >Originator:     Tadashi Yanagihara
 > >Release:        FreeBSD 4.5-PRERELEASE i386
 > >Organization:
 > Tokuda Laboratory, Keio University, Japan
 > >Environment:
 > >Description:
 > 	Ever since from the 4.5-PRERELEASE-20011225, I have been experiencing reboots when trying to execute linux applications such as netscape and realplayer under linux-emulation. Acrobat Reader 4.05 does not cause a reboot, but ends with a segmentation fault. I have been hoping this problem would be fixed before code freeze, but unfortunently it seems to have gone unreported. I have not tryed with linux_base-7 yet.
 > >How-To-Repeat:
 > 	using linux-netscape or realplayer causes reboot, acroread results in a segmentation fault
 
 Maybe a stupid question, but.. are you sure that your Linux emulation
 kernel module (/modules/linux.ko) is in synch with your kernel and
 the userland Linux emulation utilities?  I mean, it is possible that
 you have an old linux.ko module, which does not play nice with some
 new changes in the kernel.  I know I had one - sometime around Christmas,
 a reboot into a newly updated kernel gave me a kernel panic at the Linux
 ldconfig stage at startup, until I found out that I did not have the Linux
 emulation module in the list of modules to rebuild, and that I had
 a linux.ko dating back to August..
 
 So in short: can you do an "ls -l /kernel /modules/linux.ko", and if it
 turns out that linux.ko is older than your kernel,
 "cd /usr/src/sys/modules/linux && make clean all install" ?
 
 G'luck,
 Peter
 
 -- 
 If wishes were fishes, the antecedent of this conditional would be true.

From: Willow <willow@ht.sfc.keio.ac.jp>
To: roam@ringlet.net
Cc: FreeBSD-gnats-submit@freebsd.org, willow@ht.sfc.keio.ac.jp
Subject: Re: kern/33662: linux applications execution causes reboot
Date: Wed, 09 Jan 2002 00:23:35 +0900 (JST)

 Tadashi here.
 
 From: Peter Pentchev <roam@ringlet.net>
 Subject: Re: kern/33662: linux applications execution causes reboot
 Date: Tue, 8 Jan 2002 13:30:36 +0200
 
 > Maybe a stupid question, but.. are you sure that your Linux emulation
 > kernel module (/modules/linux.ko) is in synch with your kernel and
 > the userland Linux emulation utilities?  I mean, it is possible that
 > you have an old linux.ko module, which does not play nice with some
 > new changes in the kernel.  I know I had one - sometime around Christmas,
 > a reboot into a newly updated kernel gave me a kernel panic at the Linux
 > ldconfig stage at startup, until I found out that I did not have the Linux
 > emulation module in the list of modules to rebuild, and that I had
 > a linux.ko dating back to August..
 
 Well, I'll be. :-) 
 
 I found my /kernel was updated to January 4th, but my /modules/linux.ko 
 had not been updated since December 18th. 
 
 > So in short: can you do an "ls -l /kernel /modules/linux.ko", and if it
 > turns out that linux.ko is older than your kernel,
 > "cd /usr/src/sys/modules/linux && make clean all install" ?
 
 I remade my usr/src/sys/modules/linux as you had prescribed, 
 and got my /modules/linux.ko updated to January 8th.
 
 However,
 
 "ELF interpreter /compat/linux/lib/ld-linux.so.2 not found
 Aborted"
 
 ...is all I got when I tried to launch some linux applications.
 
 I'm "make world"ing right now, trying to get things working again.
 I'll let you know once I'm finished.
 
 ---
 Regards,
 Tadashi Yanagihara <willow@ht.sfc.keio.ac.jp>

From: Peter Pentchev <roam@ringlet.net>
To: Willow <willow@ht.sfc.keio.ac.jp>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/33662: linux applications execution causes reboot
Date: Tue, 8 Jan 2002 17:30:28 +0200

 On Wed, Jan 09, 2002 at 12:23:35AM +0900, Willow wrote:
 > > So in short: can you do an "ls -l /kernel /modules/linux.ko", and if it
 > > turns out that linux.ko is older than your kernel,
 > > "cd /usr/src/sys/modules/linux && make clean all install" ?
 > 
 > I remade my usr/src/sys/modules/linux as you had prescribed, 
 > and got my /modules/linux.ko updated to January 8th.
 > 
 > However,
 > 
 > "ELF interpreter /compat/linux/lib/ld-linux.so.2 not found
 > Aborted"
 > 
 > ...is all I got when I tried to launch some linux applications.
 
 Have you removed all linux-base ports?  This would indicate that
 you have no linux-base port installed..
 
 G'luck,
 Peter
 
 -- 
 If I had finished this sentence,

From: Willow <willow@ht.sfc.keio.ac.jp>
To: roam@ringlet.net
Cc: FreeBSD-gnats-submit@freebsd.org, willow@ht.sfc.keio.ac.jp
Subject: Re: kern/33662: linux applications execution causes reboot
Date: Wed, 09 Jan 2002 00:42:31 +0900 (JST)

 Tadashi here again.
 
 From: Peter Pentchev <roam@ringlet.net>
 Subject: Re: kern/33662: linux applications execution causes reboot
 Date: Tue, 8 Jan 2002 17:30:28 +0200
 
 > > I remade my usr/src/sys/modules/linux as you had prescribed, 
 > > and got my /modules/linux.ko updated to January 8th.
 > > 
 > > However,
 > > 
 > > "ELF interpreter /compat/linux/lib/ld-linux.so.2 not found
 > > Aborted"
 > > 
 > > ...is all I got when I tried to launch some linux applications.
 > 
 > Have you removed all linux-base ports?  This would indicate that
 > you have no linux-base port installed..
 
 I realized this three minutes after I sent my reply...
 
 How silly of me! The linux port had aborted with a page fault, 
 therefore the installation had not completed yet.
 
 My nonworking applications now work fine.
 I guess this is one of those careless misses you come across 
 when you "make world"? :-)
 
 ---
 My appreciation towards Peter, and all the folks at FreeBSD,
 Tadashi Yanagihara <willow@ht.sfc.keio.ac.jp>
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Tue Jan 8 08:01:53 PST 2002 
State-Changed-Why:  
Support issue (kernel and module out of sync). 


Responsible-Changed-From-To: freebsd-bugs->roam 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Jan 8 08:01:53 PST 2002 
Responsible-Changed-Why:  
Peter did the support work. :-) 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33662 
>Unformatted:
 >System: FreeBSD mugen.ht.sfc.keio.ac.jp 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #4: Fri Jan 4 15:00:53 JST 2002 willow@mugen.ht.sfc.keio.ac.jp:/usr/src/sys/compile/MUGEN i386
