Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29394 - gaim wont start properly from gnome launcher
Summary: gaim wont start properly from gnome launcher
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gaim Bugs Crew
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 915000
  Show dependency tree
 
Reported: 2003-09-22 17:47 UTC by seltrus
Modified: 2025-04-10 09:41 UTC (History)
1 user (show)

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


Attachments
ebuild with replace -Os with -O2 (gaim-0.72-r1.ebuild,2.50 KB, text/plain)
2003-11-08 10:11 UTC, Simon Watson
Details
Backtrace from gaim core dump after trying to login to yahoo (gaim-core-backtrace,3.31 KB, text/plain)
2004-01-20 13:12 UTC, Anders Hellgren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description seltrus 2003-09-22 17:47:50 UTC
The gaim launcher will not start gaim if gaim is set to auto-login to an AIM
account.  If it is not set to auto-login, gaim will die as soon as you connect.
 The same problem occurs if you launch it from the Alt-F2 run dialog.  The
problem does not occur if run from a terminal OR if 'Run in Terminal' is checked
in the launcher properties.  In the forums, people have attributed it to gaim
needing a stdout.  Interestingly enough, running 'gaim > /dev/null' works only
in the Alt-F2 dialog, but when the same command is put in the launcher, it
crashes.  This happens with many 0.6x gaim series, and gnome 2.2 and 2.4.  Gaim
works as expected from a KDE launcher. 

More info here:

http://forums.gentoo.org/viewtopic.php?t=73106&highlight=gaim+stdout
http://forums.gentoo.org/viewtopic.php?t=86908&highlight=gaim+launcher
http://forums.gentoo.org/viewtopic.php?t=61842&highlight=gaim+launcher
http://forums.gentoo.org/viewtopic.php?t=49815

Reproducible: Always
Steps to Reproduce:
1.  Start gaim from a gnome launcher
2.  Connect to an AIM account
3.

Actual Results:  
gaim crashes and disappears

Expected Results:  
gaim should have connected as normal
Comment 1 foser (RETIRED) gentoo-dev 2003-09-23 02:30:41 UTC
gnome team doesn't handle gaim.
Comment 2 jack_mort 2003-10-12 03:12:27 UTC
Hi,

I got the same problem here, but found a workaround on the gentoo forum :
try to compile gaim with low CFLAGS. My current CFLAGS are with -Os, and
i got gaim to run and launch from gnome launcher with -O2.
Comment 3 Dan C 2003-10-19 18:19:33 UTC
Changing my CFLAGS from -Os to -O2 fixed the problem for me. Perhaps filter
the -Os flag in the ebuild?
Comment 4 seltrus 2003-10-20 20:55:42 UTC
whoa, thats wierd.  switching to -O2 did fix it for me too... perhaps some
filtering is in order.  the weird thing is that 'gaim > /dev/null' works
(not as a launcher though) and just plain gaim works from a kde launcher...
what a weird side affect of -Os
Comment 5 Daniel Armyr 2003-10-28 01:33:02 UTC
I can confirm this bug. Connecting Gaim to an ICQ account will infallibly
cause the program to segfault and coredump. This holds for starts from terminal
and fluxbox menu. Other accounts work fine.

Emerge info>
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.1-r4, 2.4.22)
=================================================================
System uname: 2.4.22 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.2.8
distcc 2.9 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=pentium -O2"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs sandbox userpriv usersandbox ccache distcc"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt encode gif jpeg libg++ libwww mad mikmod mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb
slang readline svga tcltk java sdl gpm tcpd pam ssl perl python esd imlib
oggvorbis gtk qt opengl cdr X dga Xaw3d -arts -cups -foomaticdb -bonobo -guile
-gnome -kde -gtk2 -motif"

Th funny thing is that gaim worked flawlesly untill i had to do a hard reboot.
Reemergin cleanly has not resolved it.
Comment 6 Simon Watson 2003-11-08 10:11:53 UTC
Created attachment 20437 [details]
ebuild with replace -Os with -O2

