Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50255 - dev-util/anjuta-1.2.2 hangs on amd64
Summary: dev-util/anjuta-1.2.2 hangs on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-06 09:45 UTC by Simon Stelling (RETIRED)
Modified: 2004-08-24 04:21 UTC (History)
2 users (show)

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


Attachments
strace anjuta (anjuta.txt,697.89 KB, text/plain)
2004-06-09 08:27 UTC, Christophe
Details
Anjuta hang on startup (anjuta.out,1003.11 KB, text/plain)
2004-06-15 17:40 UTC, Blu3
Details
GDB output of anjuta on my machine (anjuta-gdb.txt,2.98 KB, text/plain)
2004-08-06 22:10 UTC, Antonio Farinetti
Details
strace output after compiling the source from anjuta.org (strace-src.txt,684.53 KB, text/plain)
2004-08-06 22:34 UTC, Antonio Farinetti
Details
proposed fix (64bit-splashang.patch,268 bytes, patch)
2004-08-24 01:16 UTC, bbbill_42
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Stelling (RETIRED) gentoo-dev 2004-05-06 09:45:22 UTC
it compiled fine, but when I try to start anjuta, it hangs at the splash screen.
starting it out of a shell gives following informations:

blubb@aqua blubb $ anjuta
 
(anjuta:10606): GLib-GObject-WARNING **: g_object_set_valist: construct property "type" for object `ESplash' can't be set after construction
** Message: Initializing AP class
** Message: Initializing AP Instance

there is no activity, the process is sleeping

Reproducible: Always
Steps to Reproduce:
1.start anjuta
2.
3.

Actual Results:  
the application hangs at the splash screen

Expected Results:  
start the main window
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2004-05-06 14:14:09 UTC
I just marked it testing as it compiled and worked for me as well as for someone
who filed a bug about it...
Can someone confirm this behaviour so we can track down what triggers it ?
Comment 2 Jason Huebel (RETIRED) gentoo-dev 2004-05-26 08:56:14 UTC
I can't confirm this behaviour.... Are you still having this problem? Perhaps it's an issue with having old anjuta configs on your system?
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2004-05-26 10:58:49 UTC
It's still here and no, it's not an old config, it was a new installation (tried twice, then gave up)
Comment 4 Christophe 2004-06-09 08:27:18 UTC
Created attachment 32977 [details]
strace anjuta
Comment 5 Christophe 2004-06-09 08:28:13 UTC
Same bug here. Anjuta-1.2.2 on amd64 was working. Upgrade to gtk-2.4 and gnome-2.6 yesterday. Since then, it hangs. I tried to recompile anjuta, same thing.

I attached an strace.
Comment 6 Simon Stelling (RETIRED) gentoo-dev 2004-06-09 08:41:56 UTC
I've got the same versions of gtk and gnome and installed anjuta after switching to them, so I think that's the reason.
Comment 7 Danny van Dyk (RETIRED) gentoo-dev 2004-06-11 13:23:55 UTC
Please provide output of emerge info and the exact version numbers of gtk+ and gnome.
Comment 8 Simon Stelling (RETIRED) gentoo-dev 2004-06-12 01:47:06 UTC
emerge info  # emerge info
Portage 2.0.50-r7 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.4.20040605-r0, 2.6.6-mm3)
=================================================================
System uname: 2.6.6-mm3 x86_64 5
Gentoo Base System version 1.4.16
distcc 2.12.1 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache keeptemp keepwork sandbox userpriv"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa amd64 apm avi berkdb cdr crypt cups dvd encode esd foomaticdb gdbm gif glx gnome gphoto2 gpm gtk gtk2 imlib jpeg libg++ libwww mikmod motif mozilla mpeg ncurses nls nogcj oggvorbis opengl pam pdflib perl png python quicktime readline samba sdl slang spell ssl tcltk tcpd tetex truetype xml xml2 xmms xv zlib"


gnome has version 2.6.1
gtk has version 2.4.0
Comment 9 Christophe 2004-06-14 09:57:45 UTC
Not sure if you need from both of us. From same machine as the strace :

-> gtk-2.4.1 and Gnome-2.6

emerge info :

Portage 2.0.50-r8 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040529-r0, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 x86_64 4
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X alsa amd64 apm avi berkdb cdr cups dvd dvdr esd fftw foomaticdb gdbm gif gnome gnomedb gpm gtk gtk2 gtkhtml imlib java jpeg kerberos ldap libg++ libwww mozilla mpeg mysql ncurses nogcj odbc oggvorbis opengl oss pam pdflib perl plotutils png postgres ppds python readline samba sdl slang spell ssl tcltk tcpd tiff truetype xml xml2 xmms xv zlib"

Comment 10 Blu3 2004-06-15 17:33:49 UTC
duplicated here too.  strace shows that it's complaining about a number of things.  i'll build a detailed strace and attach it.
Comment 11 Blu3 2004-06-15 17:40:28 UTC
Created attachment 33347 [details]
Anjuta hang on startup

Scott root # emerge info
Portage 2.0.50-r8 (default-amd64-2004.0, gcc-3.3.3,
glibc-2.3.3_pre20040207-r0,2.3.3_pre20040420-r0,2.3.3_pre20040529-r0,2.3.4.20040605-r0,
2.6.7-rc3)
=================================================================
System uname: 2.6.7-rc3 x86_64 5
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="no"
CFLAGS="-mcpu=opteron -march=opteron -O3 -pipe -fexpensive-optimizations
-ffast-math -mfpmath=sse,387 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=opteron -march=opteron -O3 -pipe -fexpensive-optimizations
-ffast-math -mfpmath=sse,387 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache keepwork sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="GAPING_SECURITY_HOLE S3TC X X509 aac acpi acpi4linux aim alsa amd64
apache2 arts artswrappersuid audiofile avantgo avi bluetooth caps cddb cdf cdr
chroot cle266 crypt cups devfs26 dga distcache divx4linux dnd dv dvb dvd dvdr
encode esd ethereal faad fam fax ffmpeg fftw flash flexresp fmod foomaticdb
freetype fs gd gdbm geoip gif gimp gimpprint glade glut gmp gphoto2 gpm gps
gstreamer gtk gtk2 gtkhtml icq idea ieee1394 imagemagick imap imlib imlib2 ipv6
irda irmc jabber jack jack-caps jack-tmpfs java javascript jbig jpeg
kadu-modules kadu-voice kde lcms libg++ libgda libwww lirc live ltsp mbox mcal
md5sum mdb memlimit mikmod mmap mng mozcalendar mozilla mozinterfaceinfo mozp3p
mozsvg mpeg mpeg4 mpi mplayer msn multilib multitarget ncurses nls nogcj nptl
ntlm nvidia nviz oav odbc offensive oggvorbis openal opengl oscar oss pam
parse-clocks pcap pdflib perl php pic plotutils png pnp portaudio postgres ppds
pthreads python quicktime readline remote samba scanner sdl slang slp sndfile
snmp socks5 sox speedo speex spell ssl t1lib tcpd theora tiff timidity
transcode transparent-proxy truetype type1 usb v4l v4l2 wifi wmf xgetdefault
xine xinerama xml2 xmms xosd xprint xrandr xv xvid yahoo yaz zlib zvbi"
Comment 12 Blu3 2004-06-16 07:55:53 UTC
(gdb) r
Starting program: /usr/bin/anjuta
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.

(anjuta:5389): GLib-GObject-WARNING **: g_object_set_valist: construct property "type" for object `ESplash' can't be set after construction
** Message: Initializing AP class
** Message: Initializing AP Instance
** Message: Creating pixbuf hash table
Detaching after fork from child process 5538.

