[uae] e-uae-0.8.28 crashes in gtk_table_attach while gui initialisation.

  • From: "Peter Volkov (pva)" <pva@xxxxxxxxxx>
  • To: uae@xxxxxxxxxxxxx
  • Date: Sun, 16 Jul 2006 13:21:03 +0400

Dear Richard and all on the list.

I've received crash report in 0.8.28 version of e-uae.

This is summarization the bug that was reported in
https://bugs.gentoo.org/show_bug.cgi?id=140460.

Report was that e-uae-0.8.28-r1 segfaults just before the GUI even
appears.

Facts we have now:

1. The console output just before crash is:
E-UAE 0.8.28
Build date: Jul  6 2006 17:05:15
UAE is not running as root, DGA extension disabled.
X11GFX: Initialized.
Found 1 joystick(s)
X11GFX: Raw key-mapping disabled.
Opening cfgfile '/home/enverex/.uaerc'...okay.
Testing the RDTSC instruction ... done.
TSC frequency: 2011.000000 MHz
Testing system sleep function...........
Average duration of a 1ms sleep: 2 ms
Found 1 joystick(s)
X11GFX: Raw key-mapping disabled.
Segmentation fault

And backtrace:

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

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 ?? ()

With USE="-gtk" (that means build without gui) 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. The
versions of gtk+/glib are:x11-libs/gtk+-2.8.19 dev-libs/glib-2.10.3

2. ~/.uaerc options:
bsdsocket_emu=false
scsi=false
didn't help. 

3. 0.8.27 version doesn't build.

In file included from ../../src/keymap/keymap_all.h:10,
                 from rawkeys.c:18:
../../src/keymap/x11pc_rawkeys.h:11: error: array type has incomplete element
type
In file included from ../../src/keymap/keymap_all.h:11,
                 from rawkeys.c:18:
../../src/keymap/quartz_rawkeys.h:10: error: array type has incomplete element
type
In file included from ../../src/keymap/keymap_all.h:12,
                 from rawkeys.c:18:
../../src/keymap/beos_rawkeys.h:10: error: array type has incomplete element
type
make[3]: *** [rawkeys.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/e-uae-0.8.27/work/e-uae-0.8.27/src/gfx-sdl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/e-uae-0.8.27/work/e-uae-0.8.27/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/portage/e-uae-0.8.27/work/e-uae-0.8.27/src'
make: *** [all-recursive] Error 1

4. if users starts e-uae as a root, it receives X Window error before
segfault, and the output it this:

E-UAE 0.8.28
Build date: Jul 14 2006 22:53:20
The program 'UAE' received an X Window System error.
This probably reflects a bug in the program.
The error was 'XF86DGANoDirectVideoMode'.
  (Details: serial 11 error_code 158 request_code 137 minor_code 1)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)


And this is "emerge --info":

Removing LDFLAGS had no effect incase you thought it was those.

Portage 2.1.1_pre2-r8 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla,
glibc-2.4-r3, 2.6.17-gentoo-r1 x86_64)
=================================================================
                       System Settings
=================================================================
System uname: 2.6.17-gentoo-r1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor
3800+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3 -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler
/etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3 -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox
sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo";
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="en_GB"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 16bit 3ds 64bit 7zip X a52 aac acpi aim alsa amr apm asf audacious
audiofile automount avahi avi bash-completion berkdb bitmap-fonts bluetooth
bonjour bzip2 cairo cdda cddb cdinstall cdio cdparanoia cdr cdrom chipcard
chipcard2 cjk cli crypt cups dbus dga dlloader dri dts dvd dvdr dvdread eds
emboss emul-linux-x86 encode evo exif fat ffmpeg fftw firefox flac foomatic
foomaticdb fortran gadu gif gimp gimpprint glitz gnome gphoto2 gpm gstreamer
gtk gtk2 hal hfs howl-compat icq ieee1394 imlib ipv6 isdnlog jabber java
javascript jfs jikes joystick jpeg jpeg2k kdeenablefinal kqemu lcms
libsamplerate lzo lzw lzw-tiff mad matroska meanwhile mikmod mjpeg mmap mng
modplug mono mp3 mp4 mpeg mplayer msn musepack musicbrainz ncurses nfs nls nptl
nptlonly nsplugin ntfs nvidia nvtv ogg openexr opengl pam pcre pdf pdflib perl
png ppds pppd python quicktime rar readline reflection reiser4 reiserfs rle rtc
samba scanner sdl session sid silc smartcard smp sndfile speex spell spl ssl
svg swat szip tcpd tga theora threads tiff truetype truetype-fonts type1-fonts
udev unicode upnp ups usb userlocales v4l v4l2 vcd vfat vorbis wma wmf x264
xanim xfs xft xine xorg xpm xv xvid xvmc yahoo yv12 zeroconf zip zlib
elibc_glibc input_devices_keyboard input_devices_mouse input_devices_joystick
input_devices_aiptek kernel_linux linguas_en_GB userland_GNU
video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS


Does anybody have ideas what may cause this crash? This is Dual Core
processor, so may be that is the reason, but I'm not sure. We already
have some patches applied (thank you Richard for suggestion to include
them). You find them here:
http://www.gentoo.org/cgi-bin/viewcvs.cgi/app-emulation/e-uae/files/


With best regards,
Peter.

Other related posts: