click on bookmark crashes firefox with java content in clipboard

Bug #372103 reported by Wouter Gazendam
132
This bug affects 23 people
Affects Status Importance Assigned to Milestone
GTK+
Fix Released
Critical
XULRunner
Fix Released
Medium
firefox-3.0 (Ubuntu)
Invalid
Medium
Unassigned
Karmic
Invalid
Undecided
Unassigned
firefox-3.5 (Ubuntu)
Invalid
Medium
Unassigned
Karmic
Invalid
Undecided
Unassigned
gtk+2.0 (Ubuntu)
Fix Released
Medium
Unassigned
Karmic
Fix Released
Low
Unassigned

Bug Description

Users are crashing if their clipboard contains anything from a Java OpenJDK app if they try to use their bookmarks in Firefox.

This is due to a workaround that was implemented in GTK originally due to a bug in Java that was subsequently fixed. This workaround has been removed in GTK 2.19.1 which is now in Lucid.

The attached debdiff contains the simple removal of the workaround from the GTK upstream bug commit.

TEST CASE:
- install openjdk-6-jdk
- verify it is selected with 'java -version'
- install netbeans
- start firefox
- start netbeans
- in netbeans: using any input field or editor window (create any new project and any new file in it) copy with Ctrl-C any text to clipboard
- switch to Firefox, click on any bookmark in bookmark tab tree (Left Bookmarks Sidebar)
- Firefox crashes

In fact, instead of netbeans any java swing application can be used.

---------------------------------------------------------

Binary package hint: firefox-3.0

When I right click on a bookmark in the bar above the tabs, or in the Bookmarks menu, firefox crashes sporadically.

Description: Ubuntu 9.04
Release: 9.04

firefox:
  Installed: 3.0.10+nobinonly-0ubuntu0.9.04.1
  Candidate: 3.0.10+nobinonly-0ubuntu0.9.04.1
  Version table:
 *** 3.0.10+nobinonly-0ubuntu0.9.04.1 0
        500 http://nl.archive.ubuntu.com jaunty-updates/main Packages
        500 http://security.ubuntu.com jaunty-security/main Packages
        100 /var/lib/dpkg/status
     3.0.8+nobinonly-0ubuntu3 0
        500 http://nl.archive.ubuntu.com jaunty/main Packages

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: firefox-3.0 3.0.10+nobinonly-0ubuntu0.9.04.1
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: firefox-3.0
Uname: Linux 2.6.28-11-generic x86_64

Revision history for this message
Wouter Gazendam (launchpad-net-gazendam) wrote :
Revision history for this message
Thierry Lemaire (thierry-lemaire) wrote :

same problem for me with the same config. I've also a crash when i try to click on the folder of bookmarks in the left panel and in the bookmark menu.

summary: - right click on bookmark crashes firefox
+ click on bookmark crashes firefox
Revision history for this message
Kurt Wall (kwall) wrote : Re: click on bookmark crashes firefox

Thanks for taking the time to report this bug and helping to improve Ubuntu. Could you please add more information for it by following the suggestions at https://wiki.ubuntu.com/MozillaTeam/Bugs. In particular, can you reproduce this behavior using a new profile? It isn't necessary to delete your current profile; just create a new one. It would also be useful to get console output and/or a stack trace, again using the instructions provided at https://wiki.ubuntu.com/MozillaTeam/Bugs.

Thanks and regards,

Kurt

Revision history for this message
Thierry Lemaire (thierry-lemaire) wrote : Re: [Bug 372103] Re: click on bookmark crashes firefox

I tried several times by deleting my profile (I removed the .mozilla
directory in my home directory) and I still have this problem.

This issue occurs randomly after a long time spent using the browser. and
when firefox bug, I can reproduce (almost all the time) immediatly by
clicking on a bookmark.

If I launch firefox from a terminal, I have the "Segmentation fault" error
diplayed.

Regards

2009/5/22 Kurt Wall <email address hidden>

> Thanks for taking the time to report this bug and helping to improve
> Ubuntu. Could you please add more information for it by following the
> suggestions at https://wiki.ubuntu.com/MozillaTeam/Bugs. In particular,
> can you reproduce this behavior using a new profile? It isn't necessary
> to delete your current profile; just create a new one. It would also be
> useful to get console output and/or a stack trace, again using the
> instructions provided at https://wiki.ubuntu.com/MozillaTeam/Bugs.
>
> Thanks and regards,
>
> Kurt
>
> --
> click on bookmark crashes firefox
> https://bugs.launchpad.net/bugs/372103
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Kurt Wall (kwall) wrote : Re: click on bookmark crashes firefox

Thierry, thanks for the reply. I'm not able to reproduce this behaviour here. A first step would be to execute the following command in a terminal session, and then to run firefox from that console: "ulimit -c unlimited". This will produce a core file if/when Firefox segfaults. A more comprehensive approach is described in https://wiki.ubuntu.com/MozillaTeam/Bugs#Crashes.

Revision history for this message
Thierry Lemaire (thierry-lemaire) wrote : Re: [Bug 372103] Re: click on bookmark crashes firefox

Hi, finally I was able to create the gdb-firefox.txt file.

Regards

2009/5/23 Kurt Wall <email address hidden>

> Thierry, thanks for the reply. I'm not able to reproduce this behaviour
> here. A first step would be to execute the following command in a
> terminal session, and then to run firefox from that console: "ulimit -c
> unlimited". This will produce a core file if/when Firefox segfaults. A
> more comprehensive approach is described in
> https://wiki.ubuntu.com/MozillaTeam/Bugs#Crashes.
>
> --
> click on bookmark crashes firefox
> https://bugs.launchpad.net/bugs/372103
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Stephan Zanger (bungoleena) wrote : Re: click on bookmark crashes firefox

We have the same problem with our 3 newly installed ubuntu systems, all running nearly the same configuration as already described above.

For us it looks like this issue is somehow related to the clipboard.

The crash is reproducable when we copy text in any other application with Ctrl+c. If we then try to click into our bookmarks, firefox crashes. On my particular system also the left and middle mouse button let firefox crash.

If you now restart firefox, mark and copy some random text on a site with Ctrl+c, you are able to use firefox. If you dont copy anything in firefox (overwrite clipboard content?), it keeps crashing on bookmark clicks.
Using middlemouse for copy paste doesnt help or affect firefox.

best regards
stephan

Revision history for this message
StormForge (br-cs) wrote : Re: [Bug 372103] Re: click on bookmark crashes firefox

