Author Topic: Crashes under Ubuntu 9.04  (Read 8118 times)

Cpt. Charisma

  • Guest
Crashes under Ubuntu 9.04
« on: April 28, 2009, 03:14:10 PM »
I just upgraded to the latest version of Ubuntu (9.04) a couple of days ago.  Today I decided to play Dyson, and it crashed :(

luke@luke-desktop:~/games/dyson120-linux$ mono -V
Mono JIT compiler version 2.0.1 (tarball)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
   TLS:           __thread
   GC:            Included Boehm (with typed GC)
   SIGSEGV:       altstack
   Notifications: epoll
   Architecture:  x86
   Disabled:      none


Quote
Stacktrace:

  at (wrapper managed-to-native) System.Windows.Forms.X11Keyboard.XOpenIM (intptr,intptr,intptr,intptr) <0x00004>
  at (wrapper managed-to-native) System.Windows.Forms.X11Keyboard.XOpenIM (intptr,intptr,intptr,intptr) <0xffffffff>
  at System.Windows.Forms.X11Keyboard.SetupXIM () <0x000c3>
  at System.Windows.Forms.X11Keyboard.EnsureLayoutInitialized () <0x0005a>
  at System.Windows.Forms.X11Keyboard..ctor (intptr,intptr) <0x00096>
  at System.Windows.Forms.XplatUIX11.SetDisplay (intptr) <0x004b2>
  at System.Windows.Forms.XplatUIX11..ctor () <0x000b1>
  at System.Windows.Forms.XplatUIX11.GetInstance () <0x0003b>
  at System.Windows.Forms.XplatUI..cctor () <0x000e6>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
  at System.Windows.Forms.SystemInformation.get_VirtualScreen () <0xffffffff>
  at System.Windows.Forms.SystemInformation.get_VirtualScreen () <0x0000f>
  at System.Windows.Forms.Screen..cctor () <0x00024>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
  at Dyson.Game..ctor () <0xffffffff>
  at Dyson.Game..ctor () <0x003f8>
  at Dyson.Game.Main () <0x00016>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

   mono [0x806d944]
   mono [0x808616b]
   [0xb800f410]
   /usr/lib/libX11.so.6 [0xb6e9b21f]
   /usr/lib/libX11.so.6(XrmQGetResource+0x3e) [0xb6eb1dce]
   /usr/lib/libX11.so.6(XStringToKeysym+0x149) [0xb6ea91b9]
   /usr/lib/libX11.so.6(_XimParseStringFile+0xd9a) [0xb6edbf9a]
   /usr/lib/libX11.so.6(_XimLocalOpenIM+0x434) [0xb6ed9a84]
   /usr/lib/libX11.so.6(_XimOpenIM+0x13d) [0xb6ed812d]
   /usr/lib/libX11.so.6(XOpenIM+0x4a) [0xb6ebc08a]
   [0xb6224cfc]
   [0xb6224b64]
   [0xb62387b3]
   [0xb62384e7]
   [0xb7341b1b]
   [0xb733a50a]
   [0xb733a0f4]
   [0xb73394b7]
   [0xb795c1ae]
   mono [0x80be75d]
   mono(mono_runtime_class_init+0x19) [0x80bee19]
   mono [0x81b1d6e]
   mono [0x807029f]
   [0xb7fed066]
   [0xb73391dd]
   [0xb795c1ae]
   mono [0x80be75d]
   mono [0x8198c48]
   mono [0x81afc95]
   mono [0x81b1ba1]
   mono [0x807029f]
   [0xb7fed066]
   [0xb79634b7]
   [0xb795c1ae]
   mono(mono_runtime_exec_main+0xe5) [0x80bad75]
   mono(mono_runtime_run_main+0x16b) [0x80bb4eb]
   mono(mono_main+0x1727) [0x805c917]
   mono [0x805ac62]
   /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7d93775]
   mono [0x805aba1]

Debug info from gdb:

(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d496e0 (LWP 20310)]
[New Thread 0xb7557b90 (LWP 20313)]
[New Thread 0xb795bb90 (LWP 20312)]
0xb800f430 in __kernel_vsyscall ()
  3 Thread 0xb795bb90 (LWP 20312)  0xb800f430 in __kernel_vsyscall ()
  2 Thread 0xb7557b90 (LWP 20313)  0xb800f430 in __kernel_vsyscall ()
  1 Thread 0xb7d496e0 (LWP 20310)  0xb800f430 in __kernel_vsyscall ()