Breakpoint 4, populate_supports (tmodel=0xec2340) at compiler_options.c:385
385             line = NULL;
(gdb) u 413

Breakpoint 5, populate_supports (tmodel=0xec2340) at compiler_options.c:413
413                     g_free (line);
(gdb) c 68
Will ignore next 67 crossings of breakpoint 5.  No breakpoint number -1.
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x0000002a9a2b8bef in mallopt () from /lib/libc.so.6
(gdb) up
#1  0x0000002a9a2b7ac2 in free () from /lib/libc.so.6
(gdb)
#2  0x0000002a99a7b5ef in g_free () from /usr/lib/libglib-2.0.so.0
(gdb)
#3  0x000000000046f9ac in populate_supports (tmodel=0xec2340) at compiler_options.c:413
413                     g_free (line);
(gdb) p line
$8 = (
    gchar *) 0xec5410 "vorbisenc", ' ' <repeats 16 times>, "vorbisenc - vorbisenc is a library that provides a convenient API for setting up an encoding environment using libvorbis\n"
(gdb) p *line
$9 = 118 'v'
(gdb)
Comment 13 Blu3 2004-06-16 08:31:33 UTC
Scott anjuta-1.2.2 # export MALLOC_CHECK_=1
Scott anjuta-1.2.2 # anjuta
malloc: using debugging hooks
malloc: using debugging hooks

