After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 327668 - yelp-2.13.6 compiled against firefox-1.5 crashes on startup
yelp-2.13.6 compiled against firefox-1.5 crashes on startup
Status: RESOLVED FIXED
Product: yelp
Classification: Applications
Component: General
2.13.x
Other All
: Normal critical
: ---
Assigned To: Yelp maintainers
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-19 06:25 UTC by Jose M. daLuz
Modified: 2006-07-24 03:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Backtrace after redownload/rebuild (9.07 KB, text/plain)
2006-01-19 22:24 UTC, Jose M. daLuz
  Details
possible fix (11.17 KB, patch)
2006-01-28 16:04 UTC, Christian Persch
none Details | Review
updated patch to latest cvs (11.44 KB, patch)
2006-01-28 19:59 UTC, Christian Persch
none Details | Review
another update (11.62 KB, patch)
2006-01-28 20:13 UTC, Christian Persch
none Details | Review
Patched CVS Yelp Crash (8.60 KB, text/plain)
2006-01-29 00:07 UTC, Jose M. daLuz
  Details

Description Jose M. daLuz 2006-01-19 06:25:48 UTC
Steps to reproduce:
1. Choose Desktop->Help or Help from various Gnome applets, Evolution, etc.
2. Browser window appears with content links, then crashes.
3. 


Stack trace:
Backtrace was generated from '/usr/bin/yelp'

Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 46912600466304 (LWP 20166)]
[New Thread 1124096352 (LWP 20178)]
[New Thread 1115703648 (LWP 20177)]
[New Thread 1107310944 (LWP 20176)]
[New Thread 1098918240 (LWP 20175)]
[New Thread 1090525536 (LWP 20171)]
[New Thread 1082132832 (LWP 20170)]
0x00002aaaae31ceba in waitpid () from /lib/tls/libpthread.so.0

Thread 1 (Thread 46912600466304 (LWP 20166))

  • #0 waitpid
    from /lib/tls/libpthread.so.0
  • #1 libgnomeui_segv_handle
    at gnome-ui-init.c line 784
  • #2 <signal handler called>
  • #3 toc_process_pending
    at yelp-toc-pager.c line 379
  • #4 IA__g_main_context_dispatch
    at gmain.c line 1916
  • #5 g_main_context_iterate
    at gmain.c line 2547
  • #6 IA__g_main_loop_run
    at gmain.c line 2751
  • #7 bonobo_main
    at bonobo-main.c line 312
  • #8 main
    at yelp-main.c line 458
  • #0 waitpid
    from /lib/tls/libpthread.so.0

Other information:
Gentoo 2005.1/AMD64/xorg-x11-7.0/Gnome 2.13.5
Yelp was compiled with beagle and firefox flags.
Comment 1 Christian Kirbach 2006-01-19 20:07:25 UTC
can you try to reproduce with the latest tarball, please?
Comment 2 Jose M. daLuz 2006-01-19 22:21:53 UTC
Is there a more recent version than 2.13.3 that hasn't hit ftp.gnome.org yet? I had the same file as on the ftp site, but just to be sure I deleted the tarball I had and redownloaded/rebuilt 2.13.3 with the same result as noted above.
Comment 3 Jose M. daLuz 2006-01-19 22:24:01 UTC
Created attachment 57675 [details]
Backtrace after redownload/rebuild
Comment 4 Brent Smith (smitten) 2006-01-21 18:16:12 UTC
This is very weird.  What CFLAGS are you compiling with?  I don't see how the priv structure would be NULL here.  The priv structure is allocated at the same time as the pager

  • #3 toc_process_pending
    at yelp-toc-pager.c line 379

Could be a 64bit issue too....
Comment 5 Jose M. daLuz 2006-01-21 18:59:25 UTC
CFLAGS="-march=athlon64 -O2 -pipe"

Nothing strange in the CFLAGS and everything in my system is built with this. 
Still, here are the results with various CFLAGS:

-march=athlon64 OK
-march=athlon64 -pipe OK
-march=athlon64 -O2 Crash
-march=athlon64 -O1 Crash

So any -O flags kills yelp. Should yelp strip out -Ox flags in the configure stage?
Comment 6 Christian Persch 2006-01-23 21:19:53 UTC
I noticed that when top_process_pending is added to idle (using deprecated funcs, btw :P), the timeout ID is NOT saved, and NOT removed when the object is disposed/finalised...

Oh and EEK!

static void
toc_pager_dispose (GObject *object)
{
    YelpTocPager *pager = YELP_TOC_PAGER (object);

    g_free (pager->priv);

That's likely the cause, priv is gobject private data and must not be freed (it'll be freed automatically on finalize)
Comment 7 Christian Persch 2006-01-23 21:24:11 UTC
The same problem exists in gtkentryaction.c.
Comment 8 Don Scorgie 2006-01-28 11:17:55 UTC
Hi,

I know this is probably irrelevant, but can you try rebuilding scrollkeeper with the patch from:
https://launchpad.net/products/scrollkeeper/+bug/29886