Thread 3 (Thread 0xb795bb90 (LWP 20312)):
#0  0xb800f430 in __kernel_vsyscall ()
#1  0xb7f148f6 in nanosleep () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x081492e8 in ?? ()
#3  0xb7f0d4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4  0xb7e6149e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb7557b90 (LWP 20313)):
#0  0xb800f430 in __kernel_vsyscall ()
#1  0xb7f110e5 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0814c607 in ?? ()
#3  0x0814f1f4 in ?? ()
#4  0x0814f25c in ?? ()
#5  0x08169b02 in ?? ()
#6  0x080d565a in ?? ()
#7  0x080f7639 in ?? ()
#8  0x081653b6 in ?? ()
#9  0x081833b5 in ?? ()
#10 0xb7f0d4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0xb7e6149e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb7d496e0 (LWP 20310)):
#0  0xb800f430 in __kernel_vsyscall ()
#1  0xb7e5da87 in syscall () from /lib/tls/i686/cmov/libc.so.6
#2  0x0806d9e7 in ?? ()
#3  0x0808616b in ?? ()
#4  <signal handler called>
#5  0xb7f0e9e0 in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0
#6  0xb6e9b21f in ?? () from /usr/lib/libX11.so.6
#7  0xb6eb1dce in XrmQGetResource () from /usr/lib/libX11.so.6
#8  0xb6ea91b9 in XStringToKeysym () from /usr/lib/libX11.so.6
#9  0xb6edbf9a in _XimParseStringFile () from /usr/lib/libX11.so.6
#10 0xb6ed9a84 in _XimLocalOpenIM () from /usr/lib/libX11.so.6
#11 0xb6ed812d in _XimOpenIM () from /usr/lib/libX11.so.6
#12 0xb6ebc08a in XOpenIM () from /usr/lib/libX11.so.6
#13 0xb6224cfc in ?? ()
#14 0xb6224b64 in ?? ()
#15 0xb62387b3 in ?? ()
#16 0xb62384e7 in ?? ()
#17 0xb7341b1b in ?? ()
#18 0xb733a50a in ?? ()
#19 0xb733a0f4 in ?? ()
#20 0xb73394b7 in ?? ()
#21 0xb795c1ae in ?? ()
#22 0x080be75d in ?? ()
#23 0x080bee19 in mono_runtime_class_init ()
#24 0x081b1d6e in ?? ()
#25 0x0807029f in ?? ()
#26 0xb7fed066 in ?? ()
#27 0xb73391dd in ?? ()
#28 0xb795c1ae in ?? ()
#29 0x080be75d in ?? ()
#30 0x08198c48 in ?? ()
#31 0x081afc95 in ?? ()
#32 0x081b1ba1 in ?? ()
#33 0x0807029f in ?? ()
#34 0xb7fed066 in ?? ()
#35 0xb79634b7 in ?? ()
#36 0xb795c1ae in ?? ()
#37 0x080bad75 in mono_runtime_exec_main ()
#38 0x080bb4eb in mono_runtime_run_main ()
#39 0x0805c917 in mono_main ()
#40 0x0805ac62 in ?? ()
#41 0xb7d93775 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#42 0x0805aba1 in ?? ()
#0  0xb800f430 in __kernel_vsyscall ()

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted

If there's any other info you need let me know.

Alex

  • Administrator
  • Ent
  • *****
  • Thank You
  • -Given: 3
  • -Receive: 14
  • Posts: 1,035
Re: Crashes under Ubuntu 9.04
« Reply #1 on: April 28, 2009, 05:25:33 PM »
I've had a few reports of this error now, with the X11 Keyboard thing. Not sure what's causing it. I'll log it in the bug database.

theli

  • Guest
Re: Crashes under Ubuntu 9.04
« Reply #2 on: June 25, 2009, 02:02:48 AM »
this is, supposedly a bug in mono ... can be workarounded by setting environment variable
MONO_WINFORMS_XIM_STYLE=disabled

Alex

  • Administrator
  • Ent
  • *****
  • Thank You
  • -Given: 3
  • -Receive: 14
  • Posts: 1,035
Re: Crashes under Ubuntu 9.04
« Reply #3 on: June 25, 2009, 04:56:15 AM »
Thanks! I'll mail out to people who sent in this bug and see what happens.

