[MonoTouch] Crashing with 1.1, works with 1.03

Ed Anuff ed at anuff.com
Sat Oct 3 19:20:30 EDT 2009


I'm having a crash with MonoTouch 1.1 that wasn't happening with 1.03.
 No changes in my code other that to recompile with 1.1, and if I
reinstall 1.03, my app works again without any problems.  I'm at a
loss on how to debug it.  I've run the app multiple times, from within
MonoTouch and XCode, and every time I get the same stacktrace except
for one time, where it crashed in a different place.  I've attached
the stracktraces, I'm hoping someone can give me some pointers on how
to figure out what the problem is.

Thanks

Ed



-----First run-----

Stacktrace:

  at (wrapper managed-to-native)
MonoTouch.UIKit.UIApplication.UIApplicationMain
(int,string[],intptr,intptr) <0x00004>
  at (wrapper managed-to-native)
MonoTouch.UIKit.UIApplication.UIApplicationMain
(int,string[],intptr,intptr) <0xffffffff>
  at MonoTouch.UIKit.UIApplication.Main (string[],string,string) <0x00089>
  at MonoTouch.UIKit.UIApplication.Main (string[]) <0x00014>
  at TouchClient.Application.Main (string[]) <0x00010>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

* Assertion at ../../../../mono/metadata/threadpool.c:297, condition
`domain' not met

-----Second run-----

Stacktrace:


Native stacktrace:

	0   TouchClient                           0x0009319a
mono_handle_native_sigsegv + 266
	1   TouchClient                           0x00006a5a
mono_sigsegv_signal_handler + 298
	2   libSystem.B.dylib                   0x9695fb9b _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   TouchClient                           0x0018603d mono_async_invoke + 173
	5   TouchClient                           0x00188321
async_invoke_io_thread + 881
	6   TouchClient                           0x0018fd76 start_wrapper + 326
	7   TouchClient                           0x001c4406 thread_start_routine + 166
	8   TouchClient                           0x001eea48 GC_start_routine + 107
	9   libSystem.B.dylib                   0x96926f39 _pthread_start + 345
	10  libSystem.B.dylib                   0x96926dbe thread_start + 34

Debug info from gdb:

TouchClient(1540,0xb0870000) malloc: *** error for object 0x8d031f4:
incorrect checksum for freed object - object was probably modified
after being freed.
TouchClient(1540,0xb0870000) malloc: *** set a breakpoint in
malloc_error_break to debug
warning: Trying to remove a section from the ordered section list that
did not exist at 0x2d5000.
warning: Could not find object file
"/var/folders/dM/dM7wqzvNEcW9Hwy8Gh3cDE+++TI/-Tmp-/tmp158baf51.tmp/main.o"
- no debug information available for
"/var/folders/dM/dM7wqzvNEcW9Hwy8Gh3cDE+++TI/-Tmp-/tmp158baf51.tmp/main.m".

-----Third run (from xcode)-----

Stacktrace:


Native stacktrace:

	0   TouchClient                           0x0009723a
mono_handle_native_sigsegv + 266
	1   TouchClient                           0x0000aafa
mono_sigsegv_signal_handler + 298
	2   libSystem.B.dylib                   0x9695fb9b _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   TouchClient                           0x0018a0b1 mono_async_invoke + 129
	5   TouchClient                           0x0018c3c1
async_invoke_io_thread + 881
	6   TouchClient                           0x00193e16 start_wrapper + 326
	7   TouchClient                           0x001c84a6 thread_start_routine + 166
	8   TouchClient                           0x001f2ae8 GC_start_routine + 107
	9   libSystem.B.dylib                   0x96926f39 _pthread_start + 345
	10  libSystem.B.dylib                   0x96926dbe thread_start + 34

Debug info from gdb:

warning: Trying to remove a section from the ordered section list that
did not exist at 0x2d5000.


More information about the MonoTouch mailing list