(It seems to other, unrelated badness, but since scrollkeeper is used in both bits of the code...)
Comment 9 Jose M. daLuz 2006-01-28 15:13:07 UTC
I built scrollkeeper with the patch and rebuilt yelp -- no difference, it still crashes.
Comment 10 Christian Persch 2006-01-28 16:04:34 UTC
Created attachment 58264 [details] [review]
possible fix
Comment 11 Christian Persch 2006-01-28 19:59:40 UTC
Created attachment 58283 [details] [review]
updated patch to latest cvs
Comment 12 Christian Persch 2006-01-28 20:13:42 UTC
Created attachment 58286 [details] [review]
another update
Comment 13 Jose M. daLuz 2006-01-29 00:07:28 UTC
Created attachment 58302 [details]
Patched CVS Yelp Crash

I just got in, so I only tried the most recent patch on CVS. It looks like the same crash, but I've attached the backtrace so you can check it out.
Comment 14 Jose M. daLuz 2006-01-31 15:41:48 UTC
2.13.4 still has this problem.
Comment 15 Jose M. daLuz 2006-02-15 00:20:23 UTC
I can confirm that this is fixed in 2.13.5.
Comment 16 Jose M. daLuz 2006-03-07 16:39:41 UTC
With 2.13.6, it crashes again. I don't know if this is the same crash:

Backtrace was generated from '/usr/bin/yelp'

Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 46912603268992 (LWP 14877)]
[New Thread 1124096352 (LWP 14889)]
[New Thread 1115703648 (LWP 14888)]
[New Thread 1107310944 (LWP 14887)]
[New Thread 1098918240 (LWP 14886)]
[New Thread 1090525536 (LWP 14882)]
[New Thread 1082132832 (LWP 14881)]
0x00002aaab00d0eba in waitpid () from /lib/tls/libpthread.so.0

Thread 1 (Thread 46912603268992 (LWP 14877))

  • #0 waitpid
    from /lib/tls/libpthread.so.0
  • #1 libgnomeui_segv_handle
    at gnome-ui-init.c line 784
  • #2 <signal handler called>
  • #3 ORBit_freekids_via_TypeCode_T
    at allocators.c line 32
  • #4 ORBit_free_T
    at allocators.c line 202
  • #5 ORBit_free
    at allocators.c line 218
  • #6 spi_atk_emit_eventv
    at bridge.c line 697
  • #7 spi_atk_bridge_property_event_listener
    at bridge.c line 846
  • #8 signal_emit_unlocked_R
    at gsignal.c line 2404
  • #9 IA__g_signal_emit_valist
    at gsignal.c line 2197
  • #10 IA__g_signal_emit
    at gsignal.c line 2241
  • #11 atk_object_notify
    at atkobject.c line 1323
  • #12 IA__g_closure_invoke
    at gclosure.c line 490
  • #13 signal_emit_unlocked_R
    at gsignal.c line 2368
  • #14 IA__g_signal_emit_valist
    at gsignal.c line 2197
  • #15 IA__g_signal_emit
    at gsignal.c line 2241
  • #16 g_object_dispatch_properties_changed
    at gobject.c line 561
  • #17 IA__g_object_notify
    at gobjectnotifyqueue.c line 123
  • #18 refChildCB
    at nsAccessibleWrap.cpp line 863
  • #19 spi_atk_bridge_signal_listener
    at bridge.c line 1034
  • #20 signal_emit_unlocked_R
    at gsignal.c line 2404
  • #21 IA__g_signal_emit_valist
    at gsignal.c line 2197
  • #22 IA__g_signal_emit_by_name
    at gsignal.c line 2265
  • #23 timeout_update_gok
    at yelp-html.cpp line 370
  • #24 g_timeout_dispatch
    at gmain.c line 3292
  • #25 IA__g_main_context_dispatch
    at gmain.c line 1916
  • #26 g_main_context_iterate
    at gmain.c line 2547
  • #27 IA__g_main_loop_run
    at gmain.c line 2751
  • #28 bonobo_main
    at bonobo-main.c line 312
  • #29 main
    at yelp-main.c line 472
  • #0 waitpid
    from /lib/tls/libpthread.so.0

Comment 17 Jose M. daLuz 2006-03-15 14:26:03 UTC
2.14.0 still has this problem.
Comment 18 Brent Smith (smitten) 2006-03-19 02:12:42 UTC
The latest stack trace seems to be a duplicate of bug 334408
Comment 19 bill.haneman 2006-03-22 11:52:20 UTC
I don't think this is the same stack trace as bug 334408.

However, it's great to finally get a complete stack trace for a yelp/mozilla bug.  Looking at stack frame #7 of thread 1, a serious problem is evident - ao is 0x2, which means a bad value was returned from atk_object_get_parent (and thus, the ATK implementation inside gecko/mozilla).  This isn't atk's fault, and unless this is a knock-on effect of another bug, this fault probably lies with mozilla.

Comment 20 Jose M. daLuz 2006-05-16 21:36:21 UTC
With 2.15.2, this problem is gone. Whether this is a workaround from Gnome devs or a gecko fix, I don't know.
Comment 21 Brent Smith (smitten) 2006-05-27 15:10:23 UTC
Closing.  Please Re-Open if you find that this problem still exists.
Comment 22 Brent Smith (smitten) 2006-07-24 03:53:09 UTC
never noticed this before, but this seems to be the timeout_update_gok() issue