Build for 10.3 crashes on 10.4
Build for 10.3 crashes on 10.4
- Subject: Build for 10.3 crashes on 10.4
- From: Rippit the Ogg Frog <email@hidden>
- Date: Thu, 16 Nov 2006 03:23:16 -0800
I'm trying to isolate a very bizarre bug in my application, and wonder
if you can give me some clues.
I have two targets in my XCode project, one for deployment on 10.4 that
creates a Universal Binary, and a PowerPC one for 10.3. The 10.3 target
is built with the 10.3.9 SDK. I get the same results with XCode 2.3 and
2.4.
My 10.4 app works great whether I run the i386 code on my MacBook Pro or
run the PowerPC code under Rosetta, but the build for 10.3, when run
under Rosetta on 10.4.8 or 10.4.5, gets a 100% repeatible memory corruption.
Because one can't easily use a debugger to debug Rosetta-emulated code,
I narrowed down the point where the memory corruption occurs using
fprintf to stderr (because stderr isn't buffered). Absolutely every
time, things are fine just before one line of my code, and all screwed
up afterwards.
I checked this out very carefully, and can't see how that line of code
could be at fault. The line is a simple assignment to a pointer member
of an object. This could corrupt memory if the "this" pointer were bad,
but that's not the case.
And my code works right when built for 10.4! It's just the 10.3 build
that's bad.
I am suspecting I found a bug in Rosetta, but I'm not certain of it. I
don't have a PowerPC machine to test with, but I will this weekend.
My question for you is, what is different about building for 10.3
deployment that could affect my app?
To my knowledge, I'm not using any features in 10.4 that aren't present
in 10.3. The corruption happens very early in the life of my program,
before it's had a chance to do much.
I will try to make a simple test case, but if that doesn't work my app
is a GPL Free Software application, so I could supply the source to the
whole thing if anyone wants to look at it.
Thanks for your help,
Rippit the Ogg Frog
email@hidden
http://www.oggfrog.com/
_______________________________________________
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