[Mono-bugs] [Bug 639422] New: __icall_wrapper_mono_gc_alloc_obj Got a SIGSEGV while executing native code.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Sep 14 21:48:27 EDT 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=639422#c0


           Summary: __icall_wrapper_mono_gc_alloc_obj Got a SIGSEGV while
                    executing native code.
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.8.x
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: GC
        AssignedTo: lupus at novell.com
        ReportedBy: igouy2 at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9)
Gecko/20100825 Ubuntu/10.04 (lucid) Firefox/3.6.9

Same program that works with mono-2.6.4

http://shootout.alioth.debian.org/u64q/program.php?test=chameneosredux&lang=csharp&id=1

FAILS with mono-2.8 preview

http://shootout.alioth.debian.org/u64q/program.php?test=chameneosredux&lang=cspreview&id=1#log

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Actual Results:  
Tue, 14 Sep 2010 23:54:42 GMT

MAKE:
mv chameneosredux.cspreview chameneosredux.cs
/usr/local/src/mono-2.8/bin/mcs  -optimize+ -out:chameneosredux.cspreview_run
chameneosredux.cs
rm chameneosredux.cs
0.17s to complete and log all make actions

COMMAND LINE:
/usr/local/src/mono-2.8/bin/mono --gc=sgen chameneosredux.cspreview_run 6000000

PROGRAM FAILED 


PROGRAM OUTPUT:
blue + blue -> blue
blue + red -> yellow
blue + yellow -> red
red + blue -> yellow
red + red -> red
red + yellow -> blue
yellow + blue -> red
yellow + red -> blue
yellow + yellow -> yellow

 blue red yellow

Stacktrace:

  at (wrapper managed-to-native) object.__icall_wrapper_mono_gc_alloc_obj
(intptr,intptr) <0x0004c>
  at (wrapper managed-to-native) object.__icall_wrapper_mono_gc_alloc_obj
(intptr,intptr) <0x0004c>
  at (wrapper alloc) object.AllocSmall (intptr) <0x00077>
  at chameneosredux/MeetingPlace.meet (int,chameneosredux/Colour) <0x000df>
  at chameneosredux/Creature.run () <0x0002f>
  at System.Threading.Thread.StartUnsafe () <0x00071>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__
(object,intptr,intptr,intptr) <0x00098>

Native stacktrace:

    /usr/local/src/mono-2.8/bin/mono-sgen() [0x48b51b]
    /usr/local/src/mono-2.8/bin/mono-sgen() [0x4de2ef]
    /lib/libpthread.so.0(+0xf8f0) [0x7fc627cce8f0]
    /usr/local/src/mono-2.8/bin/mono-sgen() [0x5325e0]
    /usr/local/src/mono-2.8/bin/mono-sgen() [0x5327b6]
    /usr/local/src/mono-2.8/bin/mono-sgen() [0x532862]
    /usr/local/src/mono-2.8/bin/mono-sgen() [0x53989a]
    /usr/local/src/mono-2.8/bin/mono-sgen() [0x53b47b]
    /usr/local/src/mono-2.8/bin/mono-sgen() [0x53ba03]
    /usr/local/src/mono-2.8/bin/mono-sgen() [0x53bcde]
    [0x406bd2ad]

Debug info from gdb:

[Thread debugging using libthread_db enabled]
[New Thread 0x7fc625526710 (LWP 21558)]
[New Thread 0x7fc61d526710 (LWP 21557)]
[New Thread 0x7fc625727710 (LWP 21556)]
[New Thread 0x7fc625928710 (LWP 21555)]
0x00007fc62796fe24 in sigsuspend () from /lib/libc.so.6
  5 Thread 0x7fc625928710 (LWP 21555)  0x00007fc62796fe24 in sigsuspend ()
   from /lib/libc.so.6
  4 Thread 0x7fc625727710 (LWP 21556)  0x00007fc627ccd93d in read ()
   from /lib/libpthread.so.0
  3 Thread 0x7fc61d526710 (LWP 21557)  0x00007fc62796fe24 in sigsuspend ()
   from /lib/libc.so.6
  2 Thread 0x7fc625526710 (LWP 21558)  0x00007fc62796fe24 in sigsuspend ()
   from /lib/libc.so.6
* 1 Thread 0x7fc62876a780 (LWP 21553)  0x00007fc62796fe24 in sigsuspend ()
   from /lib/libc.so.6

