Bug 149341

Summary: gaim hangs on window close in window maker, ignores kill -QUIT, doesn't react on SIGTERM; and few others, including segfaults.
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Olli Artemjev <grey-olli>
Component: GNOMEAssignee: Hans Petter Jansson <hpj>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P4 - Low CC: grey-olli
Version: FinalKeywords: accessibility, Code_Error, UI, Usability
Target Milestone: ---   
Hardware: i686   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Olli Artemjev 2006-02-08 23:32:51 UTC
I'm not using ICQ often after getting in skype. But some times I need to load that big-brother servicable tool. :/ I've used licq long time. Then I've noticed by a friend of mine that gaim may better fit my needs. Generally it does.
But there're few things that are _very_ annoying:

1)
===================================================
$ killall -QUIT gaim
----------------- [ 01:11:31, olli@skylab, ~  ]
$ killall -QUIT gaim
----------------- [ 01:11:33, olli@skylab, ~  ]
$ killall -TERM gaim
----------------- [ 01:11:59, olli@skylab, ~  ]
$ killall -9 gaim

The only last one gets rid of the onscreen windows (opened debug window, messaging, main window). That is very inadequate & quite annoying. Polite applications quit silently on SIGQUIT bypassing any dialogs. At least skype and some others I had to remotely unload accept SIGQUIT correctly.
===================================================

2) 
===================================================
The gaim naturally hangs (waited _long_ time) on closing it via window maker close window button. Trying shade, then on unshade the window content is not redisplayed. The only -9 works:

----------------- [ 01:51:05, olli@skylab, ~  ]
$ ps awxu | grep gaim
olli     13869  0.5  7.2  74136 37308 ?        Ss   01:25   0:08 gaim
----------------- [ 01:51:11, olli@skylab, ~  ]
$ ps awxu | grep gaim
olli     13869  0.5  7.2  74136 37308 ?        Ss   01:25   0:08 gaim
olli     13996  0.0  0.1   1856   632 pts/13   S+   01:51   0:00 grep gaim
----------------- [ 01:51:15, olli@skylab, ~  ]
$ ps awxu | grep gaim
olli     13869  0.5  7.2  74136 37308 ?        Ss   01:25   0:08 gaim
olli     13998  0.0  0.0   1640   456 pts/13   R+   01:51   0:00 grep gaim
----------------- [ 01:51:25, olli@skylab, ~  ]
$ ps awxu | grep gaim
olli     13869  0.4  7.2  74136 37308 ?        Ss   01:25   0:08 gaim
olli     14002  0.0  0.1   1860   636 pts/13   S+   01:52   0:00 grep gaim
----------------- [ 01:52:58, olli@skylab, ~  ]
$ killall -QUIT gaim
----------------- [ 01:53:14, olli@skylab, ~  ]
$ ps awxu | grep gaim
olli     13869  0.4  7.2  74136 37308 ?        Ss   01:25   0:08 gaim
olli     14007  0.0  0.1   1860   636 pts/13   S+   01:53   0:00 grep gaim
----------------- [ 01:53:17, olli@skylab, ~  ]
$ killall -QUIT gaim
----------------- [ 01:53:24, olli@skylab, ~  ]
$ ps awxu | grep gaim
olli     13869  0.4  7.2  74136 37308 ?        Ss   01:25   0:08 gaim
olli     14010  0.0  0.1   1860   636 pts/13   S+   01:53   0:00 grep gaim
----------------- [ 01:53:27, olli@skylab, ~  ]
$ killall -TERM gaim
----------------- [ 01:53:37, olli@skylab, ~  ]
$ ps awxu | grep gaim
olli     13869  0.4  7.2  74136 37308 ?        Ss   01:25   0:08 gaim
olli     14013  0.0  0.1   1856   632 pts/13   S+   01:53   0:00 grep gaim
----------------- [ 01:53:39, olli@skylab, ~  ]
$ killall -TERM gaim
----------------- [ 01:53:52, olli@skylab, ~  ]
$ ps awxu | grep gaim
olli     13869  0.4  7.2  74136 37308 ?        Ss   01:25   0:08 gaim
olli     14016  0.0  0.1   1860   632 pts/13   S+   01:53   0:00 grep gaim
----------------- [ 01:53:54, olli@skylab, ~  ]
$ killall -9 gaim
----------------- [ 01:54:04, olli@skylab, ~  ]
$
===================================================

