Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415787 - app-emulation/e-uae-0.8.29_rc4-r1 USE=gtk - segmentation fault in g_type_is_a () from /usr/lib64/libgobject-2.0.so.0
Summary: app-emulation/e-uae-0.8.29_rc4-r1 USE=gtk - segmentation fault in g_type_is_a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard: Pending Removal: 2012-12-24
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2012-05-13 20:10 UTC by Dominique Michel
Modified: 2012-12-11 18:07 UTC (History)
2 users (show)

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


Attachments
output of emerge --info (emerge.info,14.05 KB, text/plain)
2012-05-13 20:10 UTC, Dominique Michel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Michel 2012-05-13 20:10:57 UTC
Created attachment 311661 [details]
output of emerge --info

On my ~amd64 system, app-emulation/e-uae-0.8.29_rc4-r1 fail with a segmentation fault. It do that independently of the command arguments (running just e-uae or e-uae -f ... produce the same error,

app-emulation/e-uae-0.8.29_rc4-r1  USE="alsa gtk ncurses sdl -X (-capslib) -dga -oss -sdl-sound"

If I merge it with USE="-gtk", e-uae run fine. Of course, I have to run it with arguments as it is no gui.

In gdb, I get:

gdb /usr/bin/e-uae
GNU gdb (Gentoo 7.4.1 p1) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/e-uae...Reading symbols from /usr/lib64/debug/usr/bin/e-uae.debug...done.
done.
(gdb) set args  -f /home/dom/.config/e-uae/AmigaForEver
(gdb) run
Starting program: /usr/bin/e-uae -f /home/dom/.config/e-uae/AmigaForEver
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffee182700 (LWP 23230)]
[New Thread 0x7fffed981700 (LWP 23231)]
E-UAE 0.8.29-WIP4
Build date: May 13 2012 21:10:11
SDLGFX: Initialized.
SDLGFX: Using SDL version 1.2.15.
SDLGFX: Display is 32 bits deep.
SDLGFX: Found screenmode: 1600x1200.
SDLGFX: Found screenmode: 1400x1050.
SDLGFX: Found screenmode: 1280x1024.
SDLGFX: Found screenmode: 1280x960.
SDLGFX: Found screenmode: 1152x864.
SDLGFX: Found screenmode: 1024x768.
SDLGFX: Found screenmode: 832x624.
SDLGFX: Found screenmode: 800x600.
SDLGFX: Found screenmode: 720x400.
SDLGFX: Found screenmode: 700x525.
SDLGFX: Found screenmode: 640x480.
SDLGFX: Found screenmode: 640x400.
SDLGFX: Found screenmode: 640x350.
SDLGFX: Found screenmode: 512x384.
SDLGFX: Found screenmode: 400x300.
SDLGFX: Found screenmode: 320x240.
SDLGFX: Found screenmode: 320x175.
Found 0 joystick(s)
Found x11pc raw keyboard mapping
Using cooked keymap
Opening cfgfile '/home/dom/.uaerc'...failed
Opening cfgfile '.uaerc'...failed
Opening cfgfile '/home/dom/.config/e-uae/AmigaForEver'...okay.
unknown config entry: 'sdl.use_gl=true'
Testing the RDTSC instruction ... done.
TSC frequency: 2307.500000 MHz
Found x11pc raw keyboard mapping
Using raw keymap

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffed981700 (LWP 23231)]
0x00007ffff6c21511 in g_type_is_a () from /usr/lib64/libgobject-2.0.so.0
(gdb) bt
#0  0x00007ffff6c21511 in g_type_is_a () from /usr/lib64/libgobject-2.0.so.0
#1  0x00007ffff733d974 in gtk_type_new () from /usr/lib64/libgtk-x11-2.0.so.0
#2  0x0000000000471f39 in create_guidlg () at gtkui.c:1901
#3  my_idle () at gtkui.c:523
#4  0x00007ffff6914373 in ?? () from /usr/lib64/libglib-2.0.so.0
#5  0x00007ffff691375a in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#6  0x00007ffff6913ab8 in ?? () from /usr/lib64/libglib-2.0.so.0
#7  0x00007ffff6913eb2 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#8  0x00007ffff7231e6f in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#9  0x000000000046cf66 in gtk_gui_thread (dummy=<optimized out>) at gtkui.c:1975
#10 0x00007ffff79736b7 in ?? () from /usr/lib64/libSDL-1.2.so.0
#11 0x00007ffff79a7769 in ?? () from /usr/lib64/libSDL-1.2.so.0
#12 0x00007ffff774cf26 in start_thread () from /lib64/libpthread.so.0
#13 0x00007ffff6029a4d in clone () from /lib64/libc.so.6
(gdb) thread apply all bt full

