[Mono-bugs] [Bug 574434] New: segment fault on System.MonoCustomAttrs.IsDefinedInternal

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 27 12:31:42 EST 2010


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

http://bugzilla.novell.com/show_bug.cgi?id=574434#c0


           Summary: segment fault on
                    System.MonoCustomAttrs.IsDefinedInternal
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.6.x
          Platform: x86-64
        OS/Version: RHEL 5
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: srfcanada at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64;
Trident/4.0)

using the current daily build as of Jan 21/2010 im getting a segment fault
trying to compile some of our projects. Using mono 2.4 everything works fine.
Im finding it hard to give a definitive sample that can reproduce it given the
project its trying to compile is quite large so Im not sure what specifically
is causing this. I did notice a few bugs over the last few weeks related to
Custom Attributes so Im not sure if its related but Ill leave a stack trace for
now and see if I can give an example.

thanks


scott


Stacktrace:

  at (wrapper managed-to-native) System.MonoCustomAttrs.IsDefinedInternal
(System.Reflection.ICustomAttributeProvider,System.Type) <0x0005a>
  at (wrapper managed-to-native) System.MonoCustomAttrs.IsDefinedInternal
(System.Reflection.ICustomAttributeProvider,System.Type) <0x0005a>
  at System.MonoCustomAttrs.IsDefined
(System.Reflection.ICustomAttributeProvider,System.Type,bool) <0x00072>
  at System.Reflection.ParameterInfo.IsDefined (System.Type,bool) <0x00023>
  at Mono.CSharp.ParametersImported.Create
(System.Reflection.ParameterInfo[],System.Reflection.MethodBase) <0x0034f>
  at Mono.CSharp.TypeManager.GetParameterData (System.Reflection.PropertyInfo)
<0x000be>
  at Mono.CSharp.MemberCache.FindMemberToOverride
(System.Type,string,Mono.CSharp.AParametersCollection,Mono.CSharp.GenericMethod,bool)
<0x001e7>
  at Mono.CSharp.Indexer.ResolveBaseProperty () <0x0007c>
  at Mono.CSharp.PropertyBase.FindOutBaseMethod (System.Type&) <0x0002f>
  at Mono.CSharp.InterfaceMemberBase.CheckBase () <0x0016b>
  at Mono.CSharp.Indexer.Define () <0x002d4>
  at Mono.CSharp.TypeContainer.DefineContainerMembers
(System.Collections.IList) <0x000aa>
  at Mono.CSharp.TypeContainer.DoDefineMembers () <0x00d8a>
  at Mono.CSharp.TypeContainer.Define () <0x0002f>
  at Mono.CSharp.RootContext.PopulateTypes () <0x0020b>
  at Mono.CSharp.Driver.Compile () <0x00777>
  at Mono.CSharp.Driver.Main (string[]) <0x000fb>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object
(object,intptr,intptr,intptr) <0x0005c>

Native stacktrace:

        /usr/local/bin/mono [0x48d3eb]
        /usr/local/bin/mono [0x4d804d]
        /lib64/libpthread.so.0 [0x3512c0de60]
        /usr/local/bin/mono(mono_custom_attrs_from_param+0x22) [0x50d1f2]
        /usr/local/bin/mono [0x529826]
        [0x40caf62a]

Debug info from gdb:

Using host libthread_db library "/lib64/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 46912496264832 (LWP 9494)]
[New Thread 1086486848 (LWP 9497)]
[New Thread 1084385600 (LWP 9496)]
[New Thread 1084303680 (LWP 9495)]
0x0000003512c0cc7b in read () from /lib64/libpthread.so.0
  4 Thread 1084303680 (LWP 9495)  0x0000003512c0a496 in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  3 Thread 1084385600 (LWP 9496)  0x0000003512c0d521 in nanosleep () from
/lib64/libpthread.so.0
  2 Thread 1086486848 (LWP 9497)  0x0000003512c0c0dd in sem_wait () from
/lib64/libpthread.so.0
  1 Thread 46912496264832 (LWP 9494)  0x0000003512c0cc7b in read () from
/lib64/libpthread.so.0

Thread 4 (Thread 1084303680 (LWP 9495)):
#0  0x0000003512c0a496 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
#1  0x00000000005c2caa in GC_wait_marker () at pthread_support.c:1785
#2  0x00000000005b905d in GC_help_marker (my_mark_no=13) at mark.c:1116
#3  0x00000000005c1a19 in GC_mark_thread (id=0x0) at pthread_support.c:548
#4  0x0000003512c062e7 in start_thread () from /lib64/libpthread.so.0
#5  0x00000035120ce3bd in clone () from /lib64/libc.so.6

Thread 3 (Thread 1084385600 (LWP 9496)):
#0  0x0000003512c0d521 in nanosleep () from /lib64/libpthread.so.0
#1  0x000000000059900f in collection_thread (unused=<value optimized out>) at
collection.c:34
#2  0x0000003512c062e7 in start_thread () from /lib64/libpthread.so.0
#3  0x00000035120ce3bd in clone () from /lib64/libc.so.6

Thread 2 (Thread 1086486848 (LWP 9497)):
#0  0x0000003512c0c0dd in sem_wait () from /lib64/libpthread.so.0
#1  0x000000000055f556 in finalizer_thread (unused=<value optimized out>) at
gc.c:1022
#2  0x00000000004e1e0e in start_wrapper (data=<value optimized out>) at
threads.c:721
#3  0x0000000000595cff in thread_start_routine (args=0x7e959e0) at
wthreads.c:286
#4  0x00000000005c293d in GC_start_routine (arg=0x2aaaae0bde70) at
pthread_support.c:1390
#5  0x0000003512c062e7 in start_thread () from /lib64/libpthread.so.0
#6  0x00000035120ce3bd in clone () from /lib64/libc.so.6

Thread 1 (Thread 46912496264832 (LWP 9494)):
#0  0x0000003512c0cc7b in read () from /lib64/libpthread.so.0
#1  0x000000000048d4e8 in mono_handle_native_sigsegv (signal=<value optimized
out>, ctx=<value optimized out>)
    at mini-exceptions.c:1843
#2  0x00000000004d804d in mono_arch_handle_altstack_exception
(sigctx=0x2aaaae0cbc40, fault_addr=<value optimized out>,
    stack_ovf=0) at exceptions-amd64.c:859
#3  <signal handler called>
#4  0x000000000050d1f2 in mono_custom_attrs_from_param (method=0x2aaaafcbccd0,
param=2) at reflection.c:8513
#5  0x0000000000529826 in custom_attrs_defined_internal (obj=0x2aaaafcbccd0,
attr_type=0x2) at icall.c:7251
#6  0x0000000040caf62a in ?? ()
#7  0x0000000007e52560 in ?? ()
#8  0x00002aaaaaace648 in ?? ()
#9  0x00002aaaafef5980 in ?? ()
#10 0x0000000000000000 in ?? ()
#0  0x0000003512c0cc7b in read () from /lib64/libpthread.so.0

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


Reproducible: Always

Steps to Reproduce:
1.
2.
3.

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


More information about the mono-bugs mailing list