imsory / gnome2-globalmenu

Automatically exported from code.google.com/p/gnome2-globalmenu
GNU General Public License v2.0
0 stars 0 forks source link

globalmenu-gnome gtk module crashes multi-thread apps on SMP systems #408

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using 64bit Ubuntu Jaunty. I use spatial Nautilus. Sometimes Nautilus
crashes when opening a folder. I filed a bug on Launchpad, against
Nautilus. A developer found that "the crash is due to
/usr/lib/gtk-2.0/modules/libglobalmenu-gnome.so", and naturally closed the
bug because globalmenu is not in Ubuntu but in the PPA.

The bug report with strace is here:
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/362819

Original issue reported on code.google.com by jsilt...@gmail.com on 20 Apr 2009 at 9:10

GoogleCodeExporter commented 8 years ago
Patch to include dyn patch prototypes.

Without this, we get the following warnings from gcc:

globalmenu.c: In function ‘global_menu_gtk_uninit’:
globalmenu.c:124: warning: cast to pointer from integer of different size
globalmenu.c: In function ‘global_menu_gtk_update_menu_context’:
globalmenu.c:248: warning: assignment makes pointer from integer without a cast
globalmenu.c: In function ‘global_menu_gtk_window_realize’:
globalmenu.c:448: warning: assignment makes pointer from integer without a cast
globalmenu.c:451: warning: assignment makes pointer from integer without a cast
globalmenu.c: In function ‘global_menu_gtk_lookup_item’:
globalmenu.c:468: warning: assignment makes pointer from integer without a cast

of which at least the first one is very bad for 64-bit machines.

Original comment by jo.m.b...@gmail.com on 2 Sep 2009 at 6:06

Attachments:

GoogleCodeExporter commented 8 years ago
Many Thanks!

Patch is submitted in rev 2639. 

We may wait for some confirmation from others as well before closing the bug.

Original comment by rainwood...@gmail.com on 2 Sep 2009 at 6:22

GoogleCodeExporter commented 8 years ago
Agreed. Those with eclipse problems please try the latest revision, I don't have
eclipse, only gimp, evolution and nautilus crash frequently for me (well, not 
any more!)

Original comment by jo.m.b...@gmail.com on 2 Sep 2009 at 6:47

GoogleCodeExporter commented 8 years ago
Eclipse seems to work with rev 2640. I'm running for a few minutes with no 
problems.
Thanks for the patch.

Original comment by golim...@gmail.com on 2 Sep 2009 at 7:02

GoogleCodeExporter commented 8 years ago
Linked launchpad bug to this one. 
@rainwoodman might one of the patches affect single core, too?
@all did it fix firefox 3.5? I'll try soon.

Regards & thanks in advance.

Original comment by bmarw...@gmail.com on 2 Sep 2009 at 7:47

GoogleCodeExporter commented 8 years ago
Yes, it would affect single core too, the issue is only 64-bit specific.

Original comment by jo.m.b...@gmail.com on 2 Sep 2009 at 8:10

GoogleCodeExporter commented 8 years ago
Eclipse is running for more the two hour without problems.

Probably it's not related to this task (and for sure it's not related to the 
last 
patch, because it's occurring since rev.2613), but Global Menu Applet is still 
consuming lots of CPU after running for a while (+/- 1.5 hours).

Anyone else have this issue ?

Original comment by golim...@gmail.com on 2 Sep 2009 at 9:00

GoogleCodeExporter commented 8 years ago
@57 golimpio, would you please file another issue against the problem you are
experiencing? And please also mention the rev that was not affected, if you 
know one.

Original comment by rainwood...@gmail.com on 2 Sep 2009 at 9:08

GoogleCodeExporter commented 8 years ago
@58 It's already reported by jo.m.berg
see: http://code.google.com/p/gnome2-globalmenu/issues/detail?id=484

Original comment by golim...@gmail.com on 3 Sep 2009 at 1:46

GoogleCodeExporter commented 8 years ago
I am closing this issue.
Thank everyone, again.

Original comment by rainwood...@gmail.com on 3 Sep 2009 at 5:30

GoogleCodeExporter commented 8 years ago
Issue 486 has been merged into this issue.

Original comment by rainwood...@gmail.com on 5 Sep 2009 at 12:09

GoogleCodeExporter commented 8 years ago
Please reopen.

I tested 0.7.7 build from this PPA:
https://edge.launchpad.net/~matthaeus123/+archive/ppa

Firefox 3.5.2 fails to run.
---
$ uname -a ; apt-cache policy firefox-3.5 | head -3; apt-cache policy gnome-
globalmenu | head -3; firefox-3.5; echo $GLOBALMENU_GNOME_ARGS
Linux rivalry 2.6.30-02063003-generic #02063003 SMP Sat Jul 25 10:17:07 UTC 
2009 
x86_64 GNU/Linux
firefox-3.5:
  Installed: 3.5.2+nobinonly-0ubuntu0.9.04.1
  Candidate: 3.5.2+nobinonly-0ubuntu0.9.04.1
gnome-globalmenu:
  Installed: 0.7.7-0~ppa2009090301~kk
  Candidate: 0.7.7-0~ppa2009090301~kk
/usr/share/themes/eGTK/gtk-2.0/gtkrc:387: error: invalid string constant 
"panel", 
expected valid string constant
FoxyProxy settingsDir = /home/stas/.mozilla/firefox-3.5/pko7xxy8.default
zsh: segmentation fault  firefox-3.5
--patch-only

---

Original comment by cool2sv@gmail.com on 6 Sep 2009 at 8:18

GoogleCodeExporter commented 8 years ago
GEEEEEEEEEE.

Any programs other than firefox is affected?

Can you produce a backtrace?

Original comment by rainwood...@gmail.com on 6 Sep 2009 at 8:59

GoogleCodeExporter commented 8 years ago
My bad, I checked again and the problem was that libglobalmenu was not updated 
from 
Matt's PPA. So I rebuild the package for Jaunty (Karmic package had 
uninstallable 
dependencies).

Jaunty package is available in my PPA:
https://edge.launchpad.net/~sushkov/+archive/personal

Now Firefox 3.5 works, I can confirm 0.7.7 solves the issue.
You can close it.
Thank you and sorry again for brainfucking :)

Original comment by cool2sv@gmail.com on 8 Sep 2009 at 6:06

GoogleCodeExporter commented 8 years ago
I'm closing it also in launchpad.

Original comment by cool2sv@gmail.com on 8 Sep 2009 at 6:07

GoogleCodeExporter commented 8 years ago
Issue 467 has been merged into this issue.

Original comment by rainwood...@gmail.com on 10 Sep 2009 at 7:12

GoogleCodeExporter commented 8 years ago
Issue 441 has been merged into this issue.

Original comment by rainwood...@gmail.com on 17 Sep 2009 at 5:56

GoogleCodeExporter commented 8 years ago
I used to have toubles (creator of issue 467), but since using cool2sv's PPA it 
works
perfect without a single crash for a week now.

Thanks to everyone who helped with this.

Original comment by psyp...@gmail.com on 17 Sep 2009 at 6:06

GoogleCodeExporter commented 8 years ago
Great thanks to rainwoodman.
:)

Original comment by cool2sv@gmail.com on 17 Sep 2009 at 6:56