Comment 29 for bug 990960

Revision history for this message
Tom Kapelko (tkapelko) wrote :

Hello,

Instead of creating another thread I decided to join this one.

Found a similar bug in Ubuntu 14.04, OpenBVE version 1.4.0.9-1 (have installed it using "aptitude")

Here is a complete crash report:

Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Drawing.GDIPlus.GdipLoadImageFromFile (string,intptr&) <IL 0x0001c, 0xffffffff>
  at System.Drawing.Image.FromFile (string,bool) <IL 0x00029, 0x0005b>
  at System.Drawing.Image.FromFile (string) <IL 0x00002, 0x00013>
  at OpenBve.formMain.LoadImage (string,string) <IL 0x00014, 0x0003b>
  at OpenBve.formMain.formMain_Load (object,System.EventArgs) <IL 0x003a8, 0x00d83>
  at System.Windows.Forms.Form.OnLoad (System.EventArgs) <IL 0x00025, 0x00075>
  at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs) <IL 0x0002b, 0x0007f>
  at System.Windows.Forms.Form.OnCreateControl () <IL 0x0002d, 0x00053>
  at System.Windows.Forms.Control.CreateControl () <IL 0x000a4, 0x0011f>
  at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message&) <IL 0x0003a, 0x00167>
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&) <IL 0x001d1, 0x002d3>
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message&) <IL 0x00002, 0x0001b>
  at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message&) <IL 0x0003e, 0x0005b>
  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message&) <IL 0x0015e, 0x00253>
  at System.Windows.Forms.Control/ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) <IL 0x00007, 0x00025>
  at System.Windows.Forms.Control/ControlNativeWindow.WndProc (System.Windows.Forms.Message&) <IL 0x0000c, 0x00036>
  at System.Windows.Forms.NativeWindow.WndProc (intptr,System.Windows.Forms.Msg,intptr,intptr) <IL 0x00091, 0x00310>
  at System.Windows.Forms.XplatUIX11.SendMessage (intptr,System.Windows.Forms.Msg,intptr,intptr) <IL 0x000db, 0x003f3>
  at System.Windows.Forms.XplatUIX11.MapWindow (System.Windows.Forms.Hwnd,System.Windows.Forms.WindowType) <IL 0x00048, 0x001df>
  at System.Windows.Forms.XplatUIX11.CreateWindow (System.Windows.Forms.CreateParams) <IL 0x00575, 0x00bab>
  at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams) <IL 0x00006, 0x0001f>
  at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams) <IL 0x00007, 0x0003f>
  at System.Windows.Forms.Control.CreateHandle () <IL 0x00041, 0x00069>
  at System.Windows.Forms.Form.CreateHandle () <IL 0x00001, 0x0002b>
  at System.Windows.Forms.Control.CreateControl () <IL 0x0004c, 0x00087>
  at System.Windows.Forms.Control.SetVisibleCore (bool) <IL 0x00044, 0x00083>
  at System.Windows.Forms.Form.SetVisibleCore (bool) <IL 0x0007d, 0x002ef>
  at System.Windows.Forms.Control.set_Visible (bool) <IL 0x0000e, 0x00032>
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.set_Visible (bool) <IL 0x00039, 0xffffffff>
  at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) <IL 0x00060, 0x002fb>
  at System.Windows.Forms.Form.ShowDialog (System.Windows.Forms.IWin32Window) <IL 0x001fe, 0x008ab>
  at System.Windows.Forms.Form.ShowDialog () <IL 0x00002, 0x00013>
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.ShowDialog () <IL 0x00038, 0xffffffff>
  at OpenBve.formMain.ShowMainDialog () <IL 0x00007, 0x0005f>
  at OpenBve.Program.Main (string[]) <IL 0x0049c, 0x00bc7>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>

Native stacktrace:

 mono() [0x4b73d8]
 mono() [0x50f13b]
 mono() [0x423d22]
 /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f7413d5f340]
 /usr/lib/libgdiplus.so.0(+0x415ca) [0x7f740b9d05ca]
 /usr/lib/libgdiplus.so.0(GdipLoadImageFromFile+0x18a) [0x7f740b9b367a]
 [0x41d587a2]

Debug info from gdb:

[New LWP 6266]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f7413d5eee9 in __libc_waitpid (pid=pid@entry=6267, stat_loc=stat_loc@entry=0x7f741489331c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
40 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
  Id Target Id Frame
  2 Thread 0x7f7410def700 (LWP 6266) "mono" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
* 1 Thread 0x7f741487b7c0 (LWP 6265) "mono" 0x00007f7413d5eee9 in __libc_waitpid (pid=pid@entry=6267, stat_loc=stat_loc@entry=0x7f741489331c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40

Thread 2 (Thread 0x7f7410def700 (LWP 6266)):
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1 0x000000000062f667 in mono_sem_wait (sem=sem@entry=0x982440 <finalizer_sem>, alertable=alertable@entry=1) at mono-semaphore.c:119
#2 0x00000000005aba15 in finalizer_thread (unused=unused@entry=0x0) at gc.c:1073
#3 0x000000000058e34b in start_wrapper_internal (data=0x19d37b0) at threads.c:643
#4 start_wrapper (data=0x19d37b0) at threads.c:688
#5 0x000000000062410d in thread_start_routine (args=args@entry=0x194ded8) at wthreads.c:294
#6 0x0000000000633ef5 in inner_start_thread (arg=0x19d33d0) at mono-threads-posix.c:49
#7 0x00007f7413d57182 in start_thread (arg=0x7f7410def700) at pthread_create.c:312
#8 0x00007f7413a8430d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f741487b7c0 (LWP 6265)):
#0 0x00007f7413d5eee9 in __libc_waitpid (pid=pid@entry=6267, stat_loc=stat_loc@entry=0x7f741489331c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
#1 0x00000000004b7465 in mono_handle_native_sigsegv (signal=signal@entry=11, ctx=ctx@entry=0x7f7414893c40) at mini-exceptions.c:2299
#2 0x000000000050f13b in mono_arch_handle_altstack_exception (sigctx=sigctx@entry=0x7f7414893c40, fault_addr=<optimized out>, stack_ovf=stack_ovf@entry=0) at exceptions-amd64.c:908
#3 0x0000000000423d22 in mono_sigsegv_signal_handler (_dummy=11, info=0x7f7414893d70, context=0x7f7414893c40) at mini.c:6769
#4 <signal handler called>
#5 0x00007f740b9d05ca in ?? () from /usr/lib/libgdiplus.so.0
#6 0x00007f740b9b367a in GdipLoadImageFromFile () from /usr/lib/libgdiplus.so.0
#7 0x0000000041d587a2 in ?? ()
#8 0x00000000019cae40 in ?? ()
#9 0x00007f7412fc0520 in ?? ()
#10 0x00000000ffffff18 in ?? ()
#11 0x00007fff593453e0 in ?? ()
#12 0x00007fff59345300 in ?? ()
#13 0x00007f7412c01538 in ?? ()
#14 0x00007f7412c01538 in ?? ()
#15 0x00007f7412fc0520 in ?? ()
#16 0x00007f7412fc0520 in ?? ()
#17 0x0000000041d586dc in ?? ()
#18 0x00007f7412c01538 in ?? ()
#19 0x00007f7412e276a8 in ?? ()
#20 0x0000000000000000 in ?? ()

=================================================================
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.
=================================================================