[Mono-bugs] [Bug 548129] New: SIGSEGV in make_array_type

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Oct 19 10:30:14 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=548129


           Summary: SIGSEGV in make_array_type
    Classification: Mono
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


When using user defined type make_array_type SIGSEGV

Thread @1 received signal 11 at #0: 0x0810f40f in mono_class_from_mono_type+0xf
at /home/marek/svn/mono/mono/metadata/class.c:4915.
4915     switch (type->type) {
(mdb) p type
(MonoType*) null


Stacktrace:

  at (wrapper managed-to-native) System.Type.make_array_type (int) <0x00004>
  at (wrapper managed-to-native) System.Type.make_array_type (int) <0xffffffff>
  at System.Type.MakeArrayType () <0x00012>
  at Mono.CSharp.TypeManager.GetConstructedType (System.Type,string) <0x00082>
  at Mono.CSharp.ImplicitlyTypedArrayCreation.DoResolve
(Mono.CSharp.ResolveContext) <0x000b8>
  at Mono.CSharp.Expression.Resolve
(Mono.CSharp.ResolveContext,Mono.CSharp.ResolveFlags) <0x0015b>
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext) <0x00015>
  at Mono.CSharp.Assign.DoResolve (Mono.CSharp.ResolveContext) <0x00020>
  at Mono.CSharp.SimpleAssign.DoResolve (Mono.CSharp.ResolveContext) <0x00018>
  at Mono.CSharp.Expression.Resolve
(Mono.CSharp.ResolveContext,Mono.CSharp.ResolveFlags) <0x0015b>
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext) <0x00015>
  at Mono.CSharp.ExpressionStatement.ResolveStatement
(Mono.CSharp.BlockContext) <0x00015>
  at Mono.CSharp.StatementExpression.Resolve (Mono.CSharp.BlockContext)
<0x00030>
  at Mono.CSharp.Block.Resolve (Mono.CSharp.BlockContext) <0x0042e>
  at Mono.CSharp.Block.Resolve (Mono.CSharp.BlockContext) <0x0042e>
  at Mono.CSharp.ToplevelBlock.Resolve
(Mono.CSharp.FlowBranching,Mono.CSharp.BlockContext,Mono.CSharp.ParametersCompiled,Mono.CSharp.IMethodData)
<0x000a8>
  at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace) <0x001ff>
  at Mono.CSharp.MethodOrOperator.Emit () <0x00305>
  at Mono.CSharp.Method.Emit () <0x000c4>
  at Mono.CSharp.TypeContainer.EmitType () <0x008ce>
  at Mono.CSharp.RootContext.EmitCode () <0x000ac>
  at Mono.CSharp.Driver.Compile () <0x006f6>
  at Mono.CSharp.Driver.Main (string[]) <0x0008f>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    mono [0x80d73f2]
    mono [0x810229b]
    [0xb7ee4410]
    mono [0x81a343d]
    [0xb6653a50]
    [0xb6653a0b]
    [0xb66a0e73]
    [0xb66810e1]
    [0xb669166c]
    [0xb6691486]
    [0xb667c669]
    [0xb667c5c9]
    [0xb669166c]
    [0xb6691486]
    [0xb669140e]
    [0xb66913d9]
    [0xb6690c8f]
    [0xb6690c8f]
    [0xb668f3d1]
    [0xb667a9e8]
    [0xb667a766]
    [0xb667a3bd]
    [0xb668c5ff]
    [0xb668b88d]
    [0xb6a18f0f]
    [0xb7039238]
    [0xb70395db]
    mono [0x8063525]
    mono(mono_runtime_exec_main+0x16e) [0x812b13e]
    mono(mono_runtime_run_main+0x16b) [0x812b42b]
    mono(mono_main+0x1975) [0x80b6e05]
    mono [0x805b5c1]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7c72775]
    mono [0x805b4f1]

Debug info from gdb:

Cannot access memory at address 0x0
[Thread debugging using libthread_db enabled]
[New Thread 0xb7c286f0 (LWP 29170)]
[New Thread 0xb6c3ab90 (LWP 29173)]
[New Thread 0xb6c5eb90 (LWP 29172)]
[New Thread 0xb7aedb90 (LWP 29171)]
0xb7ee4430 in __kernel_vsyscall ()
  4 Thread 0xb7aedb90 (LWP 29171)  0xb7ee4430 in __kernel_vsyscall ()
  3 Thread 0xb6c5eb90 (LWP 29172)  0xb7ee4430 in __kernel_vsyscall ()
  2 Thread 0xb6c3ab90 (LWP 29173)  0xb7ee4430 in __kernel_vsyscall ()
  1 Thread 0xb7c286f0 (LWP 29170)  0xb7ee4430 in __kernel_vsyscall ()

