• 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
Re: Xcode 2.3 breaks bundle static object destruction? fuse-cxa-atexit? Help!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 2.3 breaks bundle static object destruction? fuse-cxa-atexit? Help!


  • Subject: Re: Xcode 2.3 breaks bundle static object destruction? fuse-cxa-atexit? Help!
  • From: "James W. Walker" <email@hidden>
  • Date: Fri, 9 Jun 2006 23:36:29 -0700

On Jun 9, 2006, at 9:44 PM, Andy O'Meara wrote:

The Xcode 2.3 "GCC 4.0" release notes discuss the flag -fuse-cxa- atexit
which suggests that 2.3 definitely has changes in this area, but what is
clearly a concern is why would 2.3 cause things to break -- and only on
10.3? I tried sticking in -fuse-cxa-atexit for both my app and bundle
projects but there was no change.

I hadn't made the connection between this bug and that release note, so I was inspired to do some experimentation. I opened the test project that I built for my bug report, and in the bundle, added -fno- use-cxa-atexit in "other C flags". What do you know, now it does not crash on 10.3.9, and still is OK on 10.4.6!


In my test project, I had constructor and destructor functions (i.e., functions marked with __attribute__ ((constructor)) and __attribute__ ((destructor))), and added a couple of static objects. When compiled with -fuse-cxa-atexit (the default), they execute in this order:

static constructor 1
static constructor 2
constructor function
destructor function
static destructor 2
static destructor 1

When compiled with -fno-use-cxa-atexit, the order becomes:

static constructor 1
static constructor 2
constructor function
static destructor 2
static destructor 1
destructor function


_______________________________________________ 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: Xcode 2.3 breaks bundle static object destruction? fuse-cxa-atexit? Help!
      • From: "Andy O'Meara" <email@hidden>
References: 
 >Xcode 2.3 breaks bundle static object destruction? fuse-cxa-atexit? Help! (From: "Andy O'Meara" <email@hidden>)

  • Prev by Date: Re: Xcode 2.3 breaks bundle static object destruction? fuse-cxa-atexit? Help!
  • Next by Date: Re: no rule to process file
  • Previous by thread: Re: Xcode 2.3 breaks bundle static object destruction? fuse-cxa-atexit? Help!
  • Next by thread: Re: Xcode 2.3 breaks bundle static object destruction? fuse-cxa-atexit? Help!
  • Index(es):
    • Date
    • Thread