I have problems, too, with different behaviour in gdb to running the app
from command line. But my problem is becoming really serious. I can't
debug
at all because gdb stops with a SIGSEGV fault just after starting the
application.
It happens when the objc runtime loads all the classes into its class
tree.
The error occurs in sarray_free()
429 #else /* OBJC_SPARSE2 */
- 430 struct sbucket* bkt = array->buckets[counter];
- 431 if ((bkt != array->empty_bucket) &&
432 (bkt->version.version == array->version.version))
// btk->version.version => Access violation
433 {
- 434 sarray_free_garbage(bkt);
- 435 nbuckets -= 1;
- 436 }
437 #endif
As you already mentioned even a small change let the problem - well,
unfortunately not disappear, but occur when loading another module.
Is there a bug in libobjc?