Thread 5 (Thread 0x7fc625928710 (LWP 21555)):
#0  0x00007fc62796fe24 in sigsuspend () from /lib/libc.so.6
#1  0x00000000005318c1 in suspend_handler (sig=, 
    siginfo=, context=0x7fc625927900) at sgen-gc.c:4620
#2  
#3  0x00007fc627cccb4e in sem_wait () from /lib/libpthread.so.0
#4  0x00000000005d68e8 in mono_sem_wait (sem=0x8e8920, alertable=0)
    at mono-semaphore.c:102
#5  0x000000000057837d in finalizer_thread (unused=)
    at gc.c:1048
#6  0x00000000005b291f in start_wrapper (data=)
    at threads.c:747
#7  0x00000000005ce724 in thread_start_routine (args=0x294b6d0)
    at wthreads.c:285
#8  0x00000000005345bd in gc_start_thread (arg=0x2972df0) at sgen-gc.c:5351
#9  0x00007fc627cc59ca in start_thread () from /lib/libpthread.so.0
#10 0x00007fc627a226fd in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fc625727710 (LWP 21556)):
#0  0x00007fc627ccd93d in read () from /lib/libpthread.so.0
#1  0x000000000048b6a7 in read (signal=, 
    ctx=) at /usr/include/bits/unistd.h:45
#2  mono_handle_native_sigsegv (signal=, 
    ctx=) at mini-exceptions.c:1935
#3  0x00000000004de2ef in mono_arch_handle_altstack_exception (
    sigctx=0x7fc6257263c0, fault_addr=, stack_ovf=0)
    at exceptions-amd64.c:926
#4  
#5  conservatively_pin_objects_from (start=0x7fff207cb000, end=0x7fff207ce000, 
    start_nursery=0x7fc627400000, end_nursery=0x7fc627800000, 
    pin_type=) at sgen-gc.c:1815
#6  0x00000000005327b6 in scan_thread_data (start_nursery=0x7fc627400000, 
    end_nursery=0x7fc627800000, precise=0) at sgen-gc.c:4767
#7  0x0000000000532862 in pin_from_roots (start_nursery=0x7fc627400000, 
    end_nursery=0x7fc627800000) at sgen-gc.c:1898
#8  0x000000000053989a in collect_nursery (
    requested_size=) at sgen-gc.c:2617
#9  0x000000000053b47b in minor_collect_or_expand_inner (size=4096)
    at sgen-gc.c:2984
#10 0x000000000053ba03 in mono_gc_alloc_obj_nolock (vtable=0x29e8b78, size=32)
    at sgen-gc.c:3312
#11 0x000000000053bcde in mono_gc_alloc_obj (vtable=0x29e8b78, size=32)
    at sgen-gc.c:3414
#12 0x00000000406bd2ad in ?? ()
#13 0x00000000029ebbb0 in ?? ()
#14 0x00000000005b8810 in mono_monitor_enter (obj=0x7fff207c9eb8)
    at monitor.c:673
#15 0x00000000406b4c4a in ?? ()
#16 0x00000000029e0460 in ?? ()
#17 0x00007fc625726ad0 in ?? ()
#18 0x00007fc6257269a0 in ?? ()
#19 0x00000000028f8fe0 in ?? ()
#20 0x00007fc6277fe020 in ?? ()
#21 0x0000000000000020 in ?? ()
#22 0x00000000029e8b78 in ?? ()
#23 0x00000000406b1a18 in ?? ()
#24 0x00007fc627408db0 in ?? ()
#25 0x0000000026c71a81 in ?? ()
#26 0x0000000000000002 in ?? ()
#27 0x00000000406be9d0 in ?? ()
#28 0x0000000200000000 in ?? ()
#29 0x00007fc627408db0 in ?? ()
#30 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fc61d526710 (LWP 21557)):
#0  0x00007fc62796fe24 in sigsuspend () from /lib/libc.so.6
#1  0x00000000005318c1 in suspend_handler (sig=, 
    siginfo=, context=0x7fc61d525400) at sgen-gc.c:4620
#2  
#3  0x00000000005ca911 in _wapi_handle_type (handle=0x40e)
    at ../../mono/io-layer/handles-private.h:116
#4  _wapi_handle_ref (handle=0x40e) at handles.c:1035
#5  0x00000000005c2755 in _wapi_handle_lock_handle (
    handle=, timeout=, 
    alertable=)
    at ../../mono/io-layer/handles-private.h:260
