Subject: kern/31325: tmpfs panic
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <juan@xtrarom.org>
List: netbsd-bugs
Date: 09/15/2005 20:48:00
>Number:         31325
>Category:       kern
>Synopsis:       tmpfs panic
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 15 20:48:00 +0000 2005
>Originator:     Juan RP
>Release:        NetBSD 3.99.8
>Organization:
Possibly maybe
>Environment:
System: NetBSD Nocturno 3.99.8 NetBSD 3.99.8 (Nocturno) #127: Thu Sep 15 22:17:45 CEST 2005 juan@Nocturno:/home/juan/build/obj/sys/arch/i386/compile/Nocturno i386
Architecture: i386
Machine: i386
>Description:
	I had a panic when trying to compile a package from pkgsrc
	with WRKOBJDIR pointing to a tmpfs directory.

	The backtrace was:

	pool_get()
	tmpfs_alloc_dirent()
	tmpfs_alloc_file()
	...

>How-To-Repeat:
	$ mount_tmpfs tmpfs /mnt/pkgsrc-obj
	$ echo "WRKOBJDIR=/mnt/pkgsrc-obj" >> /etc/mk.conf
	$ cd pkgsrc/foo/blah && make
	[panic]
>Fix: