[system-tools] Re: g-s-t 1.2.0 does not work on FreeBSD



Joe Marcus Clarke <marcus <at> FreeBSD.org> writes:
> 
> In a nutshell, it hangs.  It really depends on the FreeBSD version as to 
> where it hangs.  On 5.X and 6.X, it will hand after authenticating the 
> user.  Basically, since gst-auth.c closes stderr, this causes su to 
> SIGSTOP the tool's backend process, and thus gst-tool.c gets stuck in an 
> infinite poll() loop.
> 
> On FreeBSD 4.X, the user never sees the authentication dialog.  If the 
> tool is run as root, everything seems to work, but hangs when quitting. 
>   I added some debugging, and found that under 4.X, g-s-t never reads 
> anything from the backend su process.  That is, it never sees the 
> "Password:" prompt, and thus hangs in a poll() loop forever.
> 
> Everything used to work on all versions before the switch to use pipes. 
>   Attached are patches that get the tools working under 5.X and 6.X 
> again, but I'd like to know if there's anything I should be looking at 
> for the 4.X problems (i.e. the hang when run as non-root, and the hang 
> on exit).  What would be lost if g-s-t reverted to the old master file 
> descriptor on FreeBSD only?  Thanks.
> 
> Joe
> 


I just wanted to add that I observe a similar behaviour on a Gentoo box.
There is a bug (unfortunatly closed as WORKSFORME):
http://bugs.gentoo.org/show_bug.cgi?id=85092

It is the same behaviour as FBSD4 apparently.

/John

p.s.

Here comes some standard Gentoo bugtracking-dump:

Portage 2.0.51.20-r4 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 AMD Athlon(TM) XP 1900+
Gentoo Base System version 1.6.11
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ftracer
-funit-at-a-time -frename-registers -fweb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ftracer
-funit-at-a-time -frename-registers -fweb -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo";
LANG="sv_SE.utf8"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac alsa avi bash-completion berkdb cdr crypt cscope evo
ffmpeg flac gdbm gif gnome gstreamer gtk gtk2 hal jpeg mad matroska mmx mono
mozilla mpeg nptl ogg oggvorbis opengl png python readline sdl spell sse ssl svg
theora threads tiff truetype unicode vorbis xml2 xv zlib linguas_en"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS

/etc/portage/package.use:
<snip>
sys-libs/glibc nptl nptlonly userlocales
</snip>

Random noise:
I have no PAM and I try to run everything as UTF8




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]