[Mono-bugs] [Bug 485721] New: Regression bug in mini.c

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Mar 16 14:15:53 EDT 2009


https://bugzilla.novell.com/show_bug.cgi?id=485721


           Summary: Regression bug in mini.c
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: i686
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: surfzoid2002 at yahoo.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7)
Gecko/2009031120 Mandriva/1.9.0.7-0.1mdv2009.0 (2009.0) Firefox/3.0.7

Hi
I have an app with closed source code (from our devel office) who run fine if i
use the Mono 1.9 version who come with RPM of my distro, 
I tryied to debug it and write a simple test case with the line where my prog
is crash, but testcase didn't crash, the prog have a lot of static object, so i
guess it is an interaction with one of them because if i use the trunk SVN
version of mono i have the folowing crash .


Reproducible: Always

Steps to Reproduce:
Really difficult to say , sorry.
Actual Results:  
Could not set X locale modifiers
16/03/2009 16:34:51: /home/epetit/.config/ADI/TestSample/TestSample.log
16/03/2009 16:34:51: Constructeur ComADIByEric.ClasseADebugger
**
ERROR:mini.c:3634:mini_method_compile: assertion failed:
(tblock->native_offset)
Stacktrace:

  at ComADIByEric.Com_Modbus.Connection (string,int,string) [0x00064] in
/media/Stockage/Affaires en
cours/06_99001_ADI_VB_vs_AUTOM/Programme/CSharp/ComADIByEric/Com_Modbus-ADICS/UI/Com_Modbus.cs:48
  at ComADIByEric.Com_Modbus.Connection (string,int,string) [0x0000c] in
/media/Stockage/Affaires en
cours/06_99001_ADI_VB_vs_AUTOM/Programme/CSharp/ComADIByEric/Com_Modbus-ADICS/UI/Com_Modbus.cs:43
  at (wrapper remoting-invoke-with-check) ComADIByEric.Com_Modbus.Connection
(string,int,string) <IL 0x0003b, 0xffffffff>
  at TestSample.Form1.TestConect () [0x0001b] in /media/Stockage/Affaires en
cours/06_99001_ADI_VB_vs_AUTOM/Programme/CSharp/ComADIByEric/TestSample/Form1.cs:32
  at TestSample.Form1.button1_Click (object,System.EventArgs) [0x00000] in
/media/Stockage/Affaires en
cours/06_99001_ADI_VB_vs_AUTOM/Programme/CSharp/ComADIByEric/TestSample/Form1.cs:22
  at System.Windows.Forms.Control.OnClick (System.EventArgs) [0x0001c] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:6033
  at System.Windows.Forms.Button.OnClick (System.EventArgs) [0x00024] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Button.cs:106
  at System.Windows.Forms.ButtonBase.OnMouseUp
(System.Windows.Forms.MouseEventArgs) [0x00081] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs:634
  at System.Windows.Forms.Button.OnMouseUp
(System.Windows.Forms.MouseEventArgs) [0x00000] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Button.cs:128
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message&)
[0x0007e] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5595
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&)
[0x0017b] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5332
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message&)
[0x00054] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs:692
  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message&)
[0x00000] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Button.cs:150
  at System.Windows.Forms.Control/ControlWindowTarget.OnMessage
(System.Windows.Forms.Message&) [0x00000] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:234
  at System.Windows.Forms.Control/ControlNativeWindow.WndProc
(System.Windows.Forms.Message&) [0x00000] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:215
  at System.Windows.Forms.NativeWindow.WndProc
(intptr,System.Windows.Forms.Msg,intptr,intptr) [0x00085] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:242
  at System.Windows.Forms.XplatUIX11.DispatchMessage
(System.Windows.Forms.MSG&) [0x00000] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:3424
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&)
[0x00000] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:605
  at System.Windows.Forms.Application.RunLoop
(bool,System.Windows.Forms.ApplicationContext) [0x0036a] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:982
  at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext) [0x00014] in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:761
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form) [0x00000]
in
/home/epetit/MonoSVN/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:740
  at TestSample.Program.Main () [0x0000b] in /media/Stockage/Affaires en
cours/06_99001_ADI_VB_vs_AUTOM/Programme/CSharp/ComADIByEric/TestSample/Program.cs:18
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <IL 0x00049, 0xffffffff>

Native stacktrace:

    /usr/bin/mono [0x80cd332]
    [0xffffe40c]
    /lib/i686/libc.so.6(abort+0x188) [0xb7e3a808]
    /usr/lib/libglib-2.0.so.0(g_assertion_message+0x143) [0xb8008263]

Debug info from gdb:

