• 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
Could really use some advise on how get a breakpoint on a segmentation fault
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Could really use some advise on how get a breakpoint on a segmentation fault


  • Subject: Could really use some advise on how get a breakpoint on a segmentation fault
  • From: David Hoerl <email@hidden>
  • Date: Fri, 23 Mar 2012 15:59:26 -0400

I have an app that makes much use of mmap. It runs fine in the simulator and on an iPhone 4. However, it crashes deep in iOS on an iPad 1 and iPhone 3GS. The app just crashes - I see the desktop - but it never ever stops in lldb.

I went so far as to incorporate some code to count the amount of free memory to see if I was getting close to using it all up, but I'm not (well I was, but not now).


Xcode 4.3.1, connected to a iPhone 3GS, lldb, (debug or release, no difference), breakpoints on, breakpoint on all exceptions.


The thing runs along processing some images, then boom, this is what I see in the "Device Log" (but not in the Xcode console):

Mar 23 15:49:48 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilephone[0x5d5e]) Exited: Killed: 9 Mar 23 15:49:48 unknown SpringBoard[27] <Warning>: Application 'Phone' exited abnormally with signal 9: Killed: 9
>
Mar 23 15:49:51 unknown MobilePhone[368] <Warning>: UI Mode is Phone
Mar 23 15:49:52 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilephone[0xb1f4]) Exited: Killed: 9
>
Mar 23 15:49:53 unknown SpringBoard[27] <Warning>: Application 'Phone' exited abnormally with signal 9: Killed: 9 Mar 23 15:49:53 unknown com.apple.debugserver-50[363] <Warning>: 1 [016b/1503]: error: ::read ( 4, 0x2ff389f0, 1024 ) => -1 err = Bad file descriptor (0x00000009) Mar 23 15:49:53 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:company.dfh.PhotoScrollerNetworkTurbo[0x2d6a]) Bug: launchd_core_logic.c:3794 (24506):3 Mar 23 15:49:53 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:company.dfh.PhotoScrollerNetworkTurbo[0x2d6a]) Bug: launchd_core_logic.c:3202 (24506):10 Mar 23 15:49:53 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:company.dfh.PhotoScrollerNetworkTurbo[0x2d6a]) Working around 5020256. Assuming the job crashed. Mar 23 15:49:53 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:company.dfh.PhotoScrollerNetworkTurbo[0x2d6a]) Job appears to have crashed: Segmentation fault: 11 Mar 23 15:49:53 unknown SpringBoard[27] <Warning>: Application 'PhotoScrollerNetworkTurbo' exited abnormally with signal 11: Segmentation fault: 11
Mar 23 15:49:54 unknown MobilePhone[370] <Warning>: UI Mode is Phone


I aways see the "com.apple.mobilephone" as the crash unfolds.

Then "read ( 4, 0x2ff389f0, 1024 ) => -1 err = Bad file descriptor (0x00000009)"

Then "Segmentation fault: 11"


I created rdar://11073206 on this problem along with a project that makes it happen on the 3GS.

If anyone has any suggestions for what I can do to get a breakpoint to trigger, that would be most welcome.

David

_______________________________________________
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

  • Prev by Date: Re: Is there a plug-in interface for Xcode 4?
  • Next by Date: Re: Is there a plug-in interface for Xcode 4?
  • Previous by thread: Re: Console
  • Next by thread: Instruments question.
  • Index(es):
    • Date
    • Thread