Hi Kurt -- I have a 43 MB core file. Do you want it? It's from the
standard version of firefox rather than the debug version.

Thanks,
-Bill

Kurt Wall wrote:
> Thierry, thanks for the reply. I'm not able to reproduce this behaviour
> here. A first step would be to execute the following command in a
> terminal session, and then to run firefox from that console: "ulimit -c
> unlimited". This will produce a core file if/when Firefox segfaults. A
> more comprehensive approach is described in
> https://wiki.ubuntu.com/MozillaTeam/Bugs#Crashes.
>
>

Revision history for this message
Kurt Wall (kwall) wrote : Re: click on bookmark crashes firefox

StormForge,

Oy, a 43MB core file. I have no idea if you can attached a file that large or not. But, give it a shot and if it is too big, we'll work something out.

Regards,

Kurt

Changed in firefox-3.0 (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Stransky (stransky) wrote :

Downstream bug https://bugzilla.redhat.com/show_bug.cgi?id=501685

There's a crash at nsClipboard::HasDataMatchingFlavors()

Bactrace:

Thread 1 (Thread 20486):
#0 0x00000033b140ed5b in raise (sig=<value optimized out>) at
../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
#1 0x0000003f72873244 in nsProfileLock::FatalSignalHandler (signo=11) at
nsProfileLock.cpp:212
#2 <signal handler called>
#3 strcmp () at ../sysdeps/x86_64/strcmp.S:29
#4 0x0000003f7306c82d in nsClipboard::HasDataMatchingFlavors (this=<value
optimized out>,
    aFlavorList=<value optimized out>, aLength=1, aWhichClipboard=<value
optimized out>, _retval=0x7fff29c80a1c)
    at nsClipboard.cpp:448
#5 0x0000003f72e3d243 in nsHTMLEditor::HavePrivateHTMLFlavor (this=<value
optimized out>, aClipboard=0x0)
    at nsHTMLDataTransfer.cpp:1844
#6 0x0000003f72e3f5ff in nsHTMLEditor::Paste (this=0x7f430705f800,
aSelectionType=0) at nsHTMLDataTransfer.cpp:1869
#7 0x0000003f72d23ee6 in nsTextEditorMouseListener::MouseClick
(this=0x7f430704fd80, aMouseEvent=<value optimized out>)
    at nsEditorEventListeners.cpp:362
#8 0x0000003f72e7fb45 in nsHTMLEditorMouseListener::MouseClick
(this=0x7f430704fd80, aMouseEvent=0x7f43071b9640)
    at nsHTMLEditorMouseListener.cpp:307
[...]

