• 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
_GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC nuttiness causing debug build crashes...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

_GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC nuttiness causing debug build crashes...


  • Subject: _GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC nuttiness causing debug build crashes...
  • From: Graham Reitz <email@hidden>
  • Date: Tue, 4 Dec 2007 22:56:36 -0600

I have been having an issue where a C++ command line tool crashed in debug mode on a STL iterator call (the terminal output is below). Yet, the release build ran fine.

After painstakingly going through each compiler option I found the culprit. If the _GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC are defined, they are by default in the debug build, the program crashes.

Changing it from =1 to =0 didn't make a difference. They had to be completely removed to get the debug build to run without crashing.

Has anyone else seen this before, provide a possible explanation, or point me in the right direction in order to understand what is causing the crash with those defined?

Terminal Output of debug build crash:

graham-reitzs-macbook-pro:Debug grahamreitz$ ./tac
Attempting to connect to the database...connected to the database
Query created: select client_id from clients where client_user_name ='graham' and client_password ='reitz'
Result received = 1
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/ stl_algobase.h:382:
error: function requires a valid iterator range [__first, __last).


Objects involved in the operation:
iterator "__first" @ 0x0xbfffef40 {
type = N10__gnu_norm19_Bit_const_iteratorE;
}
iterator "__last" @ 0x0xbfffef48 {
type = N10__gnu_norm19_Bit_const_iteratorE;
}
Abort trap


Thanks in advance for any help, graham

_______________________________________________
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: _GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC nuttiness causing debug build crashes...
      • From: Thomas Engelmeier <email@hidden>
    • Re: _GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC nuttiness causing debug build crashes...
      • From: Graham Reitz <email@hidden>
  • Prev by Date: Re: Plist not being updated
  • Next by Date: Re: _GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC nuttiness causing debug build crashes...
  • Previous by thread: Re: QuickLook generator build on 10.4.10 failure.
  • Next by thread: Re: _GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC nuttiness causing debug build crashes...
  • Index(es):
    • Date
    • Thread