Recently, I migrated a long-running suite of applications from CodeWarrior to Xcode so as to create universal binaries. The applications are 32-bit Carbon applications. The Intel-native versions perform as expected, including on Snow Leopard. However, the PowerPC version crashes immediately.
EXECUTIVE SUMMARY: I suspect that this error is related to something that's not set up right in my Xcode build and I'd like some help with that.
CRASH ANALYSIS: I can provide the entire crash log if desired. However, what appears to be pertinent here is the following:
Command: GP3-Master TailorPath: /Applications/Grady Profile/GP3-Master Tailor.app/Contents/MacOS/GP3-Master TailorParent: WindowServer [67] Version: GP3-Master Tailor v3.7 (3.7) PID: 338Thread: 0 Exception: EXC_BAD_ACCESS (0x0001)Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x010acab7 Thread 0 Crashed:0 com.apple.QD 0x9174e4fc GetFNum + 241 com.aurbach.gp3.masterTailor 0x000b8b90 UTextTraits::LoadTextTraits(short) + 682 com.aurbach.gp3.masterTailor 0x000a96d4 LTextEditView::InitTextEditView(short) + 1203 com.aurbach.gp3.masterTailor 0x000a9260 LTextEditView::LTextEditView[unified](LStream*) + 3404 com.aurbach.gp3.masterTailor 0x000d33cc ADisplayText::ADisplayText[unified](LStream*) + 885 com.aurbach.gp3.masterTailor 0x000040b8 TRegistrar<ADisplayText>::CreateFromStream(LStream*) + 406 com.aurbach.gp3.masterTailor 0x000b8098 URegistrar::CreateObject(unsigned long, LStream*) + 1127 com.aurbach.gp3.masterTailor 0x000b78b8 UReanimator::ObjectsFromStream(LStream*) + 3728 com.aurbach.gp3.masterTailor 0x000b7918 UReanimator::ObjectsFromStream(LStream*) + 4689 com.aurbach.gp3.masterTailor 0x000b7918 UReanimator::ObjectsFromStream(LStream*) + 46810 com.aurbach.gp3.masterTailor 0x000b76f0 UReanimator::ReadObjects(unsigned long, short) + 10411 com.aurbach.gp3.masterTailor 0x000b2970 LWindow* UReanimator::ReanimateObjects<LWindow>(unsigned long, short) + 1612 com.aurbach.gp3.masterTailor 0x000af3f0 LWindow::CreateWindow(short, LCommander*) + 6413 com.aurbach.gp3.masterTailor 0x001741a8 StInfoWindow::StInfoWindow[unified](short, short, LCommander*) + 7614 com.aurbach.gp3.masterTailor 0x001761c4 StSplashScreen::StSplashScreen[unified](short, short, LCommander*) + 3215 com.aurbach.gp3.masterTailor 0x000093e8 GPM_Application::PrepareToRun() + 37216 com.aurbach.gp3.masterTailor 0x000d2fb8 LDFDocApplication::Initialize() + 10017 com.aurbach.gp3.masterTailor 0x00071bdc LApplication::Run() + 7618 com.aurbach.gp3.masterTailor 0x00002eac main + 42019 com.aurbach.gp3.masterTailor 0x00002688 _start + 76020 com.aurbach.gp3.masterTailor 0x0000238c start + 48 Thread 0 crashed with PPC Thread State 64: srr0: 0x000000009174e4fc srr1: 0x000000000200f030 vrsave: 0x0000000000000000 cr: 0x24004488 xer: 0x0000000000000001 lr: 0x000000009174e4fc ctr: 0x000000009012ad5c r0: 0x000000009174e4fc r1: 0x00000000bfffef60 r2: 0x0000000000000000 r3: 0x0000000000000015 r4: 0x0000000000000000 r5: 0x00000000a0293128 r6: 0x0000000000000009 r7: 0x0000000000000001 r8: 0x0000000000000001 r9: 0x0000000000000001 r10: 0x0000000000000015 r11: 0x00000000a0b8af6c r12: 0x000000009012ad5c r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000000000 r19: 0x0000000000000000 r20: 0x0000000000450000 r21: 0x0000000000450000 r22: 0x0000000000450000 r23: 0x000000000144d318 r24: 0x0000000001449128 r25: 0x0000000001449164 r26: 0x0000000000000000 r27: 0x0000000000000001 r28: 0x000000000051336c r29: 0x0000000001533200 r30: 0x00000000010acab7 r31: 0x00000000000013ec
The font name passed to GetFNum is (pascal string) "Helvetica".
Note that this CAN'T be fundamentally an API problem, even though the API is deprecated. The crash occurs on a G4 PowerPC running 10.4.11, but SUCCEEDS on an Intel-based iMac running 10.6.6.
So my suspicion is that there is something I'm doing wrong in the Xcode build.
Xcode SETUP: The Xcode project is set up as a standard universal application, with the following custom settings under Xcode 3.2.3 (running on OS X 10.6.6): Architectures 32-bit Universal Base SDK (PowerPC) Mac OS X 10.4 C/C++ Compiler Version GCC 4.0 Mac OS X Deployment Target Mac OS X 10.4
I suspect that I've missed something important here, but I have no idea what that might be.
Can anyone help? I'd be happy to send more information if it is needed; please just let me know what you want to see.
Cheers,
Rick Aurbach, Ph.D. President and Chief Engineer Aurbach & Associates, Inc. 8233 Tulane Avenue, Suite B St. Louis, MO 63132
Fax: 314/678-0869 Phone: 800/774-7239 314/726-1321
"Elitism is the slur directed at merit by mediocrity." - Sydney J. Harris, journalist (1917-1986)
"Life is easy to chronicle, but bewildering to practice." - E.M. Forster (1879-1970)
"Cowardice asks the question, 'Is it safe?' Expediency asks the question, 'Is it politic?' Vanity asks the question, 'Is it popular?' But, conscience asks the question, 'Is it right?' And there comes a time when one must take a position that is neither safe, nor politic, nor popular but one must take it because one's conscience tells one that it is right." -Martin Luther King, Jr. (1929-1968)
"The saddest aspect of life right now is that science gathers knowledge faster than society gathers wisdom." -Isaac Asimov (1920-1992) "If in the last few years you haven't discarded a major opinion or acquired a new one, check your pulse. You may be dead." - Gelett Burgess (1866-1951)
"You can judge your age by the amount of pain you feel when you come in contact with a new idea." - John Nuveen (1896-1968)
“The scientific theory I like best is that the rings of Saturn are composed entirely of lost airline luggage.” - Mark Russell (1932- )
|