#6  WaitForSingleObjectEx (handle=, 
    timeout=, alertable=)
    at wait.c:147
#7  0x00000000005b85f7 in mono_monitor_try_enter_internal (obj=0x7fc627408db0, 
    ms=4294967295, allow_interruption=0) at monitor.c:608
#8  0x00000000005b8810 in mono_monitor_enter (obj=0x1abc63) at monitor.c:673
#9  0x00000000406b4c4a in ?? ()
#10 0x00000000029e0400 in ?? ()
#11 0x00000000406bf0ac in ?? ()
#12 0x00007fc6277fe580 in ?? ()
#13 0x0000000200000000 in ?? ()
#14 0x00000000029e0460 in ?? ()
#15 0x00007fc61d525ad0 in ?? ()
#16 0x00007fc61d5259c0 in ?? ()
#17 0x00000000028f8fe0 in ?? ()
#18 0x00007fc627408db0 in ?? ()
#19 0x0000000024e522a4 in ?? ()
#20 0x0000000000000002 in ?? ()
#21 0x00000000406be938 in ?? ()
#22 0x0000000200000000 in ?? ()
#23 0x00007fc627408db0 in ?? ()
#24 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fc625526710 (LWP 21558)):
#0  0x00007fc62796fe24 in sigsuspend () from /lib/libc.so.6
#1  0x00000000005318c1 in suspend_handler (sig=, 
    siginfo=, context=0x7fc6255254c0) at sgen-gc.c:4620
#2  
#3  0x00007fc627cc9a4a in pthread_mutex_unlock () from /lib/libpthread.so.0
#4  0x00000000005b2ce9 in mono_thread_clr_state (thread=0x7fc627409680, 
    state=) at threads.c:4242
#5  0x00000000005b860d in mono_monitor_try_enter_internal (obj=0x7fc627408db0, 
    ms=4294967295, allow_interruption=0) at monitor.c:610
#6  0x00000000005b8810 in mono_monitor_enter (obj=0x7fc620004a78)
    at monitor.c:673
#7  0x00000000406b4c4a in ?? ()
#8  0x00000000029b4b50 in ?? ()
#9  0x00000000406bf0ac in ?? ()
#10 0x00007fc6277ff220 in ?? ()
#11 0x0000000200000000 in ?? ()
#12 0x00000000029e0460 in ?? ()
#13 0x00007fc625525ad0 in ?? ()
#14 0x00007fc6255259c0 in ?? ()
#15 0x00000000028f8fe0 in ?? ()
#16 0x00007fc627408db0 in ?? ()
#17 0x0000000023032ac7 in ?? ()
#18 0x0000000000000002 in ?? ()
#19 0x00000000406be938 in ?? ()
#20 0x0000000200000000 in ?? ()
#21 0x00007fc627408db0 in ?? ()
#22 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fc62876a780 (LWP 21553)):
#0  0x00007fc62796fe24 in sigsuspend () from /lib/libc.so.6
#1  0x00000000005318c1 in suspend_handler (sig=, 
    siginfo=, context=0x7fff207c9ac0) at sgen-gc.c:4620
#2  
#3  0x00007fc627cca85a in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#4  0x00000000005cbe8c in _wapi_handle_timedwait_signal_handle (handle=0x409, 
    timeout=0x0, alertable=1, poll=-1) at handles.c:1632
#5  0x00000000005c2825 in WaitForSingleObjectEx (handle=, 
    timeout=, alertable=)
    at wait.c:203
#6  0x00000000005b3b61 in ves_icall_System_Threading_Thread_Join_internal (
    this=0x7fc627409170, ms=-1, thread=0x409) at threads.c:1532
#7  0x00000000406be550 in ?? ()
#8  0x00000000028f8a70 in ?? ()
#9  0x0000000000000003 in ?? ()
#10 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.
=================================================================



Expected Results:  
blue + blue -> blue
blue + red -> yellow
blue + yellow -> red
red + blue -> yellow
red + red -> red
red + yellow -> blue
yellow + blue -> red
yellow + red -> blue
yellow + yellow -> yellow

 blue red yellow
3992978 zero
3999995 zero
4007027 zero
 one two zero zero zero zero zero zero

 blue red yellow red yellow blue red yellow red blue
1199771 zero
1200181 zero
1200089 zero
1200148 zero
1200185 zero
1199992 zero
1199805 zero
1200070 zero
1199969 zero
1199790 zero
 one two zero zero zero zero zero zero

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