3). 
===================================================
If I'm trying to copy from debug window before icq sign on gnome segfaults.
(run once from terminal to view reports)
===================================================

4).
===================================================
The following errors are marked red in debug window:
(02:00:24) pounces: Error reading pounces: Failed to open file '/home/olli/.gaim/pounces.xml': No such file or directory
(02:00:24) Session Management: No SESSION_MANAGER found, aborting.
===================================================

5) 
===================================================
Some times gaim hangs on quit from menu (generally if 
windows open and messages travelled for some time. Though
if no real work from start the close window button from 
WindowMaker works well.
===================================================

Additional details:
===================================================
There're some access drops from apparmor, though I think that's a bug if 
them're making gaim hang in situations described above. Here they are:

Feb  9 01:33:36 skylab kernel: SubDomain: REJECTING r access to /proc/stat (gaim(13927) profile /opt/gnome/bin/gaim active /opt/gnome/bin/gaim)
Feb  9 01:33:36 skylab kernel: SubDomain: REJECTING r access to /home/olli/.mcoprc (gaim(13927) profile /opt/gnome/bin/gaim active /opt/gnome/bin/gaim)
Feb  9 01:33:36 skylab kernel: SubDomain: REJECTING x access to /opt/kde3/bin/kcminit (sh(13928) profile /opt/gnome/bin/gaim active /opt/gnome/bin/gaim)
Feb  9 01:33:36 skylab kernel: SubDomain: REJECTING r access to /opt/kde3/bin/kcminit (sh(13928) profile /opt/gnome/bin/gaim active /opt/gnome/bin/gaim)
===================================================

PS:
===================================================
0. gaim is currently used for only one icq account. No other protocols, only one uin.
1. All times tried running via standard SuSE menu.
2. All times from Window Maker.
3. I use traditional multihead: 3 monitors, 2 cards.
4. That's the p3-866, normally loaded between 20-35% by summ of cryptoloop and normal tasks:
----------------- [ 01:23:00, olli@skylab, ~  ]
$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Pentium III (Coppermine)
stepping        : 10
cpu MHz         : 871.113
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips        : 1743.08

----------------- [ 01:43:28, olli@skylab, ~  ]
$ uptime
  1:43am  up 7 days 16:34,  9 users,  load average: 0,87, 1,09, 0,88

5, A friend of mine runs fedora core and 've _no_ problems w/ his (AFAIR -customly compiled) windowmaker.
===================================================


PPS:

===================================================
----------------- [ 01:12:07, olli@skylab, ~  ]
$ rpm -qa | grep gaim
gaim-galago-0.3.2-7
gaim-1.5.0-3
gaim-devel-1.5.0-3
===================================================

Also I do not publish my icq uin & my icq uin has no details. The uin itself is a private info. Thus I won't send core files nor provide gdb dumps. Sorry.

And sorry that didn't divide into few bugs - not sure that them won't be DUPLICATEs by the reason of. And, damn, web interface is slow and getting those bugs as diffrent will multiply my time spent on getting correct keys, choosing correct system and other custimisable things. :(

And last: 

most of application from gnome are more buggy then their kde analogues, espesially then being run fro other window managers. I've heared that people
are talking on moving the mainstream to preferrably support gnome. Hope that's
not true - the most gnome apps & probably the gnome itself are not enough stable for this. Also gnome has less apps that are developed w/ valgrind & similar things. That's just my 20 cents to the holywar. ))
Comment 1 Steve Beattie 2006-02-10 18:13:35 UTC
Adding seth.arnold as a cc: for the AppArmor rejections.
Comment 2 Seth R Arnold 2006-02-10 18:47:25 UTC
Thanks; I've already added rules to our extras/ gaim profile for CODE10; SL10.0 updates for AppArmor profiles will be forthcoming in the future.

Thanks Olli
Comment 3 JP Rosevear 2006-02-10 19:30:59 UTC
Olli, if you turn off app armor does it work ok?
Comment 4 Olli Artemjev 2006-02-10 21:26:37 UTC
I've run App Armor Control Panel from yast, then disabled apparmor.
Then I did:

# /etc/init.d/boot.subdomain stop
Shutting down SubDomain Event daemon                                  done
Unloading SubDomain profiles                                          done
----------------- [ 00:08:31, root@skylab, ~  ]
#

Then I've started gaim & tried to copy from debug panel the following _before_
sign in:
=========================================================================
(00:11:51) pounces: Error reading pounces: Failed to open file '/home/olli/.gaim/pounces.xml': No such file or directory
(00:11:51) Session Management: No SESSION_MANAGER found, aborting.
=========================================================================
It worked. No segfault. Though segfault some times is random thing - now it's absent, some time later it present. ;) Should be more time to test. =)

I've received a few messages on logon. Tried to close opened conversations window - the same bug as before - gaim got unusable, no screen redraw. The systen was loaded w/ cron tasks to 80-100 persents, at that time. Though all other apps reacted well (slower, as usual at daily cron run, but OK). I also
made the following:
=========================================================================
----------------- [ 00:23:38, olli@skylab, ~  ]
$ killall -QUIT gaim
----------------- [ 00:23:46, olli@skylab, ~  ]
$ sleep 50
----------------- [ 00:24:45, olli@skylab, ~  ]
$ killall -TERM gaim
----------------- [ 00:24:55, olli@skylab, ~  ]
$ sleep 10
----------------- [ 00:25:11, olli@skylab, ~  ]
$ killall -HUP gaim
----------------- [ 00:25:34, olli@skylab, ~  ]
$ sleep 60
----------------- [ 00:26:38, olli@skylab, ~  ]
$
----------------- [ 00:26:45, olli@skylab, ~  ]
$ killall -9 gaim
----------------- [ 00:26:56, olli@skylab, ~  ]
$
=========================================================================

The only last gets rid of all stalled gaim windows. All previouse didn't change
anything visible. As before the gaim was started on the 3d monitor (traditional multihead).

Resume: That is _independent_ from apparmor. 
Comment 5 JP Rosevear 2006-02-14 20:05:43 UTC
HPJ, all of your I/O fixes for gaim were pre 10.0 right?

Olli, do you have a particularly flakey network?
Comment 6 Olli Artemjev 2006-02-14 20:34:38 UTC
didn't understood what you mean here by 'flakey network'.
But what's the matter to ask about network? I'm working w/ the net OK w/ other apps. It traverses NAT at least twice befor internet, but not on the box I'm running gaim though. The SuSE 10.0 is installed from dual layer DVD.
Comment 7 Hans Petter Jansson 2006-02-14 23:41:02 UTC
My I/O fixes should all be pre 10.0, but it looks like Olli's package has a too low rev to possibly have them.

Olli: Are you able to upgrade your Gaim packages to -20 or higher? Mine is at -23.
Comment 8 JP Rosevear 2006-02-21 21:08:14 UTC
Olli, upstream gaim had many problems with synchronous I/O calls so if the network wobbled at all it would easily get stuck in a blocking I/O call.  We spent a lot of time fixing that, so we want to make sure you have the version with our fixes.    
Comment 9 Olli Artemjev 2006-02-25 02:25:38 UTC
Okay, I'll install newest gaim and provide info. Currently 've to pause that for a few weeks - sorry.
Comment 10 JP Rosevear 2006-04-10 17:59:57 UTC
Closing, no response in 6 weeks.  Please reopen if need be.