Update ebuild to replace -Os with -O2? ('Fixed' ebuild attached, so at least
gaim does not appear broken on gentoo systems)
Comment 7 Don Seiler (RETIRED) gentoo-dev 2003-12-12 07:11:34 UTC
I'll try to test this out and get it in.  I don't use gnome but I don't see any real harm in setting -O2.
Comment 8 Don Seiler (RETIRED) gentoo-dev 2003-12-12 07:31:02 UTC
Daniel Armyr: I don't think your bug is the same thing.  You seem to have an ICQ-specific bug and to me that sounds like an UPSTREAM issue with the gaim team.
Comment 9 Don Seiler (RETIRED) gentoo-dev 2003-12-12 07:50:50 UTC
OK I've committed the replace-flags to gaim-0.74-r1.  Please test it out and let me know if it works for you and I'll close this bug.
Comment 10 Simon Watson 2004-01-02 14:44:59 UTC
This was working fine in -r1. However it appears to be broken in -r2 and we're having the same problem!
Comment 11 Don Seiler (RETIRED) gentoo-dev 2004-01-02 19:52:35 UTC
Hmm the replace-flags command is still in place in -r2 so I can't say what is causing the problem this time.
Comment 12 Don Seiler (RETIRED) gentoo-dev 2004-01-13 07:00:34 UTC
I honestly don't understand how changing optimizations affects the ability for this to work with gaim-launcher.  Nor do I understand why it wouldn't work from 0.74-r1 to 0.74-r2 since nothing involving that fix in -r1 was touched.
Comment 13 Anders Hellgren gentoo-dev 2004-01-19 02:51:25 UTC
The problem now (gaim-0.75-r5) is that the cflags (-Os -> -O2) are, in fact, not replaced. Moving the replace-flags section of the ebuild to the top of the src_compile section replaces the flags correctly.

I can't find the core file so I don't know what the real problem is with starting gaim from a launcher as opposed to starting it from a terminal. All I can find is in -gnomerc-errors that gaim has segfaulted and attempted to dump a core file.
Comment 14 Don Seiler (RETIRED) gentoo-dev 2004-01-19 09:44:01 UTC
Alright I've moved it to the top of src_compile().  Can anyone confirm if gaim-0.75-r5 (please rsync first) is working for this issue yet?
Comment 15 Anders Hellgren gentoo-dev 2004-01-20 11:01:46 UTC
It works for me, but I reckon you already knew that :-)
Comment 16 Don Seiler (RETIRED) gentoo-dev 2004-01-20 11:03:48 UTC
Alright then I'll again close this bug.  Re-open if you need to.
Comment 17 Anders Hellgren gentoo-dev 2004-01-20 13:12:31 UTC
Created attachment 24142 [details]
Backtrace from gaim core dump after trying to login to yahoo

OK, I managed to find the setting for core dumps, so here is a backtrace for
gaim compiled with -Os.
Comment 18 Larry the Git Cow gentoo-dev 2025-04-10 09:33:59 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c297a5d6acec05aaa94de3215be947d12ef86a5

commit 2c297a5d6acec05aaa94de3215be947d12ef86a5
Author:     Cristian Othón Martínez Vera <cfuga@cfuga.mx>
AuthorDate: 2025-03-26 16:55:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-10 09:32:00 +0000

    x11-plugins/pidgin-encryption: drop strip/replace compiler flags by default
    
    +20 years ago there's was a bug with ```net-im/gaim```, probably caused by
    gcc-2.95 and ```-Os``` optimization.
    
    The following developers and maintainers just copied those lines when bumping
    versions, and nobody tried to remove them with new Gaim/Pidgin/GCC versions.
    
    Also ```x11-plugins/pidgin-encryption``` has the same code; I guess the Gentoo
    maintainer/developer was extra cautious.
    
    Bug: https://bugs.gentoo.org/29394
    Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx>
    Closes: https://github.com/gentoo/gentoo/pull/41309
    Signed-off-by: Sam James <sam@gentoo.org>

 .../pidgin-encryption-3.1-r4.ebuild                | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d9891cab30df71423ccb306dde5eacacf146b56

commit 8d9891cab30df71423ccb306dde5eacacf146b56
Author:     Cristian Othón Martínez Vera <cfuga@cfuga.mx>
AuthorDate: 2025-03-26 16:42:29 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-10 09:32:00 +0000

    net-im/pidgin: drop strip/replace compiler flags by default, enable py3.13
    
    +20 years ago there was a bug with ```net-im/gaim```, probably caused by
    gcc-2.95 and ```-Os``` optimization.
    
    The following developers and maintainers just copied those lines when bumping
    versions, and nobody tried to remove them with new Gaim/Pidgin/GCC versions.
    
    Bug: https://bugs.gentoo.org/29394
    Closes: https://bugs.gentoo.org/944837
    Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-im/pidgin/{pidgin-2.14.14.ebuild => pidgin-2.14.14-r1.ebuild} | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)