[Mono-list] NAnt hangs under fakeroot
Miguel de Icaza
miguel at novell.com
Sun Apr 15 13:52:11 EDT 2007
Hello,
> I already set the MONO_SHARED_DIR variable (to the current directory,
> though): see
> [https://70.90.133.65:23793/svn/opendental/opendental4.7/packaging/opendental/debian/rules].
> Not doing so would cause a Mono crash, but now it just hangs. NAnt runs
> fine when not running as fakeroot, and on Ubuntu (and probably Debian
> unstable) it does run under fakeroot.
>
> The main issue is that I'm not sure how to debug this issue (because it
> apparently hangs). Can I somehow "attach" to this process and see where
> it is stuck?
It might be worth researching why it hangs. When you disable
MONO_SHARED_DIR some features stop working (anything that uses named
events, pipes, mutexes).
If Nant is using that for cross-process coordination (it might be, I
believe this was one of the reasons we had to implement the SHM stuff in
the first place).
Miguel.
> Frederik.
>
> Robert Jordan schreef:
> > Frederik Carlier wrote:
> >
> >> Does anyone have a suggestions as how to debug this? What can I look at
> >> to determine if it's NAnt waiting for something, a Mono bug, or ...?
> >>
> >
> > Try this:
> >
> > mkdir /tmp/fakeroot-wapi
> > MONO_SHARED_DIR=/tmp/fakeroot-wapi fakeroot ...
> >
> > Otherwise mono would try to write to /root/.wapi/ because
> > fakeroot doesn't fake the pwent functions that Mono is using
> > to obtain the home directory.
> >
> > Robert
> >
> >
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
More information about the Mono-list
mailing list