[?1034h[Thread debugging using libthread_db enabled]
[New Thread 0xb7e0d6f0 (LWP 31486)]
[New Thread 0xb5d4fb90 (LWP 31493)]
[New Thread 0xb80a6b90 (LWP 31492)]
[New Thread 0xb6ce7b90 (LWP 31491)]
[New Thread 0xb74e8b90 (LWP 31490)]
[New Thread 0xb7ce9b90 (LWP 31489)]
0xffffe424 in __kernel_vsyscall ()
  6 Thread 0xb7ce9b90 (LWP 31489)  0xffffe424 in __kernel_vsyscall ()
  5 Thread 0xb74e8b90 (LWP 31490)  0xffffe424 in __kernel_vsyscall ()
  4 Thread 0xb6ce7b90 (LWP 31491)  0xffffe424 in __kernel_vsyscall ()
  3 Thread 0xb80a6b90 (LWP 31492)  0xffffe424 in __kernel_vsyscall ()
  2 Thread 0xb5d4fb90 (LWP 31493)  0xffffe424 in __kernel_vsyscall ()
* 1 Thread 0xb7e0d6f0 (LWP 31486)  0xffffe424 in __kernel_vsyscall ()

Thread 6 (Thread 0xb7ce9b90 (LWP 31489)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7f8cb95 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/libpthread.so.0
#2  0x081d0dd3 in GC_wait_marker () at pthread_support.c:1777
#3  0x081ce4b6 in GC_help_marker (my_mark_no=9) at mark.c:1116
#4  0x081cfc5d in GC_mark_thread (id=0x0) at pthread_support.c:548
#5  0xb7f89315 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb7ee7d4e in clone () from /lib/i686/libc.so.6

Thread 5 (Thread 0xb74e8b90 (LWP 31490)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7f8cb95 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/libpthread.so.0
#2  0x081d0dd3 in GC_wait_marker () at pthread_support.c:1777
#3  0x081ce4b6 in GC_help_marker (my_mark_no=9) at mark.c:1116
#4  0x081cfc5d in GC_mark_thread (id=0x1) at pthread_support.c:548
#5  0xb7f89315 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb7ee7d4e in clone () from /lib/i686/libc.so.6

Thread 4 (Thread 0xb6ce7b90 (LWP 31491)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7f8cb95 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/libpthread.so.0
#2  0x081d0dd3 in GC_wait_marker () at pthread_support.c:1777
#3  0x081ce4b6 in GC_help_marker (my_mark_no=9) at mark.c:1116
#4  0x081cfc5d in GC_mark_thread (id=0x2) at pthread_support.c:548
#5  0xb7f89315 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb7ee7d4e in clone () from /lib/i686/libc.so.6

Thread 3 (Thread 0xb80a6b90 (LWP 31492)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7f903b6 in nanosleep () from /lib/i686/libpthread.so.0
#2  0x081a9b58 in collection_thread (unused=0x0) at collection.c:34
#3  0xb7f89315 in start_thread () from /lib/i686/libpthread.so.0
#4  0xb7ee7d4e in clone () from /lib/i686/libc.so.6

Thread 2 (Thread 0xb5d4fb90 (LWP 31493)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7f8ee65 in sem_wait@@GLIBC_2.1 () from /lib/i686/libpthread.so.0
#2  0x08156a59 in finalizer_thread (unused=0x0) at gc.c:1077
#3  0x0812b508 in start_wrapper (data=0x8adc948) at threads.c:624
#4  0x081a8e16 in thread_start_routine (args=0x8ac2ce4) at threads.c:286
#5  0x081d0a65 in GC_start_routine (arg=0x26f20) at pthread_support.c:1382
#6  0xb7f89315 in start_thread () from /lib/i686/libpthread.so.0
#7  0xb7ee7d4e in clone () from /lib/i686/libc.so.6

Thread 1 (Thread 0xb7e0d6f0 (LWP 31486)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7f8fb7b in read () from /lib/i686/libpthread.so.0
#2  0x080cd56b in mono_handle_native_sigsegv (signal=6, ctx=0xbf8e588c) at
mini-exceptions.c:1490
#3  <signal handler called>
#4  0xffffe424 in __kernel_vsyscall ()
#5  0xb7e38da0 in raise () from /lib/i686/libc.so.6
#6  0xb7e3a808 in abort () from /lib/i686/libc.so.6
#7  0xb8008263 in g_assertion_message () from /usr/lib/libglib-2.0.so.0
#8  0xb800871f in g_assertion_message_expr () from /usr/lib/libglib-2.0.so.0
#9  0x0806037a in mini_method_compile (method=0xb44e847c, opts=64055807,
domain=0x25e70, run_cctors=<value optimized out>, 
    compile_aot=<value optimized out>, parts=0) at mini.c:3634
#10 0x08060851 in mono_jit_compile_method (method=0xb44e847c) at mini.c:3838
#11 0x080cfa7a in mono_magic_trampoline (regs=0xbf8e5ed8, code=0xb45140f4
"\203&#65533;\020&#65533;8\001", m=0xb44e847c, tramp=0x0) at
mini-trampolines.c:326
#12 0xb80ac066 in ?? ()
#13 0xbf8e5ed8 in ?? ()
#14 0xb45140f4 in ?? ()
#15 0xb44e847c in ?? ()
#16 0x00000000 in ?? ()

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

Expected Results:  
No crash

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list