Thread 4 (Thread 0xb7aedb90 (LWP 29171)):
#0  0xb7ee4430 in __kernel_vsyscall ()
#1  0xb7def0e5 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0x081e3b1d in GC_wait_marker () at pthread_support.c:1785
#3  0x081dcac7 in GC_help_marker (my_mark_no=5) at mark.c:1116
#4  0x081e2901 in GC_mark_thread (id=0x0) at pthread_support.c:548
#5  0xb7deb4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6  0xb7d4049e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xb6c5eb90 (LWP 29172)):
#0  0xb7ee4430 in __kernel_vsyscall ()
#1  0xb7df28f6 in nanosleep () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x081b3198 in collection_thread (unused=0x0) at collection.c:34
#3  0xb7deb4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4  0xb7d4049e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb6c3ab90 (LWP 29173)):
#0  0xb7ee4430 in __kernel_vsyscall ()
#1  0xb7df13f5 in sem_wait@@GLIBC_2.1 () from
/lib/tls/i686/cmov/libpthread.so.0
#2  0x081b2088 in finalizer_thread (unused=0x0) at gc.c:1022
#3  0x0816814b in start_wrapper (data=0x8ff1fe8) at threads.c:716
#4  0x081b64d6 in thread_start_routine (args=0x8ffc0c4) at wthreads.c:286
#5  0x081e37af in GC_start_routine (arg=0x26f20) at pthread_support.c:1390
#6  0xb7deb4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb7d4049e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb7c286f0 (LWP 29170)):
#0  0xb7ee4430 in __kernel_vsyscall ()
#1  0xb7df20fb in read () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x080d7599 in mono_handle_native_sigsegv (signal=11, ctx=0xb72ecd0c)
    at /usr/include/bits/unistd.h:45
#3  0x0810229b in mono_arch_handle_altstack_exception (sigctx=0xb72ecd0c, 
    fault_addr=0x6, stack_ovf=0) at exceptions-x86.c:891
#4  <signal handler called>
#5  mono_class_from_mono_type (type=0x0) at class.c:4915
#6  0x081a343d in ves_icall_Type_make_array_type (type=0x2e7d0, rank=0) at
icall.c:5690
#7  0xb6653a50 in ?? ()
#8  0xb6653a0b in ?? ()
#9  0xb66a0e73 in ?? ()
#10 0xb66810e1 in ?? ()
#11 0xb669166c in ?? ()
#12 0xb6691486 in ?? ()
#13 0xb667c669 in ?? ()
#14 0xb667c5c9 in ?? ()
#15 0xb669166c in ?? ()
#16 0xb6691486 in ?? ()
#17 0xb669140e in ?? ()
#18 0xb66913d9 in ?? ()
#19 0xb6690c8f in ?? ()
#20 0xb6690c8f in ?? ()
#21 0xb668f3d1 in ?? ()
#22 0xb667a9e8 in ?? ()
#23 0xb667a766 in ?? ()
#24 0xb667a3bd in ?? ()
#25 0xb668c5ff in ?? ()
#26 0xb668b88d in ?? ()
#27 0xb6a18f0f in ?? ()
#28 0xb7039238 in ?? ()
#29 0xb70395db in ?? ()
#30 0x08063525 in mono_jit_runtime_invoke (method=0x900ca24, obj=0x0,
params=0xbfb01e58, 
    exc=0x0) at mini.c:4611
#31 0x0812b13e in mono_runtime_exec_main (method=0x900ca24, args=0x43f60,
exc=0x0)
    at object.c:3663
#32 0x0812b42b in mono_runtime_run_main (method=0x900ca24, argc=1,
argv=0xbfb020c8, 
    exc=0x0) at object.c:3300
#33 0x080b6e05 in mono_main (argc=3, argv=0xbfb020c4) at driver.c:988
#34 0x0805b5c1 in main (argc=) at main.c:34
#0  0xb7ee4430 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.
=================================================================

-- 
Configure bugmail: http://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