Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
Subject: mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Subject: Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
Subject: MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Subject: Re: Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
Release works Debug (still) crashes on OS X Leopard, Xcode 3.0 (Part 1)

Release works Debug (still) crashes on OS X Leopard, Xcode 3.0 (Part 1)

2007-12-03       - By Graham Reitz

 Back
This is driving me nuts.  The release build works like a champ, and  
the debug version crashes and burns.  (Same issue that I have been  
posting about).  I am also using the exact same mysql and mysql dylibs  
for both builds.

Do you guys see anything blatantly wrong below?  If you can spare a  
few minutes and look at the stuff below, to help me through this, I  
would be grateful, ugh...  I am curious if it's some little quirk with  
the debug build set up that I just haven't figured out.

Down below is the following:
1) gcc compiler switches for release mode (compiles, links, and runs  
fine)
2) gcc linker switches for release mode (compiles, links, and runs fine)
3) gcc compiler switches for debug mode (compiles, links, and crashes)
4) gcc linker switches for debug mode (compiles, links, and crashes)
5,6,7) Are in message part 2

Here is what is sent to gcc for the release builds:  (This works)

1) (Compile)
gcc-4 (See http://gcc-4.ora-code.com).0 -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-
blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -fmessage-
length=0 -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-
version-min=10.5 -gdwarf-2 (See http://arf-2.ora-code.com) -I/Users/grahamreitz/Development/Projects/
tac/build/tac.build/Release/tac.build/tac.hmap -F/Users/grahamreitz/
Development/Projects/tac/build/Release -I/Users/grahamreitz/
Development/Libraries -I/Users/grahamreitz/Development/Libraries/boost/
include/boost-1 (See http://ost-1.ora-code.com)_34_1 -I/sw/include/mysql -I/usr/local/include/mysql++ -
I/Users/grahamreitz/Development/Projects/tac/build/Release/include -I/
Users/grahamreitz/Development/Projects/tac/build/tac.build/Release/
tac.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.5.sdk -c /
Users/grahamreitz/Development/Projects/tac/main.cpp -o /Users/
grahamreitz/Development/Projects/tac/build/tac.build/Release/tac.build/
Objects-normal/i386/main.o

2) (Link)
g++-4.0 -o /Users/grahamreitz/Development/Projects/tac/build/Release/
tac -L/Users/grahamreitz/Development/Projects/tac/build/Release -L/
Users/grahamreitz/Development/Libraries/cryptopp -L/Users/grahamreitz/
Development/Libraries/boost/lib -L/Developer/SDKs/MacOSX10.5.sdk/usr/
local/lib -L/sw/lib/mysql -F/Users/grahamreitz/Development/Projects/
tac/build/Release -filelist /Users/grahamreitz/Development/Projects/
tac/build/tac.build/Release/tac.build/Objects-normal/i386/
tac.LinkFileList -arch i386 -mmacosx-version-min=10.5 -lz -
lmysqlclient_r -lmysqlpp -lboost_serialization-mt -lcryptopp -
isysroot /Developer/SDKs/MacOSX10.5.sd

Here is what is sent to gcc for the release builds:  (This compiles  
and links but crashes, see output below)

3) (Compile)
gcc-4 (See http://gcc-4.ora-code.com).0 -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-
blocks -O0 -Wreturn-type -Wunused-variable -D_GLIBCXX_DEBUG=1 -
D_GLIBCXX_DEBUG_PEDANTIC=1 -fmessage-length=0 -fvisibility-inlines-
hidden -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2 (See http://arf-2.ora-code.com) -I/Users/
grahamreitz/Development/Projects/tac/build/tac.build/Debug/tac.build/
tac.hmap -F/Users/grahamreitz/Development/Projects/tac/build/Debug -I/
Users/grahamreitz/Development/Libraries -I/Users/grahamreitz/
Development/Libraries/boost/include/boost-1 (See http://ost-1.ora-code.com)_34_1 -I/sw/include/mysql -
I/usr/local/include/mysql++ -I/Users/grahamreitz/Development/Projects/
tac/build/Debug/include -I/Users/grahamreitz/Development/Projects/tac/
build/tac.build/Debug/tac.build/DerivedSources -isysroot /Developer/
SDKs/MacOSX10.5.sdk -c /Users/grahamreitz/Development/Projects/tac/
main.cpp -o /Users/grahamreitz/Development/Projects/tac/build/
tac.build/Debug/tac.build/Objects-normal/i386/main.o

4) (Link)
g++-4.0 -o /Users/grahamreitz/Development/Projects/tac/build/Debug/tac  
-L/Users/grahamreitz/Development/Projects/tac/build/Debug -L/Users/
grahamreitz/Development/Libraries/cryptopp -L/Users/grahamreitz/
Development/Libraries/boost/lib -L/Developer/SDKs/MacOSX10.5.sdk/usr/
local/lib -L/sw/lib/mysql -F/Users/grahamreitz/Development/Projects/
tac/build/Debug -filelist /Users/grahamreitz/Development/Projects/tac/
build/tac.build/Debug/tac.build/Objects-normal/i386/tac.LinkFileList -
arch i386 -mmacosx-version-min=10.5 -lz -lmysqlclient_r -lmysqlpp -
lboost_serialization-mt -lcryptopp -isysroot /Developer/SDKs/
MacOSX10.5.sdk