wolterh

  • Guest
Re: Crashes under Ubuntu 9.04
« Reply #4 on: June 25, 2009, 08:12:13 AM »
I've tried the fix already retrieving unsuccessful results.

==SYSTEM==
Dell XPS M1530
4GB RAM
Core 2 Duo @ 2.2GHz
nVidia GeForce 8600M GT
Ubuntu 9.04 (Jaunty Jackalope) (64-bit)
Wine 1.1.24
=========

These are the tests:

==WINE 1.1.24==
Code: [Select]
$ MONO_WINFORMS_XIM_STYLE=disabled wine Dyson.exe
fixme:ole:CoGetContextToken stub
fixme:advapi:CheckTokenMembership (0x138 0x16be28 0x32dff8) stub!

Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Globalization.TextInfo' threw an exception.
   at System.Globalization.TextInfo.GetNativeTextInfo(Int32 cultureID)
   at System.Globalization.TextInfo.get_InvariantNativeTextInfo()
   at System.String.Compare(String strA, Int32 indexA, String strB, Int32 indexB, Int32 length, StringComparison comparisonType)
   at System.Security.Util.URLString.PreProcessForExtendedPathRemoval(String url, Boolean isFileUrl)
   at System.AppDomainSetup.NormalizePath(String path, Boolean useAppBase)
   at System.AppDomainSetup.SetupDefaultApplicationBase(String imageLocation)
   at System.AppDomain.SetupFusionStore(AppDomainSetup info)
   at System.AppDomain.SetupDomain(Boolean allowRedirects, String path, String configFile)
wine: Unhandled exception 0xe0434f4d at address 0x7b844613 (thread 0009), starting debugger...
Unhandled exception: 0xe0434f4d in 32-bit code (0x7b844613).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7b844613 ESP:0032ef54 EBP:0032efb8 EFLAGS:00000246(   - --  I  Z- -P- )
 EAX:7b82ecf1 EBX:7b8b7ff4 ECX:00000000 EDX:0032eff0
 ESI:0032eff0 EDI:e0434f4d
Stack dump:
0x0032ef54:  0032eff0 00000004 0000003c e0434f4d
0x0032ef64:  00000001 00000000 7b844613 00000001
0x0032ef74:  80131534 e0434f4d 0032eff0 00392010
0x0032ef84:  02000036 0032ef9c 79e814da 0032efa8
0x0032ef94:  02000036 00000001 0032f018 79e87ff4
0x0032efa4:  0000012c 003f161c 7b8445aa 001510c8
Backtrace:
=>0 0x7b844613 in kernel32 (+0x24613) (0x0032efb8)
  1 0x79f97065 in mscorwks (+0x127065) (0x0032f018)
  2 0x7a0945a4 in mscorwks (+0x2245a4) (0x0032f0dc)
  3 0x02f7355b (0x0032f10c)
  4 0x02f73421 (0x0032f138)
  5 0x02f71845 (0x00000000)
0x7b844613: subl $4,%esp
Modules:
Module Address Debug info Name (63 modules)
PE   400000-  442000 Deferred        dyson
PE 5e380000-5e409000 Deferred        diasymreader
PE 78130000-781cb000 Deferred        msvcr80
PE 79000000-79045000 Deferred        mscoree
PE 79060000-790b3000 Deferred        mscorjit
PE 790c0000-794de000 Deferred        mscorlib
PE 79e70000-7a3d1000 Export          mscorwks
ELF 7b800000-7b954000 Export          kernel32<elf>
  \-PE 7b820000-7b954000 \               kernel32
ELF 7bc00000-7bcb1000 Deferred        ntdll<elf>
  \-PE 7bc10000-7bcb1000 \               ntdll
ELF 7bf00000-7bf04000 Deferred        <wine-loader>
ELF 7e4ce000-7e4e9000 Deferred        version<elf>
  \-PE 7e4d0000-7e4e9000 \               version
ELF 7e58f000-7e5fc000 Deferred        rpcrt4<elf>
  \-PE 7e5a0000-7e5fc000 \               rpcrt4
ELF 7e5fc000-7e6f7000 Deferred        ole32<elf>
  \-PE 7e610000-7e6f7000 \               ole32
ELF 7e6f7000-7e766000 Deferred        msvcrt<elf>
  \-PE 7e710000-7e766000 \               msvcrt