It's here at sClipboard.cpp:448

  for (PRInt32 j = 0; j < n_targets; j++) {
     gchar *atom_name = gdk_atom_name(targets[j]);
>> if (!strcmp(atom_name, aFlavorList[i]))
        *_retval = PR_TRUE;

Looks like gdk_atom_name(targets[j]) returns NULL and we don't catch it.

Revision history for this message
In , Stransky (stransky) wrote :

The check is missing everywhere (Trunk, 1.9.1 & 1.9.0).

Revision history for this message
In , Stransky (stransky) wrote :

Created an attachment (id=380384)
patch

Simple NULL check added to nsClipboard::HasDataMatchingFlavors() and nsDragService::IsTargetContextList(). It applies to Trunk.

Revision history for this message
In , Stransky (stransky) wrote :

(From update of attachment 380384)
Can you check it please?

Revision history for this message
In , Mozbugz (mozbugz) wrote :

Thanks, Martin.

I don't understand why we should ever have (in gdk_atom_name)
GPOINTER_TO_UINT(targets[j]) >= virtual_atom_array->len

Would you have a testcase that you could make available to me, please?

Revision history for this message
In , Stransky (stransky) wrote :

I tried hard to reproduce it with instructions from original bugreport but w/o success. So at least I tested that gdk_atom_name() can really return the NULL value although official GTK documentation doesn't claims it.

Revision history for this message
In , Mozbugz (mozbugz) wrote :

gdk_atom_name() can return NULL, but only if it is given a bad GdkAtom parameter.

The problem appears to be that the GdkAtom is bad. I'd prefer to wait for more data to work out why the GdkAtom is bad, rather than patch some of the symptoms.

Revision history for this message
In , Stransky (stransky) wrote :

I think the pointer check is always good thing. There have been many bugs/crashes in mozilla codebase where somebody doesn't check the pointer value...

Revision history for this message
Henrik Storner (henrik-hswn) wrote : Re: click on bookmark crashes firefox

I have the exact same issue here - Ubuntu 9.04-amd64 with firefox "3.0.10+nobinonly-0ubuntu0.9.04.1". For me, it crashes immediately after startup when I right-click on any item in the bookmarks toolbar.

Backtrace from the core file looks like this:
#0 0x00007fece830df3b in raise () from /lib/libpthread.so.0
#1 0x00007fece5dad647 in ?? () from /usr/lib/xulrunner-1.9.0.10/libxul.so
#2 <signal handler called>
#3 0x00007fece765f6a0 in strcmp () from /lib/libc.so.6
#4 0x00007fece64740ce in ?? () from /usr/lib/xulrunner-1.9.0.10/libxul.so
#5 0x00007fece6535604 in NS_InvokeByIndex_P () from /usr/lib/xulrunner-1.9.0.10/libxul.so
#6 0x00007fece5dcfe91 in ?? () from /usr/lib/xulrunner-1.9.0.10/libxul.so
#7 0x00007fece5dd7c21 in ?? () from /usr/lib/xulrunner-1.9.0.10/libxul.so
#8 0x00007fece7379074 in js_Invoke () from /usr/lib/xulrunner-1.9.0.10/libmozjs.so
#9 0x00007fece736be17 in ?? () from /usr/lib/xulrunner-1.9.0.10/libmozjs.so
#10 0x00007fece73790bb in js_Invoke () from /usr/lib/xulrunner-1.9.0.10/libmozjs.so
#11 0x00007fece5dcd3f3 in ?? () from /usr/lib/xulrunner-1.9.0.10/libxul.so
#12 0x00007fece65361f1 in ?? () from /usr/lib/xulrunner-1.9.0.10/libxul.so
#13 0x00007fece653569f in ?? () from /usr/lib/xulrunner-1.9.0.10/libxul.so
#14 0x000000000265ea30 in ?? ()
#15 0x0000000002867670 in ?? ()
#16 0x00007ffff0732ff8 in ?? ()
#17 0x00007ffff0732fe0 in ?? ()
#18 0x0000000001a17a90 in ?? ()
#19 0x0000000000000000 in ?? ()

Corefile is about 6 MB compresssed, will try to attach it.

Revision history for this message
John Vivirito (gnomefreak) wrote :

If you are able to reproduce this crash please use apport to file this bug so i can get a better idea on what is causing this.

Us a new profile see if you can than reproduce this bug. if so please file it using apport.

Changed in firefox-3.0 (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Dan (djgavenda2) wrote : apport-collect data

Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=en_US.UTF-8
Uname: Linux 2.6.28-11-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy glassfish lpadmin mysql plugdev redsky sambashare scanner video

Revision history for this message
Dan (djgavenda2) wrote : Re: click on bookmark crashes firefox

I can recreate it even w/ a new profile. This is an annoying bug. Anytime I right click on the bookmark bar in Firefox, FF will crash.

Revision history for this message
Milos M (milos-miljkovic) wrote :

Using Ubuntu 9.04 64-bit, Firefox crashes related to clipboard. If a bookmark is clicked after using Ctrl+c or Ctrl+v in Matlab, Firefox closes. If clipboard is used last by Firefox (Ctrl+c or Ctrl+v) all is fine. Profile renewal does not help.

Revision history for this message
Stephan Zanger (bungoleena) wrote :

A simple but stupid workaround for our workgroup is running xclipboard all the time on an unused desktop or something.
As long as xclipboard is running (simple application to view clipboard content etc), firefox doesn't crash.

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

Same problem here. Attaching backtrace with full symbols and changing back to Confirmed.

$ apt-cache policy firefox
firefox:
  Installed: 3.0.11+build2+nobinonly-0ubuntu0.9.04.1
  Candidate: 3.0.11+build2+nobinonly-0ubuntu0.9.04.1
  Version table:
 *** 3.0.11+build2+nobinonly-0ubuntu0.9.04.1 0
        500 http://archive.ubuntu.com jaunty-updates/main Packages
        500 http://archive.ubuntu.com jaunty-security/main Packages
        500 http://security.ubuntu.com jaunty-security/main Packages
        100 /var/lib/dpkg/status
     3.0.8+nobinonly-0ubuntu3 0
        500 http://archive.ubuntu.com jaunty/main Packages
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"
$

Changed in firefox-3.0 (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
In , Mozbugz (mozbugz) wrote :

*** Bug 501080 has been marked as a duplicate of this bug. ***

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote : Re: click on bookmark crashes firefox

Also occurs with the Karmic FF 3.5.2 package.

Revision history for this message
G Cole (gregjcole) wrote :

This same situation has been happening to me as well. It seems to be related to the clipboard and/or the bookmarks. I have not been able to get a log of the problem since the whole system hangs when it happens. I am running Ubuntu Jaunty AMD64 version.

Revision history for this message
G Cole (gregjcole) wrote :

here is the trace back:

apt-cache policy firefox
firefox:
  Installed: 3.5.3~hg20090821r26255+nobinonly-0ubuntu2~umd1~jaunty
  Candidate: 3.5.3~hg20090821r26255+nobinonly-0ubuntu2~umd1~jaunty
  Version table:
 *** 3.5.3~hg20090821r26255+nobinonly-0ubuntu2~umd1~jaunty 0
        500 http://ppa.launchpad.net jaunty/main Packages
        100 /var/lib/dpkg/status
     3.0.13+nobinonly-0ubuntu0.9.04.1 0
        500 http://us.archive.ubuntu.com jaunty-updates/main Packages
        500 http://security.ubuntu.com jaunty-security/main Packages
     3.0.8+nobinonly-0ubuntu3 0
        500 http://us.archive.ubuntu.com jaunty/main Packages

Revision history for this message
G Cole (gregjcole) wrote :

 cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"

Revision history for this message
In , Mats Palmgren (matspal) wrote :

*** Bug 511876 has been marked as a duplicate of this bug. ***

Revision history for this message
Krzysztof Juzaszek (aborygen3-wp) wrote : Re: click on bookmark crashes firefox

The same problem on Ubuntu 9.04 amd64

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

Anyone have any idea why this makes the desktop unresponsive? The fact that a clipboard bug in Firefox can hang the whole system is a severe bug in the system itself. Whenever I accidentally trigger this bug I have to switch to a virtual terminal to kill Firefox.

Revision history for this message
John Vivirito (gnomefreak) wrote :

Tristan
Please file a separte bug since this bug is about Firefox crashing not hanging.
From hanging POV you may want to run firefox with a new profile. See link below on how to use new profile:
https://wiki.ubuntu.com/MozillaTeam/Bugs#Try%20with%20a%20new%20profile

Revision history for this message
John Vivirito (gnomefreak) wrote :

I thought i already commented on this bug.
Tristan you bug is not the same as this one please file a new bug using ubuntu bugs
the command to do this is below:
ubuntu-bugs firefox-3.0
or if using 3.5 just replace firefox-3.0 to firefox-3.5

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

Thanks John. I thought from G Cole's comment that we all had the same bug, but I guess not. I've filed the hang behaviour as bug #429819.

Revision history for this message
In , pureblood (freeseek) wrote :

Please, add the pointer check, for the sake of saving time to hundreds of people around there. I do not understand why this bug is not considered a top priority for the team. I have starting experiencing this but with Thunderbird 2, around six months ago. I was startled. The crashes happened on four different machines I owned, so it must be overly spread. I upgraded to Thunderbird 3 hoping the problem to be solved, but it was not (I use version 3.0~b4~hg20090908r3585+nobinonly-0ubuntu1~umd1~jaunty). I have lost a lot of time having to rewrite my emails because of these crashes and now I have developed the practice to first copy the whole text of the email to the clipboard before pasting anything into it. The crash happens both on 32 bits machines and 64 bits machines. Also, it happens with all the machines I have, running either Ubuntu Intrepid or Jaunty. I have been wondering how the developers cope with that. Maybe the fact that I use KDE has something to do with it? Please do not let this bug open.

Revision history for this message
In , Mozbugz (mozbugz) wrote :

giulio, are there some particular apps from which copying causes the crash?
Any core KDE apps? Which versions?
(So far there only seem to have been reports from java apps.)

Revision history for this message
In , pureblood (freeseek) wrote :

Actually, my experience has been that the problem is extensive. Sometimes I copy text from kile and it crashes, sometimes from firefox, sometimes from chrome-browser and sometimes it crashes even when I paste text copied from Thunderbird itself. It does not crash if I paste the text in the subject field. The problem is not reproducible though. But when it crashes I know that I can reproduce it with what I have in the clipboard, as long as I do not change it. But I have not noticed any pattern. Actually, if I paste what I have in the clipboard and I copy it again, it usually does not crash. Sometimes it is even enough to open Klipper (the KDE clipboard manager), reselect what is already selected, and paste again, and it works fine. Please, let me know if you want me to debug it. I have no experience with debugging but I am willing to dedicate time to this.

Revision history for this message
In , pureblood (freeseek) wrote :

By the way, someone in this forum: http://bugs.archlinux.org/task/14076 mentioned as well that he is using KDE4 and not Gnome.

Revision history for this message
ilna (a-gaydenko) wrote : Re: click on bookmark crashes firefox

I see the bug is not confirmed for firefox-3.5. Ok, I'm next here (up to date Kubuntu Karmic testing under amd64/core2duo).

Revision history for this message
In , Mozbugz (mozbugz) wrote :

I've made a Firefox build with some logging here:
https://<email address hidden>/

If you have something in the clipboard that causes a crash (in Thunderbird or
other Mozilla apps), then run this build and try pasting into a
contenteditable element such as in attachment 345137.

The build is based on trunk (a few days ago), so I suggest either back up your
profile or "mkdir ~/tmp/new-profile" and run with "-profile ~/tmp/new-profile
-no-remote".

It shouldn't crash but will log some info like this:

** (firefox-bin:17547): WARNING **: atom_name is NULL for targets[0] == 0x78
** (firefox-bin:17547): WARNING **: xatom is 606 for GdkAtom 0x78
** (firefox-bin:17547): WARNING **: xatom 606 name is text/plain;charset=UTF-8

Hopefully the logs might provide some clues as to what is happening.

Revision history for this message
In , pureblood (freeseek) wrote :

I am sorry, but the problem has nothing to do with firefox, but with Thunderbird, maybe this is the wrong place where to report it. I have never had firefox crashing, only Thunderbird. I was redirected to this bug from this one:
https://bugzilla.redhat.com/show_bug.cgi?id=509582

Revision history for this message
In , Mozbugz (mozbugz) wrote :

Firefox will use the same code as in the Thunderbird stack trace at https://bugzilla.redhat.com/show_bug.cgi?id=509582 if you paste into attachment 345137.

Revision history for this message
In , Jhorak (jhorak) wrote :

*** Bug 518331 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jhorak (jhorak) wrote :

Created an attachment (id=402344)
Warning messages when pasting from jEdit

Attached warnings for bug 518331.

Revision history for this message
In , Mozbugz (mozbugz) wrote :

Thank you, Jan.

The way gdk_selection_property_get() is meant to work for atom property types
is that it fills |data| with GdkAtoms. These GdkAtoms come from
gdk_x11_xatom_to_atom_for_display(), which should return either a valid
GdkAtom, or on failure GDK_NONE (which is also a valid GdkAtom).

gtk_selection_data_get_targets() should only return true if the selection data
contains GdkAtoms.

The "`ATOM_TO_INDEX (atom) < virtual_atom_array->len' failed" assertion in
attachment 402344 indicates that the GdkAtoms are not valid, so something has
gone wrong in this process before the gdk_atom_name() call.

I haven't been able to reproduce here, so I'd appreciate it if someone can work out why these GdkAtoms are not valid. I would start with a break point in gdk_selection_property_get() and checking that the elements of atoms_dest are all less than virtual_atom_array->len.

Revision history for this message
In , Stransky (stransky) wrote :

Jan will be working on it...

Revision history for this message
In , pureblood (freeseek) wrote :

Created an attachment (id=402666)
Firefox output when pasting text that would make Thunderbird crash

Revision history for this message
In , pureblood (freeseek) wrote :

I finally managed to crash Thunderbird again, then I went in firefox and I pasted the same data that would make Thunderbird crash. I hope this helps.

Revision history for this message
In , pureblood (freeseek) wrote :

I got more evidence that the bug has definitely to do with something broader than Thunderbird (although Thunderbird is the only one that crashes). I have noticed, in the past 8 months or so, that sometimes I would try to copy something in matlab by selecting it and copy it somewhere else with the middle button of the mouse and nothing would happen. Then I would just go and copy it again, so that I developed the habit of copying the text pressing Ctrl+C multiple times. Last time it happened, I thought it might be related and I tried to paste the clipboard into Thunderbird. It crashed! I bet whatever the bug is, it is related.

Revision history for this message
ilna (a-gaydenko) wrote : Re: click on bookmark crashes firefox

I have found an appropriate upstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=495392

Unfortunately, resolving the issue is postponed in spite of the workaround patch existance. Will Ubuntu team be so kind to try the patch? The issue is extremly annoying being widespreaded. Thanks!

Revision history for this message
James Walsh (groundskeeperwiley) wrote :

I updated my karmic box this morning and get this crash. FF seems to work fine as long as I don't click on any bookmarks.

Firefox-3.5
3.5.3+build1+nobinonly-0ubuntu2
(i386)

Revision history for this message
In , ilna (a-gaydenko) wrote :

Confirming the issue, up to date Kubuntu Karmic testing is in use:

Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090924 Ubuntu/9.10 (karmic) Firefox/3.5.3

My "main" way to reporduce the crash is to copy to clipboard something from Netbeans and click on any bookmark.

Is it possible to public a workaround without closing the bug?

Revision history for this message
In , ilna (a-gaydenko) wrote :

Addition. To be sure the problem doesn't depend on, say, installed plugins, I have tried:

- created new profile
- tried to reproduce the issue - no crash,
- imported previously saved (JSON) bookmarks - crash

Resuming, the problem doesn't depend on plugins, but does depend on concrete bookmark tree.

Revision history for this message
Marko Poutiainen (makistos) wrote : Re: click on bookmark crashes firefox

I started seeing this problem after I changed to the KDE desktop. I never had this problem when using Gnome.

Revision history for this message
Marko Poutiainen (makistos) wrote :

I managed to fix this bug on my box by removing the following package: firefox-gnome-support. So it looks like this is a Gnome-related problem that does not exist in the KDE environment.

This might give more pointers to people trying to fix this problem.

Revision history for this message
ilna (a-gaydenko) wrote :

I have not firefox-gnome-support installed, but have crashes.

Revision history for this message
In , Antoine-monmayrant+mozilla (antoine-monmayrant+mozilla) wrote :

I think I experience the same bug in Thunderbird 3.0b3 under Fedora 11 64 bits
(Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814)
(Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3)
It occurs almost all the time even in safe-mode using a brand new profile.

Here are some observations I made:
- Crash occurs when pasting in the body of the message, not when pasting in the "To" or "Cc" fields.
- Crash can be avoided by using the kde clipboard klipper: Crtl-C in a given app (firefox or jabref) then Ctrl-V in Thunderbird leads to a seg fautl (idem using select/middle click) but Ctrl-C in a given app, then selecting an entry in the paste history of klipper then Ctr-V works (same for select/middle click).

Hope it helps,

Antoine

Revision history for this message
James Walsh (groundskeeperwiley) wrote : Re: click on bookmark crashes firefox

Updated today to 3.5.3+build1+nobinonly-0ubuntu3 and bookmarks work again.

Revision history for this message
ilna (a-gaydenko) wrote :

James, it strange. For me 3.5.3+build1+nobinonly-0ubuntu3 crashes. And, well, upstream didn't patched the app yet.

I have noticed the app crashes with Cntrl-C done in any (among those I have tried) java Swing applications before clicking on bookmarks.

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

FYI, my bug (bug #429819) has the same root cause as this bug after all. I bought a new computer and it experiences the bug under the exact same situations with clipboard content, only it crashes Firefox as described in this report rather than hanging the desktop as it does on my old computer. So my stack trace should be relevant to this bug.

Revision history for this message
ilna (a-gaydenko) wrote :

I don't understand all affected with this bug users (as I am) - there is an upstream bug

https://bugzilla.mozilla.org/show_bug.cgi?id=495392

But nobody has voted for it.

Revision history for this message
ilna (a-gaydenko) wrote :

To maintainers: are there any reasons for:

1. the bug even isn't confirmed for firefox-3.5 (for firefox-3.0 only),
2. the patch (three new lines and one changed line only!) suggested in upstream bugzilla (even being a workaround) isn't even tried?

Sorry for persistence, the issue is indead very, very annoying. I'm ready to test..

Revision history for this message
Thierry Lemaire (thierry-lemaire) wrote :

No more problem with firefox 3.5.3 Karmic beta

Revision history for this message
ilna (a-gaydenko) wrote :

I'm not sure "no more problem" are valuable for hundreds firefox users having the problem.
BTW, it is xulrunner bug, rather firefox one, as was shown in upstream bugzilla.

Changed in xulrunner:
status: Unknown → In Progress
Revision history for this message
Lopo Lencastre de Almeida (humaneasy) wrote :

Have crashes with 3.5.3 on startup and in many other situations. Sometimes just clicking in the current page crashes it.

It is really anoying :(

$ apt-cache policy firefox-3.5
firefox-3.5:
  Instalado: 3.5.3+build1+nobinonly-0ubuntu0.9.04.2
  Candidato: 3.5.3+build1+nobinonly-0ubuntu0.9.04.2
  Tabela de Versão:
 *** 3.5.3+build1+nobinonly-0ubuntu0.9.04.2 0
        500 http://pt.archive.ubuntu.com jaunty-updates/universe Packages
        100 /var/lib/dpkg/status
     3.5.2+nobinonly-0ubuntu0.9.04.1 0
        500 http://security.ubuntu.com jaunty-security/universe Packages
     3.5~b4~hg20090330r24021+nobinonly-0ubuntu1 0
        500 http://pt.archive.ubuntu.com jaunty/universe Packages
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"

Revision history for this message
In , Jocker (jocker) wrote :

is there anyone actively working on this bug?

Is there any known workaround or non-affected version we could use until the bug is fixed?

Currently using Thunderbird 2.0.22 under jaunty...

Can actively reproduce it while pasting data from squirrelSQL (and other java-based apps) in case you need more debug output or something.

Thunderbird also crashes on random(?) intervals while minimized, if I have "bad" data copied into the clipboard (even without pasting it on thunderbird)

Thanks in advance,

Revision history for this message
In , pureblood (freeseek) wrote :

Do you use KDE as well? I started experiencing this around the beginning of year (2009), I think when I started using KDE 4.2, and it never went away since then. I still don't know what is causing the problem but I cannot believe that such a bad regression made it through for so long. I have to be honest, this single problem is making me switch from Thunderbird to the web based Gmail interface.

Revision history for this message
In , ilna (a-gaydenko) wrote :

The problem does NOT depend on desktop enviroment or window manager!! I have tried fluxbox the same way: start Firefox, start some java application, copy something to clipboard from last one, click on bookmarks - crash!

Revision history for this message
In , pureblood (freeseek) wrote :

Well, I was not trying to infer that, just trying to give some hint to the time the regression was introduced.

Revision history for this message
In , pureblood (freeseek) wrote :

Wow, you are right though, if I copy something from matlab (with Ctrl+C, not just by highlighting with the mouse), which is java based, go to firefox, open the Bookmarks menu and click with the right button of the mouse on a bookmark, it crashes! But I never managed to crash Firefox before, probably because I don't use the bookmarks.

ilna (a-gaydenko)
Changed in firefox-3.5 (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Stransky (stransky) wrote :

May be related to bug 311340 so taking this one...

Revision history for this message
In , Stransky (stransky) wrote :

Well, after some investigation I believe the NULL check is a proper solution here.

For instance, see the clipboard tutorial at http://www.gtk.org/tutorial1.2/gtk_tut-19.html

Anyway, selection_data and its description by atoms is created by application which pastes data into clipboard. Mozilla has not any mechanism how to deny third-party app to paste incorrect targets into clipboard. We can only ignore them.

Revision history for this message
In , Mozbugz (mozbugz) wrote :

(In reply to comment #33)
> Anyway, selection_data and its description by atoms is created by application
> which pastes data into clipboard. Mozilla has not any mechanism how to deny
> third-party app to paste incorrect targets into clipboard. We can only ignore
> them.

Yes, another app may put anything into the X Selection.

But gtk_selection_data_get_targets() should return GdkAtoms.
GdkAtom is a type specific to GDK and has no meaning for other apps.
GdkAtoms should not come (directly) from another app, so I filed

https://bugzilla.gnome.org/show_bug.cgi?id=601611

The comment "As usual, java gets it wrong and sets the type to TARGETS, not ATOM" in gtk_selection_data_get_targets() was helpful.

Revision history for this message
In , Mozbugz (mozbugz) wrote :

(From update of attachment 380384)
The correct workaround for applications would be to check whether
gtk_selection_data_get_data_type(selection_data) == gdk_atom_intern("TARGETS", FALSE)
before calling gtk_selection_data_get_targets(), and, if so and gtk_selection_data_get_format(selection_data) == 32, assume XA_ATOM type and use gdk_x11_xatom_to_atom() to do the conversion to GdkAtom.

(But the GTK bug should still be fixed.)

Revision history for this message
In , Stransky (stransky) wrote :

I still believe we should check what gtk gives us and don't blindly throw it into scrcmp.

Revision history for this message
In , Stransky (stransky) wrote :

s/scrcmp/strcmp

Revision history for this message
In , Mozbugz (mozbugz) wrote :

I'd be happy with using g_strcmp0 when the data is a gchar* from GDK.
That way our code doesn't need the extra checks.

Revision history for this message
In , Stransky (stransky) wrote :

Created an attachment (id=412175)
v2

Okay, here is a patch with g_string0. I also removed inconsistency in Drag&Drop when somewhere is the NULL check performed and somewhere is missing. All code with gdk_atom_name() call g_string0() now.

Revision history for this message
In , Mozbugz (mozbugz) wrote :

(From update of attachment 412175)
Thanks for tidying up the existing NULL checks.

Revision history for this message
In , Mozbugz (mozbugz) wrote :

(In reply to comment #35)
> The correct workaround for applications would be to check whether
> gtk_selection_data_get_data_type(selection_data) == gdk_atom_intern("TARGETS",
> FALSE)
> before calling gtk_selection_data_get_targets(), and, if so and
> gtk_selection_data_get_format(selection_data) == 32, assume XA_ATOM type and
> use gdk_x11_xatom_to_atom() to do the conversion to GdkAtom.

The java bug has been fixed, so not much point in doing this.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6607163

Revision history for this message
In , Jocker (jocker) wrote :

(In reply to comment #41)
> (In reply to comment #35)
> > The correct workaround for applications would be to check whether
> > gtk_selection_data_get_data_type(selection_data) == gdk_atom_intern("TARGETS",
> > FALSE)
> > before calling gtk_selection_data_get_targets(), and, if so and
> > gtk_selection_data_get_format(selection_data) == 32, assume XA_ATOM type and
> > use gdk_x11_xatom_to_atom() to do the conversion to GdkAtom.
>
> The java bug has been fixed, so not much point in doing this.
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6607163

I tend to disagree on that.
I believe that any decently-written piece of software should safeguard from crap input, by checking whenever possible. The input after all could be there by mistake, or intentionally ( i.e. malicious code)

The fact that one piece of crappy software was patched does not mean that there are no more crappy software out there (or older versions of the said software still in circulation)

...just my two cents

Thnx..

Revision history for this message
In , Mozbugz (mozbugz) wrote :

(In reply to comment #42)
> I believe that any decently-written piece of software should safeguard from
> crap input, by checking whenever possible.

Martin's patch protects from crashes.

I don't think it is worth adding code to interpret an old Java's special format.

Revision history for this message
In , Vogt (vogt) wrote :

Created an attachment (id=413314)
Patch for thunderbird on OpenSUSE 11.1

Revision history for this message
In , Vogt (vogt) wrote :

Hello,

thanks martin for the patch. This fixed the "right mouse click" crash
on the Bookmark Buttons for me. For thunderbird this does not help on my opensuse
system. I will attach my patch, but I'm nor sure if this is the right place.

regards,

Martin

Revision history for this message
In , Stransky (stransky) wrote :

*** Bug 511363 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Stransky (stransky) wrote :

Can we make a progress here? It hits Fedora users regulary....

Revision history for this message
In , Dao (dao) wrote :

You need to request approval for 1.9.2.

Revision history for this message
Giorgio (gioloi72) wrote : Re: click on bookmark crashes firefox

I confirm what Ilna wrote in #61 ("..I have noticed the app crashes with Cntrl-C done in any (among those I have tried) java Swing applications before clicking on bookmarks..")
If I have Netbeans opened (Netbeans uses java Swing) and I do a Ctrl+C in Netbeans then right-click on bookmarks causes Firefox to crash
My conf: Ubuntu 9.10 AMD64, firefox 3.5.5

Excuse my poor english..

Revision history for this message
Sylvain Filteau (cidsphere) wrote :

As Giorgio and Ilna said, the bug happens when copying something from netbeans and right clicking on firefox bookmarks toolbar.

I found what is the problem, it seams to happen when using netbeans installed from ubuntu repositories. One of the requirements of this package is OpenJDK and I think it's the root problem.

My work around was to uninstall netbeans and OpenJDK and install the package sun-java6-bin + netbeans downloaded from netbeans.com

Revision history for this message
In , Thomas (me-thomaskeller) wrote :

I'm on TB 3.0b4 (openSUSE 11.2) and this crash hits me as well, however I do not need to trigger it manually - I just see TB crashing "in the background". When I try to restart it with '--debug gdb', I get the attched stacktrace directly on startup (calendar view is active).

Revision history for this message
In , Thomas (me-thomaskeller) wrote :

Created an attachment (id=414227)
Stacktrace I get on startup of 3.0b4

Revision history for this message
In , Bugzilla-standard8 (bugzilla-standard8) wrote :

Martin: we'd like to get this into the branches for Thunderbird to pick up.

Is there any easy way to produce a crashtest for this? (from the comments, I'm guessing not).

As mozilla-central is restricted to approval-1.9.2+ or blocking-1.9.2+ only at the moment, could you request approval-1.9.2 for this and put a risk assessment on?

I'd like to end up getting this into the 1.9.2 and 1.9.1 branches so that Thunderbird can pick this up, as I'm told it is a frequent crash for us on Linux.

Revision history for this message
In , Stransky (stransky) wrote :

Reproduction steps:

1) install jEdit (from http://www.jedit.org/)
2) launch thunderbird/firefox, open any page you can paste in or create a new message
3) write some text in jEdit and copy-paste it to mozilla (by ctrl+c, ctrl+v).

I can reliably reproduce it on Fedora 12/i686.

Revision history for this message
In , Stransky (stransky) wrote :

with gtk2-2.18.3-21.fc12.x86_64

Revision history for this message
In , Stransky (stransky) wrote :

The crash is reproducible on x86_64 too, with:

$java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6) (fedora-33.b16.fc12-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

There's one trick there - don't use proprietary java VM from sun, it seems to crash with the OpenJDK only.

Revision history for this message
In , Stransky (stransky) wrote :

As for the risk assessment, it's generally strcmp -> g_strcmp0 change at a few places. It can't regress unless there's a typo in the patch (or regression inside glib itself).

Revision history for this message
In , Bugzilla-standard8 (bugzilla-standard8) wrote :

(From update of attachment 412175)
See comments 52-55 for clear STR and risk assessments (I'm told we're seeing this a lot in Thunderbird on Linux as well).

Revision history for this message
In , Joe-drew (joe-drew) wrote :

It hurts me, but I don't think we should block on this. I do think this patch should be approved, though.

Revision history for this message
In , Karlt (karlt) wrote :

Yes, I don't think we should block on workarounds for every new bug introduced in GTK. However, the patch is safe to take.

Revision history for this message
In , Beltzner (beltzner) wrote :

Not blocking, a192=beltzner

Revision history for this message
In , Bugzilla-standard8 (bugzilla-standard8) wrote :
Revision history for this message
In , Bugzilla-standard8 (bugzilla-standard8) wrote :

I had to back this out due to Linux build bustages across all trees:

http://hg.mozilla.org/mozilla-central/rev/6432560e430e

http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1259100980.1259101752.9386.gz

/builds/slave/mozilla-central-linux/build/widget/src/gtk2/nsClipboard.cpp: In member function ‘virtual nsresult nsClipboard::HasDataMatchingFlavors(const char**, PRUint32, PRInt32, PRBool*)’:
/builds/slave/mozilla-central-linux/build/widget/src/gtk2/nsClipboard.cpp:434: error: ‘g_strcmp0’ was not declared in this scope
/builds/slave/mozilla-central-linux/build/widget/src/gtk2/nsClipboard.cpp:438: error: ‘g_strcmp0’ was not declared in this scope
NEXT ERROR make[6]: *** [nsClipboard.o] Error 1
make[6]: *** Waiting for unfinished jobs....
/builds/slave/mozilla-central-linux/build/widget/src/gtk2/nsDragService.cpp: In member function ‘virtual nsresult nsDragService::IsDataFlavorSupported(const char*, PRBool*)’:
/builds/slave/mozilla-central-linux/build/widget/src/gtk2/nsDragService.cpp:834: error: ‘g_strcmp0’ was not declared in this scope
/builds/slave/mozilla-central-linux/build/widget/src/gtk2/nsDragService.cpp:840: error: ‘g_strcmp0’ was not declared in this scope
/builds/slave/mozilla-central-linux/build/widget/src/gtk2/nsDragService.cpp:849: error: ‘g_strcmp0’ was not declared in this scope
/builds/slave/mozilla-central-linux/build/widget/src/gtk2/nsDragService.cpp:858: error: ‘g_strcmp0’ was not declared in this scope
/builds/slave/mozilla-central-linux/build/widget/src/gtk2/nsDragService.cpp: In member function ‘PRBool nsDragService::IsTargetContextList()’:
/builds/slave/mozilla-central-linux/build/widget/src/gtk2/nsDragService.cpp:981: error: ‘g_strcmp0’ was not declared in this scope
make[6]: *** [nsDragService.o] Error 1

Revision history for this message
In , Mozilla (mozilla) wrote :

argl, g_strcmp0() needs glib 2.16. That seems to be too recent.

Revision history for this message
In , Karlt (karlt) wrote :

Yes, sorry. That was my suggestion. I thought I checked but obviously I did something wrong.

Revision history for this message
In , Karlt (karlt) wrote :

(From update of attachment 380384)
Let's go back to this, then.

The check in nsDragService isn't really necessary because GdkDragContext is not subject to the same bug, but I guess it's consistent to do the same check everywhere.

Revision history for this message
In , Karlt (karlt) wrote :

(From update of attachment 380384)
Requesting approval 1.9.2 for these null checks that fix the most-reported Thunderbird crash on Linux. The patch only affect code paths in situations for which we'd crash atm.

Writing a unit test to test the crash would be a significant amount of work and would only be of any use when run with the broken versions of GTK, which we don't have on our test platforms.

This patch is a workaround for a bug in a workaround in GTK for a Java bug.
I've suggested that the incorrect workaround in GTK be removed, but there hasn't been any progress on that.

Revision history for this message
In , Karlt (karlt) wrote :
Revision history for this message
In , Karlt (karlt) wrote :
Revision history for this message
In , Karlt (karlt) wrote :
Revision history for this message
ilna (a-gaydenko) wrote : Re: click on bookmark crashes firefox

In accordance with

https://bugzilla.mozilla.org/show_bug.cgi?id=495392

the bug is fixed by both mozilla and gtk upsteams:

http://hg.mozilla.org/releases/mozilla-1.9.2/rev/b8b04ef445a1
http://git.gnome.org/cgit/gtk+/commit/?id=6dfb21e616bdf1e1db7ed86bff08fcb68210f17e

I think it is safe to integrate 2-lines patches into appropriate Ubuntu packages.

Changed in xulrunner:
status: In Progress → Fix Released
Revision history for this message
Rene Visser (renevisser) wrote :

Also got this bug in FF 3.5.5 on Ubuntu 9.10. Besides the RMB it also crashes on a LMB click in the bookmarks sidebar. Error started after clearing the browser history.

Revision history for this message
Micah Gersten (micahg) wrote :

This has been fixed in Firefox 3.6.

Changed in firefox-3.5 (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
summary: - click on bookmark crashes firefox
+ click on bookmark crashes firefox when selection contains data from java
summary: - click on bookmark crashes firefox when selection contains data from java
+ click on bookmark crashes firefox
Micah Gersten (micahg)
summary: - click on bookmark crashes firefox
+ click on bookmark crashes firefox with java content in clipboard
Revision history for this message
Micah Gersten (micahg) wrote :

Marking both Firefox 3.0 and 3.5 Triaged, but there's nothing we can do with them. The problem is in GTK. We'll see about patching that.

Changed in firefox-3.0 (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Micah Gersten (micahg) wrote :

Marking this Triaged as there's an upstream GTK bug.

Changed in gtk+2.0 (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Micah Gersten (micahg) wrote :

gtk+2.0 (2.19.1-1) experimental; urgency=low

  * New upstream development release:
    + debian/rules:
      - Include check-dist.mk to prevent accidental uploads to unstable.
    + debian/control.in:
      - Update ATK build dependency.
    + debian/rules,
      debian/libgtk-directfb-2.0-0.symbols,
      debian/libgtk2.0-0.symbols:
      - Update SHVER to 2.19.1 for the new API and add new symbols.
    + debian/patches/009_gtk-export-filechooser.patch,
      debian/patches/021_loader-files-d.patch:
      - Updated to apply cleanly again.
    + debian/patches/070_mandatory-relibtoolize.patch:
      - Regenerated for the new version.

gtk+2.0 (2.18.4-1) unstable; urgency=low

  * New upstream bugfix release:
    + debian/patches/070_mandatory-relibtoolize.patch:
      - Updated for the new version.
    + debian/patches/091_dont-omit-gtk-icon-size-dialog.patch,
      debian/patches/092_gtk-image-size-allocation.patch:
      - Dropped, merged upstream.
 -- Sebastian Dr?ge < <email address hidden> > Wed, 02 Dec 2009 11:59:41 +0000

Changed in gtk+2.0 (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Micah Gersten (micahg) wrote :

To get this fixed in Karmic, I need a reproducable test case. Could one person please edit the description at the top of the bug and add a test case? This has been fixed in Lucid as the comment above shows the sync with Debian.

Revision history for this message
ilna (a-gaydenko) wrote :

Micah, to reproduce - install any swing java app, use openjdk to run it, copy to clipboard anything in this swing app, click on firefox bookmarks.

Revision history for this message
Micah Gersten (micahg) wrote :

@ilna

Could you please see if the GTK package in my PPA fixes this for you?
https://launchpad.net/~micahg/+archive/sru-test/

Revision history for this message
ilna (a-gaydenko) wrote :

Micah,

I have added the ppa to source list, but am not sure I know how and which packages to install, and how to return to official gtk after trying the ppa.

Revision history for this message
Micah Gersten (micahg) wrote :

Here is a patch for Karmic with just this fix pulled from the upstream GTK bug.

Revision history for this message
ilna (a-gaydenko) wrote :

Micah,

How to reproduce (more elaborative):

- install openjdk-6-jdk
- verify it is selected with 'java -version'
- install netbeans
- start firefox
- start netbeans
- in netbeans: using any input field or editor window (create any new project and any new file in it) copy with Ctrl-C any text to clipboard
- switch to Firefox, click on any bookmark in bookmark tab tree
- Firefox crashes

In fact, instead of netbeans any java swing application can be used.

Fix from the ppa does work, thanks!

Micah Gersten (micahg)
description: updated
Revision history for this message
Micah Gersten (micahg) wrote :
Changed in gtk+2.0 (Ubuntu Karmic):
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted gtk+2.0 into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
ilna (a-gaydenko) wrote :

Thanks! - verified for:

~$ aptitude -v -F '%c %p %V %d' --disable-columns search ~ilibgtk2
...
i libgtk2.0-0 2.18.3-1ubuntu2.1 The GTK+ graphical user interface library
i libgtk2.0-bin 2.18.3-1ubuntu2.1 The programs for the GTK+ graphical user interface library
i libgtk2.0-common 2.18.3-1ubuntu2.1 Common files for the GTK+ graphical user interface library
i libgtk2.0-dev 2.18.3-1ubuntu2.1 Development files for the GTK+ library
i libgtk2.0-doc 2.18.3-1ubuntu2.1 Documentation for the GTK+ graphical user interface library

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gtk+2.0 - 2.18.3-1ubuntu2.1

---------------
gtk+2.0 (2.18.3-1ubuntu2.1) karmic-proposed; urgency=low

  * debian/patches/095_fix_java_clipboard_crash.patch:
    - add to fix (LP: #372103)
 -- Micah Gersten <email address hidden> Sun, 13 Dec 2009 02:33:20 -0600

Changed in gtk+2.0 (Ubuntu Karmic):
status: Fix Committed → Fix Released
Revision history for this message
Micah Gersten (micahg) wrote :

Marking Firefox tasks invalid since this was patched in GTK.

Changed in firefox-3.0 (Ubuntu):
status: Triaged → Invalid
Changed in firefox-3.0 (Ubuntu Karmic):
status: New → Invalid
Changed in firefox-3.5 (Ubuntu):
status: Triaged → Invalid
Changed in firefox-3.5 (Ubuntu Karmic):
status: New → Invalid
Revision history for this message
In , Wharms-bfs (wharms-bfs) wrote :

Just for completeness: i had the samebug with thunderbird running inside a NXcleint. No need for JAVA , just clip & bang.
thunderbird 2.0.23 on Opensuse11.1

backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff169d854 in strcmp () from /lib64/libc.so.6
(gdb) bt
#0 0x00007ffff169d854 in strcmp () from /lib64/libc.so.6
#1 0x0000000000622b1b in nsClipboard::HasDataMatchingFlavors (this=<value optimized out>, aFlavorList=0x1000, aWhichClipboard=<value optimized out>, _retval=0x7fffffffc29c) at nsClipboard.cpp:396
#2 0x0000000000a40008 in nsHTMLEditor::HavePrivateHTMLFlavor (this=<value optimized out>, aClipboard=0x4415880) at nsHTMLDataTransfer.cpp:1846
#3 0x0000000000a400c7 in nsHTMLEditor::Paste (this=0x3a8a7d0, aSelectionType=0) at nsHTMLDataTransfer.cpp:1865

Revision history for this message
In , Bugzilla-standard8 (bugzilla-standard8) wrote :

Karl: would you be prepared to back port this to 1.9.1? We did see a few crashes with this stack for 3.0, though nothing yet for 3.0.1. It may be that the affected users have switched to something else or mainly use distro builds. I'm just wondering what your thoughts are?

Revision history for this message
In , pureblood (freeseek) wrote :

Can't agree better. I stopped using Thunderbird. This bug remained opened for too long.

Revision history for this message
In , Karlt (karlt) wrote :

(From update of attachment 380384)
Actively maintained distros using the GTK+-2.18 branch would have picked up the fix there. But distros on the GTK+-2.16 branch are unlikely to have backported the patch (Ubuntu 9.04 and Fedora 11 haven't), so applying the workaround to 1.9.1 would help people.

The patch only adds null checks in places where null values would cause a crash.

Revision history for this message
In , Dveditz (dveditz) wrote :

(From update of attachment 380384)
Approved for 1.9.1.9, a=dveditz for release-drivers

Revision history for this message
In , Bugzilla-standard8 (bugzilla-standard8) wrote :
Changed in gtk:
importance: Unknown → Critical
status: Unknown → Fix Released
Changed in xulrunner:
importance: Unknown → Medium
Revision history for this message
In , Vseerror (vseerror) wrote :

*** Bug 534146 has been marked as a duplicate of this bug. ***

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.