Thread 3 (Thread 0x7fffed981700 (LWP 23231)):
#0  0x00007ffff6c21511 in g_type_is_a () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#1  0x00007ffff733d974 in gtk_type_new () from /usr/lib64/libgtk-x11-2.0.so.0
No symbol table info available.
#2  0x0000000000471f39 in create_guidlg () at gtkui.c:1901
        notebook = <optimized out>
        hbox = 0x7fffe8069090
        thing = 0x7fffe8069090
        menuitem_menu = <optimized out>
        pages = {{title = 0x659c81 "Floppy disks", createfunc = 0x46ff60 <make_floppy_disks>}, {
            title = 0x659c8e "Memory", createfunc = 0x4722e0 <make_mem_widgets>}, {
            title = 0x659c95 "CPU", createfunc = 0x46f5c0 <make_cpu_widgets>}, {
            title = 0x659c99 "Chipset", createfunc = 0x46f260 <make_chipset_widgets>}, {
---Type <return> to continue, or q <return> to quit---
            title = 0x659ca1 "Sound", createfunc = 0x46f040 <make_sound_widgets>}, {
            title = 0x659ca7 "Game ports", createfunc = 0x46ef20 <make_joy_widgets>}, {
            title = 0x659cb2 "Hard disks", createfunc = 0x46d300 <make_hd_widgets>}, {
            title = 0x659cbd "About", createfunc = 0x46d180 <make_about_widgets>}}
        vbox = 0x7fffe8069000
        menuitem = 0x7fffe8069090
        buttonbox = 0x7fffe8069120
        menubar = <optimized out>
        i = <optimized out>
#3  my_idle () at gtkui.c:523
No locals.
#4  0x00007ffff6914373 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#5  0x00007ffff691375a in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#6  0x00007ffff6913ab8 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#7  0x00007ffff6913eb2 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#8  0x00007ffff7231e6f in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
No symbol table info available.
#9  0x000000000046cf66 in gtk_gui_thread (dummy=<optimized out>) at gtkui.c:1975
        argc = 1
        a = {0x658e25 "UAE"}
        argv = 0x7fffed980cd0
#10 0x00007ffff79736b7 in ?? () from /usr/lib64/libSDL-1.2.so.0
No symbol table info available.
#11 0x00007ffff79a7769 in ?? () from /usr/lib64/libSDL-1.2.so.0
No symbol table info available.
#12 0x00007ffff774cf26 in start_thread () from /lib64/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#13 0x00007ffff6029a4d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 2 (Thread 0x7fffee182700 (LWP 23230)):
#0  0x00007ffff7754fed in nanosleep () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x00007ffff79a9d49 in SDL_Delay () from /usr/lib64/libSDL-1.2.so.0
No symbol table info available.
#2  0x00007ffff79a9d82 in ?? () from /usr/lib64/libSDL-1.2.so.0
No symbol table info available.
#3  0x00007ffff79736b7 in ?? () from /usr/lib64/libSDL-1.2.so.0
No symbol table info available.
#4  0x00007ffff79a7769 in ?? () from /usr/lib64/libSDL-1.2.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#5  0x00007ffff774cf26 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00007ffff6029a4d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 1 (Thread 0x7ffff7faa8c0 (LWP 23227)):
#0  0x00007ffff7754fed in nanosleep () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x0000000000409bc0 in real_main (argc=3, argv=0x7fffffffc2f8) at main.c:833
        t = {tv_sec = 0, tv_nsec = 10000000}
        err = <optimized out>
        want_gui = <optimized out>
#2  0x000000000040a404 in main (argc=3, argv=0x7fffffffc2f8) at main.c:951
No locals.
Comment 1 Pacho Ramos gentoo-dev 2012-10-07 14:27:39 UTC
We should either disable gtk completely or treeclean this
Comment 2 Dominique Michel 2012-10-07 17:39:12 UTC
What do you mean by treeclean, to run revdep-rebuild ?

I emerged it with use=-gtk and it work fine using sdl.
Comment 3 Pacho Ramos gentoo-dev 2012-10-08 19:03:45 UTC
(In reply to comment #2)
> What do you mean by treeclean, to run revdep-rebuild ?
> 
> I emerged it with use=-gtk and it work fine using sdl.

To remove the package from the tree entirely... but if it still works with sdl and it's still better than other alternatives... the idea would be to disable gtk support always
Comment 4 Fabian Groffen gentoo-dev 2012-11-25 11:29:21 UTC
perhaps sdl only is sensical
Comment 5 Dominique Michel 2012-11-25 15:27:32 UTC
You want to remove it when it work well with sdl. So, what are the alternatives?
Comment 6 Fabian Groffen gentoo-dev 2012-11-25 16:12:53 UTC
(In reply to comment #5)
> You want to remove it when it work well with sdl. So, what are the
> alternatives?

I want to rescue it, and currently investigating what it would take.
Comment 7 Dominique Michel 2012-11-25 21:41:19 UTC
Nice. If I take a look at the debian package, they just compile e-uae with --enable-threads --with-sdl-gfx --with-sdl-sound (and --enable-scsi-device on linux for CDROM support). http://packages.debian.org/sid/e-uae
Comment 8 Pacho Ramos gentoo-dev 2012-11-25 23:14:21 UTC
(In reply to comment #5)
> You want to remove it when it work well with sdl. So, what are the
> alternatives?

It's also because of bug 205047 and 425680
Comment 9 Fabian Groffen gentoo-dev 2012-12-11 18:07:27 UTC
gtk+ removed in 0.8.29_rc4-r2