• 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
Weird app crash after stripping and strip idea in general
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird app crash after stripping and strip idea in general


  • Subject: Weird app crash after stripping and strip idea in general
  • From: Platon Fomichev <email@hidden>
  • Date: Thu, 25 Jun 2009 23:54:01 +0400

Good day everyone.

I have an interesting problem - I really hope someone can explain me some (basics?) on GCC on OS X behavior. First of all - I have a big C+ + application - it's actually a 'DDD' debugger. Recently I rebuilt it on 10.5 with latest XCode and GCC 4.2. To my surprise the app started crashing quite a lot. The culprit was strip command. If I do not use 'strip' or use 'strip -x' the app works correctly. I can try to debug this but it's really possible only if there is enough interest to this problem, but before the major question - so what's this - can it be possible that 'strip' can cause app crashes?

Now a more generic problem - why do I see application symbols even after complete strip? On BSD after stripping there are no symbols in executable except undefined, but on OS X there are so much symbols.. If I take into account 'DDD' it's hundreds of symbols - I will use c+ +filt tomorrow to see what are they exactly. Even if I create a small app with two classes 'A' and 'B' I still get after all possible optimizations and stripping -

00002018 S vtable for A
00002028 S vtable for B

Why are VTables visible as symbols even after strip?

Best regards,
            Platon

_______________________________________________
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: XCode 3.1.2 Crashing Regularly
  • Next by Date: Unable to load platform at path /Developer/Platforms/iPhoneOS.platform
  • Previous by thread: Re: XCode 3.1.2 Crashing Regularly
  • Next by thread: Unable to load platform at path /Developer/Platforms/iPhoneOS.platform
  • Index(es):
    • Date
    • Thread