ELF 7e766000-7e76f000 Deferred        libxcursor.so.1
ELF 7e76f000-7e774000 Deferred        libxfixes.so.3
ELF 7e774000-7e778000 Deferred        libxcomposite.so.1
ELF 7e778000-7e780000 Deferred        libxrandr.so.2
ELF 7e780000-7e78a000 Deferred        libxrender.so.1
ELF 7e78a000-7e790000 Deferred        libxxf86vm.so.1
ELF 7e790000-7e7b1000 Deferred        imm32<elf>
  \-PE 7e7a0000-7e7b1000 \               imm32
ELF 7e7b1000-7e7b6000 Deferred        libxdmcp.so.6
ELF 7e7b6000-7e7d0000 Deferred        libxcb.so.1
ELF 7e7d0000-7e7d4000 Deferred        libxau.so.6
ELF 7e7d4000-7e7d9000 Deferred        libuuid.so.1
ELF 7e7d9000-7e8c8000 Deferred        libx11.so.6
ELF 7e8c8000-7e8d8000 Deferred        libxext.so.6
ELF 7e8d8000-7e8f0000 Deferred        libice.so.6
ELF 7e8f0000-7e8f9000 Deferred        libsm.so.6
ELF 7e8fb000-7e90f000 Deferred        lz32<elf>
  \-PE 7e900000-7e90f000 \               lz32
ELF 7e920000-7e9bc000 Deferred        winex11<elf>
  \-PE 7e930000-7e9bc000 \               winex11
ELF 7ead8000-7eaff000 Deferred        libexpat.so.1
ELF 7eaff000-7eb2c000 Deferred        libfontconfig.so.1
ELF 7eb2c000-7eb42000 Deferred        libz.so.1
ELF 7eb42000-7ebb9000 Deferred        libfreetype.so.6
ELF 7ebb9000-7ec5a000 Deferred        gdi32<elf>
  \-PE 7ebd0000-7ec5a000 \               gdi32
ELF 7ec5a000-7eda5000 Deferred        user32<elf>
  \-PE 7ec70000-7eda5000 \               user32
ELF 7eda5000-7ee03000 Deferred        shlwapi<elf>
  \-PE 7edb0000-7ee03000 \               shlwapi
ELF 7ee03000-7ee59000 Deferred        advapi32<elf>
  \-PE 7ee10000-7ee59000 \               advapi32
ELF 7ef83000-7ef8f000 Deferred        libnss_files.so.2
ELF 7ef8f000-7ef9a000 Deferred        libnss_nis.so.2
ELF 7ef9a000-7efb3000 Deferred        libnsl.so.1
ELF 7efb3000-7efd9000 Deferred        libm.so.6
ELF 7efd9000-7efdc000 Deferred        libxinerama.so.1
ELF f7c07000-f7c0b000 Deferred        libdl.so.2
ELF f7c0b000-f7d6e000 Deferred        libc.so.6
ELF f7d6f000-f7d88000 Deferred        libpthread.so.0
ELF f7da6000-f7daf000 Deferred        libnss_compat.so.2
ELF f7daf000-f7eea000 Deferred        libwine.so.1
ELF f7eec000-f7f0d000 Deferred        ld-linux.so.2
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) Z:\home\wolter\dyson120-linux\Dyson.exe
00000018    2
00000017    0
00000009    0 <==
0000000c
00000014    0
00000013    0
00000012    0
0000000e    0
0000000d    0
0000000f
00000016    0
00000015    0
00000011    0
00000010    0
00000019
0000001a    0
Backtrace:
=>0 0x7b844613 in kernel32 (+0x24613) (0x0032efb8)
  1 0x79f97065 in mscorwks (+0x127065) (0x0032f018)
  2 0x7a0945a4 in mscorwks (+0x2245a4) (0x0032f0dc)
  3 0x02f7355b (0x0032f10c)
  4 0x02f73421 (0x0032f138)
  5 0x02f71845 (0x00000000)
fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x000003ff,(nil),0x0001,0x00000000,0x32ea9c,(nil)): stub
err:eventlog:ReportEventW L".NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (79F97075) (80131506)"
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
============

