Greetings,

I have an application running since 2009 on Windows Mobile and the piece of
code that controls threads is exactly the same in iOS, running in production
enterprise environment for 17 months, with more than 1000 users.

The thing is, since today, without any update, the above code do not run
anymore but just debugging, on simulator and device. If I tap the app icon
to run it manually, it executes all fine:

threadSync.Join();


MonoDevelop returns:

Thread started: threadSyncControl
Iniciando SyncThread (my Console.Write message)
Thread started: threadSync
-1  (** I don't know what this counting is, maybe something internal of Mono
that gives some idea)
0
10
16
18
20
22
25
28
31
48
58
69
79
86
98
115
127
139
147
155
164
171
183
190
207
215
222
231
239
246
253
265
287
299
316
328
335
377
415
450
457
513
523
536
543
555
601
614
624
631
641
658
676
686
691
700
705
717
741
749
756
798
852
894
927
944
962
972
977
984
992
1002
1015
1022
1034
1075
1085
1098
1105
1117
1153
1166
1176
1183
1193
1205
1210
1217
1224
1225
1237
1249
1277
1305
1314
1326
1344
1349
1356
1363
1364
1376
1388
1402
1409
1440
1447
1538
1551
1558
1570
1659
1672
1679
1689
1701
1710
1715
1737
1800
1807
1898
1911
1918
1930
2019
2032
2039
2049
2061
2073
2085
2099
2104
2117
2130
2133
2147
2159
2171
2180
2185
2234
2274
2293
2300
2308
2318
2331
2338
2350
2441
2451
2464
2471
2483
2574
2584
2597
2604
2614
2626
2631
2638
2645
2646
2651
2658
2665
2666
2695
2702
2728
2741
2748
2760
2806
2819
2826
2836
2849
2861
2900
2907
2915
2925
2938
2945
2957
2983
2996
3003
3015
3100
3113
3120
3130
3160
3167
3175
3185
3198
3205
3217
3243
3256
3263
3275
3360
3373
3380
3390
3405
3418
3421
3435
3452
3462
3471
3476
3525
3547
3569
3572
3577
3580
3670
3773
3792
3799
3855
3863
3876
3883
3895
3978
3991
3998
4010
4093
4106
4113
4123
4135
4142
4149
4159
4168
4173
4222
4254
4425
4430
4462
4633
4638
4809
4828
4835
4843
4853
4866
4873
4885
4968
4981
4988
5000
5083
5096
5103
5113
5125
5132
5142
5149
5158
5171
5184
5187
5201
5223
5228
5270
5319
5358
5377
5389
5396
5403
5420
5432
5444
5472
5500
5524
5552
5560
5565
5572
5579
5580
5590
5596
5602
5615
5621
5627
5633
5638
5643
5650
5657
5658
16777215
Unable to insert breakpoint at MyApp.FormMain:SyncThread ():2950,
seq_points=316

Stacktrace:

  at System.Threading.Thread.StartInternal () [0x0001d] in
/Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading/Thread.cs
:696
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__
(object,intptr,intptr,intptr) <IL 0x0004e, 0xffffffff>

Native stacktrace:

0   MyApp                             0x0009094c mono_handle_native_sigsegv
+ 284
1   MyApp                             0x000d5e5d sigabrt_signal_handler +
109
2   libsystem_c.dylib                   0x9085a59b _sigtramp + 43
3   ???                                 0xffffffff 0x0 + 4294967295
4   libsystem_c.dylib                   0x907f5bdd abort + 167
5   MyApp                             0x001e862d monoeg_g_logv + 157
6   MyApp                             0x001e8689 monoeg_g_log + 41
7   MyApp                             0x000b1dbb insert_breakpoint + 363
8   MyApp                             0x000b8606 jit_end + 614
9   MyApp                             0x001757f1
mono_profiler_method_end_jit + 97
10  MyApp                             0x0000e987
mono_jit_compile_method_with_opt + 2455
11  MyApp                             0x00009d19 mono_jit_compile_method +
41
12  MyApp                             0x00091ba1 mono_delegate_trampoline +
545
13  ???                                 0x09964774 0x0 + 160843636
14  ???                                 0x099efa90 0x0 + 161413776
15  MyApp                             0x0000a042 mono_jit_runtime_invoke +
722
16  MyApp                             0x00169f4e mono_runtime_invoke + 126
17  MyApp                             0x0016a08c
mono_runtime_delegate_invoke + 92
18  MyApp                             0x001a5762 start_wrapper + 466
19  MyApp                             0x001d76ea thread_start_routine + 154
20  MyApp                             0x001feadd GC_start_routine + 93
21  libsystem_c.dylib                   0x90802ed9 _pthread_start + 335
22  libsystem_c.dylib                   0x908066de thread_start + 34

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

No errors running manually without debug.. And most weird, in another
ViewController there is the same kind of threads making the same kind of
things but making another things, but thread structure and control are
exactly the same and run fine debugging or not.

Some idea?

Thanks,

Karl


_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to