[Mono-dev] windows.forms crash under osX using darwinports

2006-01-03 Thread Daniel Oberhoff

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I just tried this simple example:

using System;
using System.Windows.Forms;

public class test {
public static void Main() {
MessageBox.Show("Hello World");
}
}

I got mono with all libs from darwinports. After fixing the dllmap  
in /opt/local/etc/mono/config I got it to run, but it crashes
somewhere in memory management :(. I append a fairly detailed  
Crashreport from the osX CrashReporter below.


Daniel

0   libSystem.B.dylib   0x90009280 szone_calloc + 936
1   libSystem.B.dylib   0x90008e74 calloc + 660
2   libglib-2.0.0.dylib 0x00633d34 g_malloc0 + 72 (icplusplus.c:28)
3   mono	0x00016e64 calculate_sizes + 60 (mini-ppc.c: 
423)
4   mono	0x0001847c mono_arch_call_opcode + 76 (mini- 
ppc.c:851)
5   mono	0x0008be5c mono_emit_method_call_full + 140  
(mini.c:2182)
6   mono	0x00093b50 mono_method_to_ir + 25932 (mini.c: 
2112)
7   mono	0x000a2208 mini_method_compile + 660 (mini.c: 
9201)
8   mono	0x000a3768 mono_jit_compile_method_with_opt  
+ 848 (mini.c:9565)
9   mono	0x000b7004 ppc_magic_trampoline + 40 (tramp- 
ppc.c:94)

10  <<>>0x01801314 0 + 25170708
11  <<>>0x03148b04 0 + 51677956
12  <<>>0x03147318 0 + 51671832
13  <<>>0x03146908 0 + 51669256
14  <<>>0x007d48b8 0 + 8210616
15  mono	0x0004ebe0 mono_runtime_class_init + 464  
(object.c:261)
16  mono	0x000a3950 mono_jit_compile_method_with_opt  
+ 1336 (mini.c:9616)
17  mono	0x000b7004 ppc_magic_trampoline + 40 (tramp- 
ppc.c:94)

18  <<>>0x01801314 0 + 25170708
19  <<>>0x028e7158 0 + 42889560
20  <<>>0x007d48b8 0 + 8210616
21  mono	0x0004ebe0 mono_runtime_class_init + 464  
(object.c:261)
22  mono	0x000a3950 mono_jit_compile_method_with_opt  
+ 1336 (mini.c:9616)
23  mono	0x000b7004 ppc_magic_trampoline + 40 (tramp- 
ppc.c:94)

24  <<>>0x01801314 0 + 25170708
25  <<>>0x028c1650 0 + 42735184
26  <<>>0x028c146c 0 + 42734700
27  <<>>0x028186e8 0 + 42043112
28  <<>>0x007d48b8 0 + 8210616
29  mono	0x0004ebe0 mono_runtime_class_init + 464  
(object.c:261)
30  mono	0x000a3950 mono_jit_compile_method_with_opt  
+ 1336 (mini.c:9616)
31  mono	0x000b7004 ppc_magic_trampoline + 40 (tramp- 
ppc.c:94)

32  <<>>0x01801314 0 + 25170708
33  <<>>0x02817bac 0 + 42040236
34  <<>>0x02817678 0 + 42038904
35  <<>>0x02816f8c 0 + 42037132
36  <<>>0x02816874 0 + 42035316
37  <<>>0x028166c0 0 + 42034880
38  <<>>0x028162b8 0 + 42033848
39  <<>>0x028159b0 0 + 42031536
40  <<>>0x007d47dc 0 + 8210396
41  <<>>0x007d46c0 0 + 8210112
42  <<>>0x007d1ce0 0 + 8199392
43  <<>>0x007d1c08 0 + 8199176
44  mono	0x0004f864 mono_runtime_exec_main + 300  
(object.c:2040)
45  mono	0x00052598 mono_runtime_run_main + 544  
(object.c:1897)

46  mono0x46c8 mono_main + 4656 (driver.c:941)
47  mono0x27fc _start + 344 (crt.c:272)
48  mono0x26a0 start + 60

Thread 1:
0   libSystem.B.dylib   0x90040258 mach_wait_until + 8
1   libSystem.B.dylib   0x90040020 nanosleep + 384
2   mono	0x000dc8a4 collection_thread + 48  
(collection.c:43)

3   libSystem.B.dylib   0x9002b200 _pthread_body + 96

Thread 2:
0   libSystem.B.dylib   0x90053f68 semaphore_timedwait_signal_trap + 8
1   libSystem.B.dylib   0x90053dc8 pthread_cond_timedwait + 672
2   mono	0x00072b34 timedwait_signal_poll_cond + 120  
(handles.c:1185)
3   mono	0x000745d4  
_wapi_handle_timedwait_signal_handle + 296 (handles.c:1249)
4   mono	0x000804cc WaitForSingleObjectEx + 428  
(wait.c:179)

5   mono0x0002bc0c finalizer_thread + 100 (gc.c:752)
6   mono0x0006f804 start_wrapper + 192 (threads.c:305)
7   mono	0x0007fc64 timed_thread_start_routine + 208  
(timed-thread.c:134)

8   libSystem.B.dylib   0x9002b200 _pthread_body + 96

Thread 0 crashed with PPC Thread State 64:
  srr0: 0x90009280 srr1:  
0x0200f930vrsave: 0x
cr: 0x8402  xer: 0x2004   lr:  
0x90008f94  ctr: 0x90008ed8
r0: 0x002c   r1: 0xbfffde70   r2:  
0x0331b3e0   r3: 0x01800038
r4: 0x   r5: 0x002c   r6:  
0x   r7: 0x0001
r8: 0xfffd   r9: 

Re: [Mono-dev] windows.forms crash under osX using darwinports

2006-01-08 Thread Paul F. Johnson
Hi,

> I got mono with all libs from darwinports. After fixing the dllmap  
> in /opt/local/etc/mono/config I got it to run, but it crashes
> somewhere in memory management :(. I append a fairly detailed  
> Crashreport from the osX CrashReporter below.

Which version of mono are you using?

TTFN

Paul
-- 
main(t,_,a) char*a;{return!0http://lists.ximian.com/mailman/listinfo/mono-devel-list