Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101017 - bonobo-browser gives segfault
Summary: bonobo-browser gives segfault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Lowest normal
Assignee: AMD64 Project
URL: http://bugs.gnome.org/show_bug.cgi?id...
Whiteboard:
Keywords:
: 106666 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-01 12:19 UTC by rob shelton
Modified: 2005-09-20 11:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge.info (used for the whole system) (emerge.info,2.95 KB, text/plain)
2005-08-01 12:20 UTC, rob shelton
Details
strace bonobo-browser (bonobo.strace,277.84 KB, text/plain)
2005-08-01 12:22 UTC, rob shelton
Details
gdb output from bonobo-browser (bonobo.gdb,1.21 KB, text/plain)
2005-08-01 14:10 UTC, rob shelton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rob shelton 2005-08-01 12:19:46 UTC
bonobo-browser, part of gnome-base/libbonoboui-2.8.1 gives a segmentation fault,
with a GLib-Critical warning on AMD64.

On a setup with identical use flags etc, on X86, a dialog box appears with a
list of components.

(I only tried the command out of interest to see what it did!)

Reproducible: Always
Steps to Reproduce:
1.bonobo-browser
2.
3.

Actual Results:  
rob@linux64 ~ $ bonobo-browser

(bonobo-browser:24630): Bonobo-WARNING **: Unknown stock id 'gnome-stock-about'
on /menu/Help/HelpAbout

(bonobo-browser:24630): GLib-CRITICAL **: g_strsplit: assertion `string != NULL'
failed
Segmentation fault

Expected Results:  
Brought up the bonobo component browser in a window.
Comment 1 rob shelton 2005-08-01 12:20:25 UTC
Created attachment 64889 [details]
emerge.info (used for the whole system)
Comment 2 rob shelton 2005-08-01 12:22:12 UTC
Created attachment 64890 [details]
strace bonobo-browser

Output from strace
Comment 3 rob shelton 2005-08-01 12:23:58 UTC
http://forums.gentoo.org/viewtopic-p-2617594.html

Shows that the problem is not unique.
Rob.
Comment 4 foser (RETIRED) gentoo-dev 2005-08-01 13:47:38 UTC
get a backtrace with full debugging info please
(http://www.gentoo.org/doc/en/bugzilla-howto.xml).
Comment 5 rob shelton 2005-08-01 14:10:43 UTC
Created attachment 64896 [details]
gdb output from bonobo-browser

Followed the instructions as given, there is no difference between the output
with USE="debug" and USE="debug" with -ggdb3 in the CFLAGS.

Rob.
Comment 6 foser (RETIRED) gentoo-dev 2005-08-01 14:14:32 UTC
you should read it all, because the binaries are still stripped afaics. And you
possible have to recompile some lower-level libs with debug output as well to
get a more complete picture (glib/gtk+/etc.).
Comment 7 rob shelton 2005-08-01 23:24:32 UTC
I did read it all, very carefully indeed... which is why I was surprised there
was no difference between the two binaries...

Now it is morning I will try again... and will include glib, both versions of
gtk, and libbonoboui in my debug recompilation...

Rob.
Comment 8 rob shelton 2005-08-01 23:29:55 UTC
I will do the following. Is it sufficient to put all of the environment features
ont he command line, or is it necessary to mess around with make.conf?

Not a beginner and wanting to help, so if I have misunderstood something please
let me know, but I did read it all!

Rob.





linux64 ~ # CFLAGS="-O2 -pipe -ggdb3" CXXFLAGS="-O2 -pipe -ggdb3" USE="debug"
FEATURES="nostrip" emerge -vp glib gtk+ libbonobo libbonobo libglade libgnome
libgnomecanvas gconf libxml2

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-libs/glib-2.6.3  +doc -hardened 0 kB
[ebuild   R   ] x11-libs/gtk+-2.6.7  +doc +jpeg -static +tiff 0 kB
[ebuild   R   ] gnome-base/libbonobo-2.8.1  +debug* +doc 0 kB
[ebuild   R   ] gnome-base/libglade-2.5.0  +debug* +doc 0 kB
[ebuild   R   ] gnome-base/libgnome-2.10.0  +debug* +doc 0 kB
[ebuild   R   ] gnome-base/libgnomecanvas-2.10.0  +X +debug* +doc 0 kB
[ebuild   R   ] gnome-base/gconf-2.10.0  +debug* +doc 0 kB
[ebuild   R   ] dev-libs/libxml2-2.6.19  +ipv6 +python +readline 0 kB

Total size of downloads: 0 kB
linux64 ~ #
Comment 9 rob shelton 2005-08-01 23:31:00 UTC
Correction to emerge line, to include libbonoboui

linux64 ~ # CFLAGS="-O2 -pipe -ggdb3" CXXFLAGS="-O2 -pipe -ggdb3" USE="debug"
FEATURES="nostrip" emerge -vp glib gtk+ libbonobo libbonoboui libglade libgnome
libgnomecanvas gconf libxml2

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-libs/glib-2.6.3  +doc -hardened 0 kB
[ebuild   R   ] x11-libs/gtk+-2.6.7  +doc +jpeg -static +tiff 0 kB
[ebuild   R   ] gnome-base/libbonobo-2.8.1  +debug* +doc 0 kB
[ebuild   R   ] gnome-base/libbonoboui-2.8.1  +debug* +doc 0 kB
[ebuild   R   ] gnome-base/libglade-2.5.0  +debug* +doc 0 kB
[ebuild   R   ] gnome-base/libgnome-2.10.0  +debug* +doc 0 kB
[ebuild   R   ] gnome-base/libgnomecanvas-2.10.0  +X +debug* +doc 0 kB
[ebuild   R   ] gnome-base/gconf-2.10.0  +debug* +doc 0 kB
[ebuild   R   ] dev-libs/libxml2-2.6.19  +ipv6 +python +readline 0 kB

Total size of downloads: 0 kB
linux64 ~ #       
Comment 10 rob shelton 2005-08-02 00:13:35 UTC
Updated backtrace as requested following on from the above emerge command line.
Hope this si more useful. Let me know if you require anything else.

Rob.


rob@linux64 ~ $ gdb --args /usr/bin/bonobo-browser
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...Using host libthread_db
library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/bonobo-browser

(bonobo-browser:14287): Bonobo-WARNING **: Unknown stock id 'gnome-stock-about'
on /menu/Help/HelpAbout

(bonobo-browser:14287): GLib-CRITICAL **: g_strsplit: assertion `string != NULL'
failed

