[Mono-bugs] [Bug 537764] New: Mono crashes on Snow Leopard

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 9 11:05:55 EDT 2009


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


           Summary: Mono crashes on Snow Leopard
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.4.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: GC
        AssignedTo: lupus at novell.com
        ReportedBy: kenny at kennyclement.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Opera/9.80 (Macintosh; Intel Mac OS X; U; en) Presto/2.2.15
Version/10.00

My app (using MonObjc) crashes 'randomly' on OS X 10.6 (Snow Leopard), where it
did not in OS X 10.5 (Leopard).

This is done using the latest Mono 2.4.2.3:
Mono JIT compiler version 2.4.2.3 (tarball Mon Aug 31 09:54:11 MDT 2009)

(I tried to compile the latest Mono myself as well, which fails on Snow
Leopard, but that's a different issue.)

When executing my App on the command line, I get this output:

thread_get_state failed
Abort trap

After which it crashes.

I debugged with gdb by attaching to the process, and breaking on the abort
function. The stacktrace can be found below.

I'm working on a small code sample to reproduce this. Will post it ASAP.

Stack trace from GDB when breaking on abort

Breakpoint 3, 0x94911c0c in abort ()
(gdb) ba
#0  0x94911c0c in abort ()
#1  0x01568ad6 in GC_abort (msg=0x159b630 "thread_get_state failed") at
misc.c:1074
#2  0x0155e8b4 in GC_push_all_stacks () at darwin_stop_world.c:105
#3  0x01569e09 in GC_default_push_other_roots () at os_dep.c:2078
#4  0x01567c15 in GC_push_roots (all=1, cold_gc_frame=0xb08a90c4 "") at
mark_rts.c:646
#5  0x01565041 in GC_mark_some (cold_gc_frame=0xb08a90c4 "") at mark.c:326
#6  0x0155cf92 in GC_stopped_mark (stop_func=0x155c38d <GC_never_stop_func>) at
alloc.c:543
#7  0x0155caed in GC_try_to_collect_inner (stop_func=0x155c38d
<GC_never_stop_func>) at alloc.c:382
#8  0x0155dd0f in GC_collect_or_expand (needed_blocks=1, ignore_off_page=0) at
alloc.c:1045
#9  0x0155dffa in GC_allocobj (sz=16, kind=1) at alloc.c:1125
#10 0x01563506 in GC_generic_malloc_inner (lb=64, k=1) at malloc.c:136
#11 0x0156365d in GC_generic_malloc (lb=64, k=1) at malloc.c:192
#12 0x01563964 in GC_malloc (lb=64) at malloc.c:297
#13 0x014e37b1 in mono_array_new_specific (vtable=0x20f2880, n=12) at
object.c:3519
#14 0x01ce89bb in ?? ()
#15 0x01fe73ec in ?? ()
#16 0x01fe72a5 in ?? ()
#17 0x01fe720e in ?? ()
#18 0x03d6b64b in ?? ()
#19 0x03d6b5d7 in ?? ()
#20 0x03d6aefb in ?? ()
#21 0x03d63590 in ?? ()
#22 0x03d7391f in ?? ()
#23 0x03d6eb23 in ?? ()
#24 0x03d62d8f in ?? ()
#25 0x03d615d5 in ?? ()
#26 0x03d6059b in ?? ()
#27 0x03d6002a in ?? ()
#28 0x03d5ff7c in ?? ()
#29 0x03d46622 in ?? ()
#30 0x03d7a05b in ?? ()
#31 0x03d79fd1 in ?? ()
#32 0x03d79e8a in ?? ()
#33 0x152a750c in ?? ()
#34 0x175e5f94 in ?? ()
#35 0x175e5bab in ?? ()
#36 0x175e5a09 in ?? ()
#37 0x153695e0 in ?? ()
#38 0x01ce8086 in ?? ()
#39 0x014e2de3 in mono_runtime_invoke_array (method=0x24d320c, obj=0x17309a10,
params=0x36ce450, exc=0xb08a9e0c) at object.c:3495
#40 0x014e38c6 in mono_message_invoke (target=0x17309a10, msg=0x172e7f00,
exc=0xb08a9e0c, out_args=0xb08a9e08) at object.c:5010
#41 0x015052bb in mono_async_invoke (ares=0x173099d8) at threadpool.c:989
#42 0x01507808 in async_invoke_thread (data=0x173099d8) at threadpool.c:1383
#43 0x0150bad0 in start_wrapper (data=0x1ddd830) at threads.c:623
#44 0x0154873c in thread_start_routine (args=0x280a838) at threads.c:286
#45 0x0156b1ce in GC_start_routine (arg=0x1c83d20) at pthread_support.c:1382
#46 0x94834fe1 in _pthread_start ()
#47 0x94834e66 in thread_start ()


Reproducible: Always

Actual Results:  
Crash

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