• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Crash when stepping but no crash if not
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash when stepping but no crash if not


  • Subject: Crash when stepping but no crash if not
  • From: Steve Cronin <email@hidden>
  • Date: Sun, 28 Jun 2009 15:28:34 -0500

Folks;

XC 3.1.3 on Intel 10.5.7

I am experiencing a crash if I step through some code but no crash if I run through the code.

The crash stack is below.
It occurs on a category method on NSString.
This has been working fine for months (maybe years...)
I access NSUserDefaults for several values to interpret the string accordingly.
In order to more efficiently access these various values, I recently added this statement:
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
.
This is the statement the debugger crashes on.
The string value for 'self' shows appropriately in the debugger on entry.


I've restarted the machine, cleared XCode cache, cleaned targets and rebuilt -> same result.

I am perplexed.
There is a XCode crash log from an hour or so ago that shows:
Application Specific Information:
objc[19570]: garbage collection is ON

However, this target is deployed to 10.4. Garbage collection is shown as 'Unsupported' in the build 'Code Generation'
What is with that?


I would appreciate any thoughts on what is the possible cause and how to proceed!
Steve
___________
#0 0x93b5fb19 in _objc_fatal
#1 0x93b63e49 in objc_exception_throw
#2 0x9577be8b in +[NSException raise:format:arguments:]
#3 0x9577beca in +[NSException raise:format:]
#4 0x91b34c4b in NSRequestConcreteImplementation
#5 0x91b597bb in -[NSString length]
#6 0x95719ab7 in CFStringGetLength
#7 0x146dcbc3 in _pbxgdb_cf_introspect_string
#8 0x00002b58 in <function called from gdb>
#9 0x93b63e17 in objc_exception_throw
#10 0x9577be8b in +[NSException raise:format:arguments:]
#11 0x9577beca in +[NSException raise:format:]
#12 0x91b34c4b in NSRequestConcreteImplementation
#13 0x91b597bb in -[NSString length]
#14 0x95719ab7 in CFStringGetLength
#15 0x146dcbc3 in _pbxgdb_cf_introspect_string
#16 0x00002b58 in <function called from gdb>
#17 0x93b63e17 in objc_exception_throw
#18 0x9577be8b in +[NSException raise:format:arguments:]
#19 0x9577beca in +[NSException raise:format:]
#20 0x91b34c4b in NSRequestConcreteImplementation
#21 0x91b597bb in -[NSString length]
#22 0x95719ab7 in CFStringGetLength
#23 0x146dcbc3 in _pbxgdb_cf_introspect_string
#24 0x00002b58 in <function called from gdb>
#25 0x93b63e17 in objc_exception_throw
#26 0x9577be8b in +[NSException raise:format:arguments:]
#27 0x9577beca in +[NSException raise:format:]
#28 0x91b34c4b in NSRequestConcreteImplementation
#29 0x91b597bb in -[NSString length]
#30 0x95719ab7 in CFStringGetLength
#31 0x146dcbc3 in _pbxgdb_cf_introspect_string
#32 0x00002b58 in <function called from gdb>
#33 0x93b63e17 in objc_exception_throw
#34 0x9577be8b in +[NSException raise:format:arguments:]
#35 0x9577beca in +[NSException raise:format:]
#36 0x91b34c4b in NSRequestConcreteImplementation
#37 0x91b597bb in -[NSString length]
#38 0x95719ab7 in CFStringGetLength
#39 0x146dcbc3 in _pbxgdb_cf_introspect_string
#40 0x00002b58 in <function called from gdb>
#41 0x93b63e17 in objc_exception_throw
#42 0x9577be8b in +[NSException raise:format:arguments:]
#43 0x9577beca in +[NSException raise:format:]
#44 0x91b34c4b in NSRequestConcreteImplementation
#45 0x91b597bb in -[NSString length]
#46 0x95719ab7 in CFStringGetLength
#47 0x146dcbc3 in _pbxgdb_cf_introspect_string
#48 0x00002b58 in <function called from gdb>
#49 0x93b63e17 in objc_exception_throw
#50 0x9577be8b in +[NSException raise:format:arguments:]
#51 0x00058a53 in -[MyTool analyzeString:] at MyTool.m:1559


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Crash when stepping but no crash if not
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Objective C Compiler Settings
  • Next by Date: Re: Crash when stepping but no crash if not
  • Previous by thread: Objective C Compiler Settings
  • Next by thread: Re: Crash when stepping but no crash if not
  • Index(es):
    • Date
    • Thread