Program received signal SIGSEGV, Segmentation fault.
0x000000349b068832 in free () from /lib/libc.so.6
(gdb) bt
#0  0x000000349b068832 in free () from /lib/libc.so.6
#1  0x00000000004057ff in bonobo_browser_get_components_list (query=0x6d0de0
"
Comment 11 rob shelton 2005-08-02 00:13:35 UTC
Updated backtrace as requested following on from the above emerge command line.
Hope this si more useful. Let me know if you require anything else.

Rob.


rob@linux64 ~ $ gdb --args /usr/bin/bonobo-browser
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...Using host libthread_db
library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/bonobo-browser

(bonobo-browser:14287): Bonobo-WARNING **: Unknown stock id 'gnome-stock-about'
on /menu/Help/HelpAbout

(bonobo-browser:14287): GLib-CRITICAL **: g_strsplit: assertion `string != NULL'
failed

Program received signal SIGSEGV, Segmentation fault.
0x000000349b068832 in free () from /lib/libc.so.6
(gdb) bt
#0  0x000000349b068832 in free () from /lib/libc.so.6
#1  0x00000000004057ff in bonobo_browser_get_components_list (query=0x6d0de0
"à\017m") at oaf-helper.c:287
#2  0x0000000000404a7d in component_list_show (comp_list=0x508cd0,
query=0x406847 "_active || _active == FALSE") at component-list.c:507
#3  0x000000000040626c in bonobo_browser_create_window () at window.c:314
#4  0x0000000000403a47 in main (argc=1, argv=0x7fffff94fa58) at bonobo-browser.c:47
(gdb) quit
The program is running.  Exit anyway? (y or n) y
rob@linux64 ~ $
Comment 12 Simon Stelling (RETIRED) gentoo-dev 2005-09-08 06:29:40 UTC
i found an upstream bug with a working patch.. fixed in 2.10.1-r1

btw, this is not arch-specific, an easy workaround is: export LANG="C"
Comment 13 Leonardo Boshell (RETIRED) gentoo-dev 2005-09-20 11:15:04 UTC
*** Bug 106666 has been marked as a duplicate of this bug. ***