Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142663 - stabilize x11-plugins/wmmixer-2.0_beta4-r1
Summary: stabilize x11-plugins/wmmixer-2.0_beta4-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Dockapp Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-03 08:19 UTC by Denilson Sá Maia
Modified: 2007-03-11 16:46 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denilson Sá Maia 2006-08-03 08:19:08 UTC
$ wmmixer
XpmError: XpmOpenFailed )

After some debugging, I found that, at theme.cc file, after this line:
  background_image_   = new Image(background_image_name_, x_handler, &icon_w, &icon_h, mask);
All *_image_name_ properties are lost. (like if their values have been overwritten)

After a little more debug, I found that "file_name" variable is lost just after the following code at x_handler.cc file:
  status = XpmReadFileToPixmap(display_, 
			       window_main_,
			       file_name,
			       p, mask, &attributes);

I still don't know with sure what's the cause of this bug.

$ emerge --info
Gentoo Base System version 1.6.15
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16.16 i686)
=================================================================
System uname: 2.6.16.16 i686 Pentium III (Coppermine)
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=i686 -mtune=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=i686 -mtune=pentium3 -fomit-frame-pointer"
DISTDIR="/gentoo/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo/ http://gentoo.osuosl.org/ http://mirror.datapipe.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo"
LINGUAS="en pt_BR pt"
PKGDIR="/gentoo/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=300"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/gentoo/tmp_portage"
PORTDIR="/gentoo/portage"
PORTDIR_OVERLAY="/gentoo/overlay"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="x86 7zip X aac acpi alsa apache2 asf avi bitmap-fonts bzip2 cdr clamav cli crypt css ctype cups curl divx4linux dlloader dri dts dv dvd dvdr dvdread emboss encode exif fam ffmpeg flac foomaticdb fortran gd gdbm gif gimp gimpprint gmp gphoto2 gpm gtk gtk2 gtkhtml gzip hal imagemagick imlib ipv6 isdnlog joystick jpeg kdeenablefinal libg++ libwww live lm_sensors mad matroska mikmod mmx mng motif mp3 mpeg mysql ncurses nls no-htdocs nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl pam pcre pdflib perl png posix pppd python qt qt3 qt4 quicktime rar readline reflection samba scanner sdl session slang speex spell spl sse ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis win32codecs wmf xanim xinerama xml xorg xpm xscreensaver xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_joystick kernel_linux linguas_en linguas_pt_BR linguas_pt userland_GNU video_cards_dummy video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 Yarda 2006-09-11 17:20:26 UTC
It seems to memory related errors - usage of previously uninitialized pointers and addressing beyond initialized boundaries. I haven't time to fix all memory related errors but at least the first patch may be enough for clean run (tested with GCC 3.4.6):  

In file 'theme.cc' comment out last two lines in Theme constructor:
Theme::Theme(const string& filename)    
  throw(InvalidThemeException)          
{                                     
...                                   
  //  delete config;                    
  //  config = NULL;                    
}                                     

In file 'dockapp.cc' in Dockapp constructor replace line 'icons_ = new unsigned[theme_->icon_num_];':
DockApp::DockApp(Mixer* mixer, int argc, char** argv, const string& display, const string& position, const string& theme_file, char x_flags)                                      : mixer_(mixer), icons_(NULL)
{ 
...
  icons_ = new unsigned[mixer->getNumChannels()];
...
}
Comment 2 Michele Noberasco (RETIRED) gentoo-dev 2006-09-12 05:49:18 UTC
In Portage (as new revision). Thanks for the submission, and even more for the patch!
Comment 3 Denilson Sá Maia 2006-09-24 18:27:50 UTC
Since the current version (2.0_beta4) fails to run, and a newer version (2.0_beta4-r1) is available, I suggest marking it as stable. Maybe even remove the old version.
Comment 4 Michele Noberasco (RETIRED) gentoo-dev 2006-10-06 01:39:02 UTC
Done (for x86). Other archs, please consider marking stable as well...
Comment 5 Jason Wever (RETIRED) gentoo-dev 2006-10-15 12:31:43 UTC
Stable on SPARC
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-03-11 16:46:45 UTC
mips never had this stable, closing a stale bug.