Summary: | e-uae-0.8.28-r1 segfaults just before gui appears. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Peter Volkov (RETIRED) <pva> |
Component: | [OLD] Unspecified | Assignee: | Peter Volkov (RETIRED) <pva> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ben |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Peter Volkov (RETIRED)
2006-07-15 03:22:22 UTC
Now reply on you last comment (In reply to comment #12 bug 140022) > It is already build with SDL support Well. You have sdl in your use flags, but this does not mean that you have gfx-sdl built. To build it just do what I said :) (note USE="-X"). And, please, take a look at build output ;) (Note: just to make things a bit more clear. You can build e-uae with X11, sdl or ncurses as video output. You can build only one of them. So I just followed upstream decisions and thus if you have X, sdl and ncurses in USE you'll get only X11, if you do not have X but have sdl and ncurses you'll get sdl. To build with ncurses you should disable X and sdl. Just take a look at ebuild. I hope this logic should become clear from reading it. Also, as I told, please, look at the output of build process! At least on lines with stars!) > doing what you said doesn't work as I already pointed out WHY > I can't run it as root (but you ommited quoting that from your post). You did not understood my question: I do not understand still why (So Why? in comment #11 bug 140022) you can not run gdb as ordinary user... What is the problem? I understood your problem with running e-uae as the root. Next. I still hope that you managed to get backtrace. But if not, what can be done here: 1. Try to build e-uae with EXTRA_CONF="--enable-bsdsock-new" as I told you in comment #4 bug 140022. 2. Try to emerge without X11-gfx command env USE="-X sdl" emerge -a e-uae Does this works? 3. Try to build without gui. USE="-gtk" Well. I know it's your time, but I cann't do anything right now. Sorry. My bad, for some reason I think that users "PATH" was missing a few locations so gdb didn't show up. GDB says this now when e-uae segfaults. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1082132816 (LWP 5038)] 0x00000038e7b7bf17 in gtk_table_attach () from /usr/lib/libgtk-x11-2.0.so.0 I'll try it with the different flags and such that you mentioned now. With -X I got the same error. With -gtk it works but obviously then complains about not being able to open the GUI (but it doesn't segfault) so going by this and the backtrace it's GTK that's broken. I'll recompile that just-incase. (In reply to comment #2) > GDB says this now when e-uae segfaults. > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 1082132816 (LWP 5038)] > 0x00000038e7b7bf17 in gtk_table_attach () from /usr/lib/libgtk-x11-2.0.so.0 Great! And IIUC after above message you'll return to gdb session. Something like: (gdb) Try press input (gdb) bt <ENTER> and (gdb) thread apply all bt <ENTER> And post output here. BTW. What gtk+/glib versions do you have? And forgot to mention (but backtrace guide may be mention this as well). Keep sources while debugging (emerge with FEATURE="noclean". fex, env FEATURE="noclean" emerge -a e-uae). This should show the exact postion in sources where crash occured. Thread 2 (Thread 1082132816 (LWP 6686)): #0 0x00000038e7b7bf17 in gtk_table_attach () from /usr/lib/libgtk-x11-2.0.so.0 #1 0x000000000046f483 in ?? () #2 0x00000000004701a8 in ?? () #3 0x00000038e6d2a374 in g_type_create_instance () from /usr/lib/libgobject-2.0.so.0 #4 0x00000038e6d1189d in g_object_set () from /usr/lib/libgobject-2.0.so.0 #5 0x00000038e6d0ff30 in g_object_newv () from /usr/lib/libgobject-2.0.so.0 #6 0x00000038e6d108ac in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0 #7 0x00000038e6d10ae1 in g_object_new () from /usr/lib/libgobject-2.0.so.0 #8 0x000000000046ff64 in ?? () #9 0x000000000046ac6b in ?? () #10 0x000000000046e6cd in ?? () #11 0x00000038e6b2702b in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0 #12 0x00000038e6b26999 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #13 0x00000038e6b29b05 in g_main_context_check () from /usr/lib/libglib-2.0.so.0 #14 0x00000038e6b29e06 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #15 0x00000038e7b1e5f2 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #16 0x000000000046ef70 in ?? () #17 0x00000038e550641a in start_thread () from /lib/libpthread.so.0 #18 0x00000038e45bc0ce in clone () from /lib/libc.so.6 #19 0x0000000000000000 in ?? () Thread 1 (Thread 47267056474560 (LWP 6683)): #0 0x00000038e550b13d in sem_wait () from /lib/libpthread.so.0 #1 0x000000000046c965 in ?? () #2 0x000000000046d088 in ?? () #3 0x0000000000409855 in ?? () #4 0x000000000046d184 in ?? () [ebuild R ] x11-libs/gtk+-2.8.19 USE="X jpeg tiff -debug -doc -xinerama" 0 kB [ebuild R ] dev-libs/glib-2.10.3 USE="-debug -doc -hardened" 0 kB Ben: I've added e-uae-0.8.28-r2.ebuild in the tree. It contains some small fix that should solve your problem. Please, try it and report. Thank you. I'm afraid I can't test it as I finally snapped because of people on the forum and IRC and changed to Ubuntu. (In reply to comment #8) > I'm afraid I can't test it as I finally snapped because of people on the forum > and IRC and changed to Ubuntu. I'm sorry to hear that. I do not have time to read forum so I do not know what is going on there. Well. I hope one day you give another gentoo another try. Anyway again, Thank you for report. :) I'm closing bug, if one day you'll manage to reproduce, reopen ;) Hello! I tried e-uae-0.8.28-r3 and it segfaults at exactly the same position as described in commment #1. TRYING GDB AS REGULAR USER: me@localhost ~ $ gdb e-uae GNU gdb (Gentoo 7.5.1 p2) 7.5.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...(no debugging symbols found)...done. (gdb) start Function "main" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Temporary breakpoint 1 (main) pending. Starting program: /usr/bin/e-uae 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 0x7ffff286d700 (LWP 22702)] E-UAE 0.8.28 Build date: Dec 4 2013 22:47:01 UAE is not running as root, DGA extension disabled. X11GFX: Initialized. Found 1 joystick(s) X11GFX: Raw key-mapping disabled. Opening cfgfile '/home/andreas/.uaerc'...okay. Testing the RDTSC instruction ... done. TSC frequency: 3200,000000 MHz Testing system sleep function.................. Average duration of a 1ms sleep: 1 ms [New Thread 0x7ffff0eac700 (LWP 22703)] [Thread 0x7ffff0eac700 (LWP 22703) exited] Found 1 joystick(s) X11GFX: Raw key-mapping disabled. [New Thread 0x7ffff0eac700 (LWP 22706)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff286d700 (LWP 22702)] 0x00007ffff7072335 in g_type_is_a () from /usr/lib64/libgobject-2.0.so.0 (gdb) REQUEST: I also tried fs-uae from bug #403913 which works fine. Also I found that e-uae didn't get updated since 2009 whereas fs-uae seems to be actively developed still. Is there anything I could do to help? In the meantime I would request to add fs-uae to the tree as an alternative to uae and to e-uae. |