From owner-freebsd-current@FreeBSD.ORG Tue Jul 3 08:50:01 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 11C8816A46B for ; Tue, 3 Jul 2007 08:50:01 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 9028613C4B9 for ; Tue, 3 Jul 2007 08:50:00 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I5e51-0003KG-Mc for freebsd-current@freebsd.org; Tue, 03 Jul 2007 10:49:51 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Jul 2007 10:49:51 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Jul 2007 10:49:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Ivan Voras Date: Tue, 03 Jul 2007 10:49:30 +0200 Lines: 70 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0553930B171A80408695B9ED" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.12 (X11/20060911) X-Enigmail-Version: 0.94.2.0 Sender: news Subject: LiveCD trouble X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jul 2007 08:50:01 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0553930B171A80408695B9ED Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi One step in my SoC project is to create a LiveCD environment with X11=20 and a simple GUI desktop. I chose Xfce because it's small and easy to=20 maintain. Creating a FreeBSD LiveCD was fairly straightforward thanks to = good design of the base system, but I have strange problems with X11=20 applications. The symptoms are: - xfdesktop crashes in glib's wrapper of pthred_cond_timedwait() with=20 "Invalid argument" error - Firefox runs with 100% CPU spent in SYS time, with "top" reporting it=20 in a libthr-related state It's unusual that both problems seem to be connected with threading,=20 using libmap to remap libthr to libpthread doesn't help, and some other=20 threaded applications I tried (csup) work fine. This is a showstopper kind of bug but I don't know where to start=20 debugging. I've run strace but I the only unusual thing I saw was many=20 EAGAIN errors on pipes and unix sockets. Since I'm using unionfs=20 extensively I tried without it (in case it has problems with pipes and=20 sockets) but using UFS over md devices doesn't help with the above two=20 problems. The weirdest part is that the binaries on LiveCD are copied from my=20 *working* desktop system (by first creating binary packages then=20 installing them in the new location), where they have no such problems.=20 The only thing different seems to be that the LiveCD binaries are run=20 from cd9660 read-only file system instead of UFS. :( There's one more unusual problem: the message newsyslog gives when=20 booting, about invalid "at" line in newsyslog.conf, but this config file = is completely valid, generated from "make distribution" when the image=20 is built. Could it be that cd9660 is corrupting data, or doesn't support = essential features (maybe mmap()?)? An ISO image of this work-in-progress can be downloaded here:=20 http://ivoras.net/stuff/freebsd-live-image.iso.bz2 [200 MB]. This is a=20 temporary location and the image will be removed in the future. When=20 running it, ignore all the messages about the installer, login as root=20 and run startx. To see how file systems are mounted, look at=20 /etc/rc.d/livecd script. I'd appreciate if anyone can look at this or at least provide pointers=20 on what to try next. --------------enig0553930B171A80408695B9ED Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGig2gldnAQVacBcgRAnYAAJ4ynPV9CQtblscw+z4rK9W6jEGaoQCfSqWN cDhLhZhbV+SzZclOe830LfA= =eYXx -----END PGP SIGNATURE----- --------------enig0553930B171A80408695B9ED--