GNOME Bugzilla – Bug 116256
Crash on switching to a tab, whose contents were closed by a javascript.
Last modified: 2004-12-22 21:47:04 UTC
Package: galeon Severity: normal Version: 1.3.5 Synopsis: Crash on switching to a tab, whose contents were closed by a javascript. Bugzilla-Product: galeon Bugzilla-Component: Mozilla interaction BugBuddy-GnomeVersion: 2.0 (2.2.1) Description: Description of Problem: When trying to switch to a tab whose mozilla component was probably destroyed by javascript, galeon crashes. Steps to reproduce the problem: 1. Enable "open new tabs behind current tab" and "popups in tabs" 2. Go to http://www.map24.com/ and search for any route (for example: Perl (D) to Apach (F) ;) - keep the main tab in front. 3. Wait for the map to appear in the main window. The "please wait while generating" tab should then have been closed, but will stay open. 4. switch to the other tab. Actual Results: Galeon segfaults with the attached backtrace. Expected Results: The tab should have disappeared when the window was closed by javascript How often does this happen? Reproduceable using above procedure. Additional Information: Using current debian unstable. 1.3.5.20030615 Debugging Information: Backtrace was generated from '/usr/lib/galeon-bin' (no debugging symbols found)...(no debugging symbols found)... [....] (no debugging symbols found)...(no debugging symbols found)...[New Thread 16384 (LWP 1910)] [New Thread 32769 (LWP 4305)] [New Thread 16386 (LWP 28676)] [New Thread 32771 (LWP 9769)] [New Thread 49156 (LWP 9040)] [New Thread 65541 (LWP 6997)] (no debugging symbols found)...(no debugging symbols found)... [....] (no debugging symbols found)...0x40ba3af9 in wait4 () from /lib/libc.so.6
+ Trace 38270
Thread 1 (Thread 16384 (LWP 1910))
------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-06-29 09:26 ------- Unknown version 1.3.x in product galeon. Setting version to the default, "unspecified". Reassigning to the default owner of the component, philipl@mail.utexas.edu.
Is this still reproducable in 1.3.7 (and preferrably with Mozilla 1.4)?
Hi, still reproduceable with galeon Version: 1.3.5.20030714-3 mozilla Version: 2:1.4-2 will try with 1.3.7 when the debian package is updated.
I am attaching a patch that fixes the crashing issue. The problem is that mozilla doesn't seem to be emitting the destroy_browser signal when the window isn't focused. It only emits it when it gets the focus when selecting the tab, which then causes the tab label to get deleted from underneath the gtk_notebook's feet causing the crash.
Created attachment 19064 [details] [review] Patch to fix the crash
*** Bug 119504 has been marked as a duplicate of this bug. ***
*** Bug 119507 has been marked as a duplicate of this bug. ***
*** Bug 100707 has been marked as a duplicate of this bug. ***
Fixed in CVS
*** Bug 121071 has been marked as a duplicate of this bug. ***