Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307047 - sys-devel/distcc-3.1-r4: Monitor program shows duplicate slots for server
Summary: sys-devel/distcc-3.1-r4: Monitor program shows duplicate slots for server
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: MATSUU Takuto (RETIRED)
URL: http://code.google.com/p/distcc/issue...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-27 08:46 UTC by Jeremy Murphy
Modified: 2011-11-02 00:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Screen capture of bug (distcc client monitor - duplicate slots.png,27.76 KB, text/plain)
2010-02-27 08:48 UTC, Jeremy Murphy
Details
Patch by splitting state into local and remote (distcc-3.1_state.patch,7.46 KB, text/plain)
2010-07-12 13:12 UTC, Jeremy Murphy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Murphy 2010-02-27 08:46:58 UTC
In the distcc Monitor (distccmon-gui), duplicate slot numbers appear for the remote compilation server.  I don't know whether the problem is in the monitor program or in the core distcc, but that is the symptom.  It happens in regular or pump mode, but only for the remote server, not for localhost.  This started happening with distcc-3.0.  There is no loss of functionality, but I thought it's worth mentioning in case it is a sign of something more serious 'under the hood'.  And the way it screws around with the output is annoying.


Reproducible: Always

Steps to Reproduce:
1. Configure your system to use distcc (obviously) and add a remote server.
2. Set MAKEOPTS="-j6" or something similar.
3. Compile something with plenty of parallel compilation, maybe kde-base/konqueror.

Actual Results:  
See screen capture attachment, but here is a text immitation: 

localhost 0  foo.c
localhost 1  bar.c
server    0  dumpling.c
server    1
server    1  peanut.c
server    1
server    2  egg.c
server    2


Expected Results:  
localhost 0  foo.c
localhost 1  bar.c
server    0  dumpling.c
server    1  peanut.c
server    2  egg.c


Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 i686)                                                                  
=================================================================                  
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-gentoo-1.12.13                                                                 
Timestamp of tree: Fri, 26 Feb 2010 23:45:01 +0000                                 
distcc 3.1 i686-pc-linux-gnu [enabled]                                             
app-shells/bash:     4.0_p35                                                       
dev-java/java-config: 2.1.10                                                       
dev-lang/python:     2.6.4-r1                                                      
dev-util/cmake:      2.6.4-r3                                                      
sys-apps/baselayout: 1.12.13                                                       
sys-apps/sandbox:    1.6-r2                                                        
sys-devel/autoconf:  2.13, 2.63-r1                                                 
sys-devel/automake:  1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1                            
sys-devel/binutils:  2.18-r3                                                       
sys-devel/gcc:       4.3.4                                                         
sys-devel/gcc-config: 1.4.1                                                        
sys-devel/libtool:   2.2.6b                                                        
virtual/os-headers:  2.6.30-r1                                                     
ACCEPT_KEYWORDS="x86"                                                              
ACCEPT_LICENSE="* -@EULA skype-eula"                                               
CBUILD="i686-pc-linux-gnu"                                                         
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"                           
CHOST="i686-pc-linux-gnu"                                                          
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"         
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                         
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"                         
DISTDIR="/usr/portage/distfiles"                                                   
FEATURES="assume-digests distcc distlocks fixpackages news parallel-fetch prelink protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"        
GENTOO_MIRRORS="http://ftp.iinet.net.au/pub/Gentoo "                               
LANG="en_AU.UTF-8"                                                                 
LDFLAGS="-Wl,-O1"                                                                  
LINGUAS="en_AU en_AU.UTF-8 en_GB en_GB.UTF-8"                                      
MAKEOPTS="-j6"                                                                     
PKGDIR="/usr/portage/packages"                                                     
PORTAGE_CONFIGROOT="/"                                                             
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/kde /usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa avahi bash-completion berkdb blas branding bzip2 cairo cddb cdr cli consolekit cracklib crypt cups curl cxx dbus djvu dri dts dv dvb dvd dvdr emboss encode exif expat fam ffmpeg fftw flac fontconfig fortran gd gdbm gif gmp gnome gnutls gphoto2 gpm graphviz gsl gstreamer gtk hal iconv icu ieee1394 imagemagick imlib ipod ipv6 java java5 java6 javascript jpeg kde kqemu lame lapack laptop latex lcms ldap libnotify libsamplerate lirc lzo mad matroska mikmod mmap mmx mng modules mp3 mp4 mpeg mplayer mtp mudflap musepack mysql ncurses nls nptl nptlonly nsplugin odbc offensive ogg openal opengl openmp pam pch pcre pdf perl php png ppds pppd python qt3support qt4 quicktime readline reflection samba sdl session sharedmem sndfile spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs syslog taglib tcpd theora threads thunar tiff timidity truetype unicode usb vorbis wavpack wifi win32codecs wmf wxwindows x264 x86 xcb xcomposite xml xorg xpm xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_AU en_AU.UTF-8 en_GB en_GB.UTF-8" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

/etc/distcc/hosts:
prison,cpp,lzo prison,cpp,lzo prison,cpp,lzo localhost
Comment 1 Jeremy Murphy 2010-02-27 08:48:43 UTC
Created attachment 221401 [details]
Screen capture of bug
Comment 2 Jeremy Murphy 2010-06-17 14:07:38 UTC
Just found the upstream bug.
Comment 3 Jeremy Murphy 2010-06-24 06:22:07 UTC
Uploaded a patch upstream.
Comment 4 Jeremy Murphy 2010-07-12 13:12:53 UTC
Created attachment 238439 [details]
Patch by splitting state into local and remote

I have not been able to capture the attention of upstream yet, so here is a basic patch.
Comment 5 Jeremy Murphy 2010-08-11 13:44:43 UTC
Hello anyone??  I uploaded a patch a month ago.  Have you had a look at it?  Can we bump a testing version into the tree or at least an overlay?  Some feedback appreciated, thanks.
Comment 6 Kazunori Kojima 2010-09-24 12:25:45 UTC
Works fine for me on amd64.
Comment 7 Jeremy Murphy 2010-09-24 15:59:58 UTC
(In reply to comment #6)
> Works fine for me on amd64.
> 

Sorry, do you mean that the patch works fine, or that the program works fine (you can't replicate the bug)?
Comment 8 Kazunori Kojima 2010-09-29 14:00:17 UTC
(In reply to comment #7)
> Sorry, do you mean that the patch works fine, or that the program works fine
> (you can't replicate the bug)?

I'm sorry. I am wrong bug ID to write comment.

However, I tried this patch today. 
This patch worked fine, and not duplicate remote slot number in distccmon-gui.
Comment 9 Jeremy Murphy 2010-09-30 06:29:38 UTC
Cool, thanks for testing it.
Comment 10 Jeremy Murphy 2010-10-26 07:22:08 UTC
This has been fixed upstream but there is no successor to 3.1 on the horizon.

Matsuu, any chance of adding an svn checkout to the tree?  Their trunk is considered pretty stable.
Comment 11 Jeremy Murphy 2011-11-02 00:38:51 UTC
Fixed in 3.2_rc1.