Subject: trying to run mozilla and firefox in chroot
To: None <netbsd-help@netbsd.org>
From: Dieter <netbsd@sopwith.solgatos.com>
List: netbsd-help
Date: 07/29/2005 12:13:45
NetBSD 2.0.2 on alpha

Trying to run mozilla and firefox under chroot.
Netscape, dillo, and links-gui work under chroot, but
mozilla-1.7.5 (the binary pkg) and firefox-1.0.1 (the binary pkg)
do not.

Both mozilla and firefox will bring up a window if run
normally (no chroot).  But under chroot, firefox prints

	GLib: Cannot convert message: Could not open converter from 'UTF-8' to '646'

	(firefox-bin:22945): Gdk-WARNING **: Error converting from UTF-8 to STRING:
		 Could not open converter from 'UTF-8' to 'ISO-8859-1'

	(firefox-bin:22945): Gdk-WARNING **: Error converting from UTF-8 to STRING:
		 Could not open converter from 'UTF-8' to 'ISO-8859-1'

and then exits.  These warnings are not printed in the non-chroot case.

Under chroot, mozilla doesn't print anything, and hangs.  Top says mozilla is in state poll.

I created wrapper scripts that change any environment variables and strip off
references to directories not available in chroot.

I touched a timestamp file and ran "find / -anewer" to find all the files that
the non-chroot mozilla/firefox accessed and copied any missing ones over to
the chroot, and verified ownership and permissions.  Also ran cmp and copied
files that didn't match.  No filesystems are mounted noatime or readonly,
so I think find shouldn't be missing anything?

I tried running ktrace, but it doesn't work across exec, dispite the -id flags.
Is this a bug in ktrace?

I'm out of ideas.  What am I missing?