==NATIVE==
Code: [Select]
$ MONO_WINFORMS_XIM_STYLE=disabled ./run-dyson
Stacktrace:

  at (wrapper managed-to-native) Tao.Sdl.Sdl.SDL_MapRGBA (intptr,byte,byte,byte,byte) <0x00088>
  at (wrapper managed-to-native) Tao.Sdl.Sdl.SDL_MapRGBA (intptr,byte,byte,byte,byte) <0xffffffff>
  at SdlDotNet.Graphics.Surface.GetColorValue (System.Drawing.Color) <0x00123>
  at SdlDotNet.Graphics.Surface.Draw (System.Drawing.Point,System.Drawing.Color) <0x0006b>
  at Dyson.Game.Go () <0x0100b>
  at Dyson.Game.Main () <0x00047>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

mono [0x429e65]
mono [0x44ba7d]
/lib/libpthread.so.0 [0x7f1e3226a080]
/usr/local/lib/libSDL-1.2.so.0(SDL_MapRGBA+0) [0x7f1e3059eab0]
[0x40faea48]

Debug info from gdb:

(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x7f1e32f3e730 (LWP 15804)]
[New Thread 0x7f1e30b4d950 (LWP 15807)]
[New Thread 0x7f1e32f47950 (LWP 15806)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0x00007f1e31d46739 in syscall () from /lib/libc.so.6
  3 Thread 0x7f1e32f47950 (LWP 15806)  0x00007f1e322697e1 in nanosleep ()
   from /lib/libpthread.so.0
  2 Thread 0x7f1e30b4d950 (LWP 15807)  0x00007f1e322662e9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  1 Thread 0x7f1e32f3e730 (LWP 15804)  0x00007f1e31d46739 in syscall ()
   from /lib/libc.so.6

Thread 3 (Thread 0x7f1e32f47950 (LWP 15806)):
#0  0x00007f1e322697e1 in nanosleep () from /lib/libpthread.so.0
#1  0x0000000000503be2 in ?? ()
#2  0x00007f1e322623ba in start_thread () from /lib/libpthread.so.0
#3  0x00007f1e31d49fcd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f1e30b4d950 (LWP 15807)):
#0  0x00007f1e322662e9 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#1  0x0000000000506815 in ?? ()
#2  0x0000000000508f8f in ?? ()
#3  0x000000000052123d in ?? ()
#4  0x0000000000496d33 in ?? ()
#5  0x00000000004b52d3 in ?? ()
#6  0x000000000051d81b in ?? ()
#7  0x000000000053a1c2 in ?? ()
#8  0x00007f1e322623ba in start_thread () from /lib/libpthread.so.0
#9  0x00007f1e31d49fcd in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f1e32f3e730 (LWP 15804)):
#0  0x00007f1e31d46739 in syscall () from /lib/libc.so.6
#1  0x0000000000429f06 in ?? ()
#2  0x000000000044ba7d in ?? ()
#3  <signal handler called>
#4  SDL_MapRGBA (format=0x113e52000007f1e, r=255 '�', g=255 '�', b=255 '�',
    a=0 '\0') at ./src/video/SDL_pixels.c:359
#5  0x0000000040faea48 in ?? ()
#6  0x0000000000a640c0 in ?? ()
#7  0x0113e52000007f1e in ?? ()
#8  0x0000000000000000 in ?? ()
#0  0x00007f1e31d46739 in syscall () from /lib/libc.so.6

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted
=========

theli

  • Guest
Re: Crashes under Ubuntu 9.04
« Reply #5 on: June 25, 2009, 05:54:26 PM »
I've tried the fix already retrieving unsuccessful results.

==SYSTEM==
Dell XPS M1530
4GB RAM
Core 2 Duo @ 2.2GHz
nVidia GeForce 8600M GT
Ubuntu 9.04 (Jaunty Jackalope) (64-bit)
Wine 1.1.24
=========

These are the tests:

==WINE 1.1.24==
i'm not sure this have effect on windows' version of mono

==NATIVE==
as far as i know Dyson does not work on 64-bit systems with native mono

the workaround should work for native version of mono (32b systems) where Dyson crashes in System.Windows.Forms.X11Keyboard

wolterh

  • Guest
Re: Crashes under Ubuntu 9.04
« Reply #6 on: June 26, 2009, 02:30:53 AM »
Well, that adds up to the reasons why not to use 64 bit linux...sadly.
When is Dyson going to release a 64bit version? 64bit is more important every day. 32bit is old stuff now.

register

  • Guest
Re: Crashes under Ubuntu 9.04
« Reply #7 on: June 27, 2009, 10:12:09 PM »
Thank you theli, Dyson works now on my system