Re: Crash on Throw
Re: Crash on Throw
- Subject: Re: Crash on Throw
- From: Eric Slosser <email@hidden>
- Date: Fri, 17 Oct 2008 10:17:12 -0400
Doesn't throwing a pointer require that RTTI be turned on?
On Oct 16, 2008, at 4:28 PM, David Dunham wrote:
I ran the script to uninstall Xcode, then re-installed 2.5.
I still get a crash on this line of C++ in my FileInputStream
constructor.
throw new Exception(String("Error Opening ") + strFileName);
The stack trace is
#0 0x94c75588 in __cxa_get_globals
#1 0x94c757d4 in __gxx_personality_v0
#2 0x0012bf54 in _Unwind_RaiseException_Phase2 at ProfessorHouse.cpp:
99
#3 0x0012c2b4 in _Unwind_Resume at ProfessorHouse.cpp:99
#4 0x00025eb0 in io::FileInputStream::FileInputStream at io.cpp:60
Transcript for building that file is
CompileC /Volumes/brie/MysteryQuest.build/Debug/MysteryQuest.build/
Objects-normal/ppc/io.o /Users/david/GameHouse/MysteryQuest/../
system/io.cpp normal ppc c++ com.apple.compilers.gcc.3_3
cd /Users/david/GameHouse/MysteryQuest
setenv MACOSX_DEPLOYMENT_TARGET 10.3
setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
/usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -fno-asm -Wno-trigraphs -
fno-rtti -fpascal-strings -fasm-blocks -gfull -O0 -Wreturn-type -
Wparentheses -Wunused-parameter -Wunused-variable -Wunused-value -
D_DEBUG -DUNPROTECTED_BUILD -fmessage-length=0 -mtune=G4 -Wno-
deprecated-declarations -Wp,-header-mapfile,/Volumes/brie/
MysteryQuest.build/Debug/MysteryQuest.build/MysteryQuest-D.hmap -
mdynamic-no-pic -F/Users/david/GameHouse/MysteryQuest/build/Debug -I/
Users/david/GameHouse/MysteryQuest/build/Debug/include -I../image -
I../libpng -I../lua/src -I../lua -I../pi -I../sprite -I../system -
I../trialkeys -I../zlib -I.. -I- -I../mac/PowerPlant -I. -I/Volumes/
brie/MysteryQuest.build/Debug/MysteryQuest.build/DerivedSources -
DMAC_OS_X_VERSION_MIN_REQUIRED=1030 -fconstant-cfstrings -
D__CONSTANT_CFSTRINGS__ -isystem /Developer/SDKs/MacOSX10.3.9.sdk/
usr/include/gcc/darwin/3.3 -I/Developer/SDKs/MacOSX10.3.9.sdk/usr/
include/gcc/darwin/3.3/c++ -I/Developer/SDKs/MacOSX10.3.9.sdk/usr/
include/gcc/darwin/3.3/c++/ppc-darwin -isystem /Developer/SDKs/
MacOSX10.3.9.sdk/usr/include -include /Library/Caches/
com.apple.Xcode.501/SharedPrecompiledHeaders/MysteryQuestPrefix-
cvplpbjmklmsxchlhonxaambzkqz/MysteryQuestPrefix.h -c /Users/david/
GameHouse/MysteryQuest/../system/io.cpp -o /Volumes/brie/
MysteryQuest.build/Debug/MysteryQuest.build/Objects-normal/ppc/io.o
and the link
Ld /Users/david/GameHouse/MysteryQuest/build/Debug/MysteryQuest-
D.app/Contents/MacOS/MysteryQuest-D normal ppc
cd /Users/david/GameHouse/MysteryQuest
setenv MACOSX_DEPLOYMENT_TARGET 10.3
setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
/usr/bin/g++-3.3 -o /Users/david/GameHouse/MysteryQuest/build/
Debug/MysteryQuest-D.app/Contents/MacOS/MysteryQuest-D -L/Users/
david/GameHouse/MysteryQuest/build/Debug -L/Users/david/GameHouse/
MysteryQuest/../mac/fmodsrc374mac/build/Release -L/Users/david/
GameHouse/MysteryQuest/../image/build/Release -L/Users/david/
GameHouse/MysteryQuest/../libpng/build/Release -L/Users/david/
GameHouse/MysteryQuest/../lua/build/Release -L/Users/david/GameHouse/
MysteryQuest/../zlib/build/Release -L/Developer/SDKs/
MacOSX10.3.9.sdk/usr/lib/gcc/darwin/3.3 -F/Users/david/GameHouse/
MysteryQuest/build/Debug -filelist /Volumes/brie/MysteryQuest.build/
Debug/MysteryQuest.build/Objects-normal/ppc/MysteryQuest-
D.LinkFileList -framework Carbon -framework SystemConfiguration /
Users/david/GameHouse/image/build/Debug/libimage.a /Users/david/
GameHouse/zlib/build/Debug/libzlib.a /Users/david/GameHouse/mac/
fmodsrc374mac/build/Debug/libfmod.a /Users/david/GameHouse/lua/build/
Debug/libLua.a /Users/david/GameHouse/libpng/build/Debug/libpng.a -
framework AGL -framework OpenGL -arch ppc -Wl,-Y,1455 -mmacosx-
version-min=10.3 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.3.9.sdk
Running on G5 with 10.4.11.
I've had this problem for over 6 months (I've had to use another
machine for development). On a machine that has worked fine for years.
David Dunham
Voice/Fax: 206 783 7404 http://www.pensee.com/dunham/
Imagination is more important than knowledge. -- Albert Einstein
_______________________________________________
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
_______________________________________________
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