(anjuta:7682): GLib-GObject-WARNING **: g_object_set_valist: construct property "type" for object `ESplash' can't be set after construction
** Message: Initializing AP class
** Message: Initializing AP Instance
** Message: Creating pixbuf hash table
malloc: using debugging hooks
free(): invalid pointer 0xf209e0!
free(): invalid pointer 0xf25610!
Comment 14 Danny van Dyk (RETIRED) gentoo-dev 2004-07-03 07:08:39 UTC
Necessary 64bit patch now gets applied unconditionally. Thx to the forum guy who found it ! But please drop us some lines here too.
Comment 15 Simon Stelling (RETIRED) gentoo-dev 2004-07-04 14:13:29 UTC
Hmm, error is still the same after an emerge sync and emerge anjuta (emerged anjuta-1.2.2-r1)
Comment 16 Christophe 2004-07-22 07:49:34 UTC
Still hangs here too after upgrade to 1.2.2-r1. Stop on segmentation fault.
Comment 17 Jan Van Uytven 2004-07-30 13:59:37 UTC
Confirmed, the patch does not fix anjuta hanging.
Comment 18 Christophe 2004-08-05 08:29:27 UTC
In case it matters/helps, anjuta-1.2.1 seems to work fine on same system. No hanging on startup. Seems functionnal.
Comment 19 Simon Stelling (RETIRED) gentoo-dev 2004-08-05 08:41:58 UTC
i can confirm that, anjuta-1.2.1 runs but anjuta-1.2.2-r1 (with the amd64-patch!) does not.
Comment 20 Antonio Farinetti 2004-08-06 22:10:58 UTC
Created attachment 36926 [details]
GDB output of anjuta on my machine
Comment 21 Antonio Farinetti 2004-08-06 22:34:08 UTC
Created attachment 36928 [details]
strace output after compiling the source from anjuta.org

Just for giggles, I compiled the anjuta 1.2.2 source from anjuta.org with debug
symbols enabled, and this is the strace I got.
Comment 22 bbbill_42 2004-08-24 01:16:23 UTC
Created attachment 38079 [details, diff]
proposed fix

Should fix it. 64 bit write to a prolly 32-bit var was screwing up what looks
like the stack. had the same problem with fresh install.
WORKS FOR ME.
Comment 23 Simon Stelling (RETIRED) gentoo-dev 2004-08-24 02:35:44 UTC
i applied the patch and it WORKSFORME also ;)
Comment 24 Danny van Dyk (RETIRED) gentoo-dev 2004-08-24 04:21:11 UTC
[Odd. This worked for me even without the last patch. Just checked it again.]

In CVS now. Thx bbbill_42!