GNOME Bugzilla – Bug 516008
crash in Epiphany Web Browser: Seems to be avahi bookma...
Last modified: 2008-04-06 14:36:42 UTC
Version: 2.21.90 What were you doing when the application crashed? Seems to be avahi bookmarks stuff (Crashes a few seconds after launch). Repeatedly. Distribution: Ubuntu 8.04 (hardy) Gnome Release: 2.21.91 2008-02-12 (Ubuntu) BugBuddy Version: 2.21.90 System: Linux 2.6.24-7-generic #1 SMP Thu Feb 7 01:29:58 UTC 2008 i686 X Vendor: The X.Org Foundation X Vendor Release: 10400090 Selinux: No Accessibility: Disabled GTK+ Theme: Darkilouche Icon Theme: gnome Memory status: size: 225927168 vsize: 225927168 resident: 63082496 share: 27820032 rss: 63082496 rss_rlim: 4294967295 CPU usage: start_time: 1202821756 rtime: 342 utime: 317 stime: 25 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100 Backtrace was generated from '/usr/bin/epiphany-browser' Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread 0xb6b32b60 (LWP 20148)] [New Thread 0xadfe9b90 (LWP 20163)] [New Thread 0xb11ffb90 (LWP 20158)] [New Thread 0xb1b38b90 (LWP 20156)] [New Thread 0xb24abb90 (LWP 20155)] [New Thread 0xb34adb90 (LWP 20154)] [New Thread 0xb2cacb90 (LWP 20153)] [New Thread 0xb3caeb90 (LWP 20150)] [New Thread 0xb5852b90 (LWP 20149)] 0xb7f91410 in __kernel_vsyscall ()
+ Trace 188945
Thread 1 (Thread 0xb6b32b60 (LWP 20148))
----------- .xsession-errors (1468 sec old) --------------------- ** (epiphany-browser:18786): CRITICAL **: void gtk_moz_embed_get_nsIWebBrowser(GtkMozEmbed*, nsIWebBrowser**): assertion `GTK_IS_MOZ_EMBED(embed)' failed ** (epiphany-browser:18786): CRITICAL **: void gtk_moz_embed_get_nsIWebBrowser(GtkMozEmbed*, nsIWebBrowser**): assertion `GTK_IS_MOZ_EMBED(embed)' failed ** (epiphany-browser:18786): CRITICAL **: void gtk_moz_embed_get_nsIWebBrowser(GtkMozEmbed*, nsIWebBrowser**): assertion `GTK_IS_MOZ_EMBED(embed)' failed ** (epiphany-browser:18786): CRITICAL **: void gtk_moz_embed_get_nsIWebBrowser(GtkMozEmbed*, nsIWebBrowser**): assertion `GTK_IS_MOZ_EMBED(embed)' failed ** (epiphany-browser:18786): CRITICAL **: void gtk_moz_embed_get_nsIWebBrowser(GtkMozEmbed*, nsIWebBrowser**): assertion `GTK_IS_MOZ_EMBED(embed)' failed sys:1: Warning: invalid uninstantiatable type `(null)' in cast to `EphyNetMonitor' Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x4600003 (Evince Doc) Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed. (gnome-terminal:18839): Vte-WARNING **: No handler for control sequence `device-control-string' defined. --------------------------------------------------
The messages in .xsession-errors look a bit suspect...
*** Bug 517852 has been marked as a duplicate of this bug. ***
The dupe also has a good trace. Marking NEW.
624 EphyNode *node = action->priv->node; That could only crash if |action| was invalid at this point (since action->priv is initialised in the action's _init func). In node_added_cb we call ephy_bookmark_action_new which already calls ephy_bookmark_action_updated via ephy_bookmark_action_set_bookmark, so the 2nd ephy_bookmark_action_updated call that it's crashing under in node_added_cb could go away.
*** Bug 517804 has been marked as a duplicate of this bug. ***
I removed that call; closing as fixed for now. Please reopen if this still happens with >= 2.21.92.
*** Bug 518909 has been marked as a duplicate of this bug. ***
Got a crash in 2.21.92 :(
Created attachment 106083 [details] [review] patch Be smarter with freeing the resolver, this should help here. The "found" or "failure" signals for the resolver can be emitted multiple times, but only after ga_service_resolver_attach (), so I modified the hash table to unref the resolver on _remove (), and the freeing of ResolveData should be done by setting it on the resolver with g_object_set_data_full ().
This is the crash I received without the patch... Program received signal SIGSEGV, Segmentation fault.
+ Trace 190635
Thread 139695262103296 (LWP 14406)
170 * Return value: %TRUE if @db is immutable 171 **/ 172 gboolean 173 ephy_node_db_is_immutable (EphyNodeDb *db) 174 { 175 return db->priv->immutable; 176 } 177 178 /** 179 * ephy_node_db_set_immutable: (gdb)
And crash with the patch... (epiphany:21988): GLib-CRITICAL **: g_hash_table_foreach: assertion `hash_table != NULL' failed (epiphany:21988): GLib-CRITICAL **: g_hash_table_foreach: assertion `hash_table != NULL' failed (epiphany:21988): GLib-CRITICAL **: g_hash_table_destroy: assertion `hash_table != NULL' failed Program received signal SIGSEGV, Segmentation fault.
+ Trace 190637
Thread 140082571785984 (LWP 21988)
298 299 /* Remove children. */ 300 for (i = 0; i < node->children->len; i++) { 301 EphyNode *child; 302 303 child = g_ptr_array_index (node->children, i); 304 305 real_remove_child (node, child, FALSE, TRUE); 306 } 307 g_ptr_array_free (node->children, TRUE); (gdb)
*** Bug 519226 has been marked as a duplicate of this bug. ***
*** Bug 520651 has been marked as a duplicate of this bug. ***
Created attachment 107169 [details] [review] better (?) patch There were still issues that the patch above didn't fix. found and failed aren't one-shot signals, we can get a found after we got a failed already. So we can't just unref the node in the failure handler. I made instead the found handler create the node and the failed handler remove it, if present. Testing appreciated.
*** Bug 520514 has been marked as a duplicate of this bug. ***
Committed to svn trunk; closing this bug. It will be merged to gnome-2-22 before the 2.22.1 release.
*** Bug 522339 has been marked as a duplicate of this bug. ***
*** Bug 524330 has been marked as a duplicate of this bug. ***
*** Bug 521489 has been marked as a duplicate of this bug. ***
*** Bug 526009 has been marked as a duplicate of this bug. ***
*** Bug 526460 has been marked as a duplicate of this bug. ***