Re: Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Samuel Thibault
Hello, I investigated a bit and found the issue, which probably explains quite a few other bugs: - I added fprintf(stderr,"%s:%s", __FILE__, __func__); fflush(stderr); basically in all EBUSY places in libdiskfs, libnetfs, libfshelp - I got it from libnetfs/netfs_S_file_set_translator. That di

Re: Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Samuel Thibault
Svante Signell, le Mon 08 Dec 2014 14:17:24 +0100, a écrit : > Aha, so if I had used fprintf to e.g. stderr the built hurd would boot > even with printing enabled? Good to know ;) I do put printfs to stderr in my installed translators essentially all the time, including ext2fs and such. So yes, th

Re: Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Svante Signell
On Mon, 2014-12-08 at 14:10 +0100, Samuel Thibault wrote: > Svante Signell, le Mon 08 Dec 2014 14:08:15 +0100, a écrit : > > On Mon, 2014-12-08 at 13:26 +0100, Samuel Thibault wrote: > > > Svante Signell, le Mon 08 Dec 2014 13:24:16 +0100, a écrit : > > > > what is wrong with writing to a file? > >

Re: Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Samuel Thibault
Svante Signell, le Mon 08 Dec 2014 14:08:15 +0100, a écrit : > On Mon, 2014-12-08 at 13:26 +0100, Samuel Thibault wrote: > > Svante Signell, le Mon 08 Dec 2014 13:24:16 +0100, a écrit : > > > what is wrong with writing to a file? > > > > Nothing wrong, except that you must be sure that the transla

Re: Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Svante Signell
On Mon, 2014-12-08 at 13:26 +0100, Samuel Thibault wrote: > Svante Signell, le Mon 08 Dec 2014 13:24:16 +0100, a écrit : > > what is wrong with writing to a file? > > Nothing wrong, except that you must be sure that the translator > can write to it. Making the root translator write to its own > /

Re: Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Justus Winter
Quoting Samuel Thibault (2014-12-08 13:11:22) > fprintf(stderr)+fflush *does* work, I've been using various times. I like to use error (0, 0, "didum"). It's easy to use, prints the servers name, prints a newline and does fflush. The most annoying thing about it is that it doesn't print the messa

Re: Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Samuel Thibault
BTW, one way to check what is actually getting run is using gdb: $ ps -feM | grep auth youpi 19910 19908 0:00.01 /bin/fakeauth /bin/sh -c cd "$1" || exit ; shift $ gdb /bin/fakeauth 19910 ... Reading symbols from /home/youpi/libpthread.so.0.3...(no debugging symbols found)...done. Loaded symbo

Re: Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Samuel Thibault
Svante Signell, le Mon 08 Dec 2014 13:24:16 +0100, a écrit : > what is wrong with writing to a file? Nothing wrong, except that you must be sure that the translator can write to it. Making the root translator write to its own /tmp/foobar.log is probably deemed to fail, for instance. Samuel

Re: Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Svante Signell
On Mon, 2014-12-08 at 13:11 +0100, Samuel Thibault wrote: > Svante Signell, le Mon 08 Dec 2014 13:09:28 +0100, a écrit : > > On Mon, 2014-12-08 at 12:40 +0100, Samuel Thibault wrote: > > > Svante Signell, le Mon 08 Dec 2014 12:05:13 +0100, a écrit : > > > > Which translators are restarted when inst

Re: Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Samuel Thibault
Svante Signell, le Mon 08 Dec 2014 13:09:28 +0100, a écrit : > On Mon, 2014-12-08 at 12:40 +0100, Samuel Thibault wrote: > > Svante Signell, le Mon 08 Dec 2014 12:05:13 +0100, a écrit : > > > Which translators are restarted when installing, > > > > Nothing gets restarted when you install. Only the

Re: Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Samuel Thibault
Svante Signell, le Mon 08 Dec 2014 13:04:50 +0100, a écrit : > On Mon, 2014-12-08 at 12:40 +0100, Samuel Thibault wrote: > > Svante Signell, le Mon 08 Dec 2014 12:05:13 +0100, a écrit : > > > Which translators are restarted when installing, > > > > > exec /my_chroot/DEBs/test_fakeroot-hurd/settran

Re: Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Svante Signell
On Mon, 2014-12-08 at 12:40 +0100, Samuel Thibault wrote: > Svante Signell, le Mon 08 Dec 2014 12:05:13 +0100, a écrit : > > Which translators are restarted when installing, > > Nothing gets restarted when you install. Only the newer translator that > you start will use the new implementation. >

Re: Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Svante Signell
On Mon, 2014-12-08 at 12:40 +0100, Samuel Thibault wrote: > Svante Signell, le Mon 08 Dec 2014 12:05:13 +0100, a écrit : > > Which translators are restarted when installing, > > > exec /my_chroot/DEBs/test_fakeroot-hurd/settrans --chroot \ > > /my_chroot/DEBs/test_fakeroot-hurd/fakeauth \ >

Re: Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Samuel Thibault
Svante Signell, le Mon 08 Dec 2014 12:05:13 +0100, a écrit : > Which translators are restarted when installing, Nothing gets restarted when you install. Only the newer translator that you start will use the new implementation. > and which are when rebooting? Everything gets restarted of course.

Confusing results when trying to debug fakeroot-hurd

2014-12-08 Thread Svante Signell
Hi, Attached is a partial summery trying to debug the problems with fakeroot-hurd when building glibc. Print statements to file are added to: trans/fakeroot.c libnetfs/file-set-translator.c libdiskfs/file-set-trans.c (and other files in libnetfs/, libdiskfs/, but no hits whatsoever for them). S