Broken exceptions in Lion/XCode?

Having upgraded to Lion and noticed that gcc had been removed,
I downloaded the free verson of XCode from the App store.
gcc was restored ... but the exceptions are behaving funny.
Basically, if I throw any exception (with any message) I get
the following text in the terminal:
terminate called throwing an exceptionAbort trap: 6
(with a noticable pause before displaying "Abort trap: 6"
Anybody else hit this (and found a way around it, even better)?
Thanks in advance.

Here was my minimal code:
#include <stdexcept>
int main()
          throw std::runtime_error( "Doesn't display this message" );
          return 0;
For all it's worth, I've found a way around it, essentially just to
catch all exceptions before exiting, something like:
#include <stdexcept>
int main()
     try
          // Call main program here which may throw exceptions
          throw std::runtime_error( "Doesn't display this message" );
     catch( exception &e )
          std::cerr << "Error: " << e.what() << std::endl;
          return 0;
Whatever's changed in the latest XCode and/or Lion doesn't seem to like
uncaught exceptions.
I've never used CGAL, but I'm guessing a similar work-around will
work there as well.

Similar Messages

  • My messages broken in Mountain Lion, how to reinstall ?

    My messages broken in Mountain Lion, how to reinstall ?
    i browsed have MessageBeta.. cannot install in ML.. how i can reinstall ?
    Please help me.. thx

    HI,
    If you have any sort of Back up such as a Time Machine one you could "restore" it to the Applications folder if you know which date it last worked.
    Other than that it is the Mountain Lion Restore process (Restart the Computer holding CMD and R)
    9:57 PM      Sunday; September 23, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and and iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • External Samsung Display broken @ 1920x1080 after Lion upgrade

    Hi,
    The more I use Mac OS 10.7 Lion the more I notice it's defects and the more I get upset with it.
    After the WIFI issue (wifi network does not reconnect after sleep mode) I am now facing an issue with my external display.
    I have actually two MacBook Pro unibody from 2009. One is a 13' with Mac OS X 10.6.8 the second one is a 15' from the same year recently upgraded to Lion 10.7. I used to watch movies on my Samsung TV using a VGA cable connected to a Mini DVI to VGA Adapter with the TV native resolution of 1920x1080.
    It used to work flalessly on my MBP 15' 10.6.8 but since the Lion upgrade the screen seems not to support this mode anymore. The image on the TV apprears for 2 seconds then disappears for 3 seconds and so on...
    I checked that the very same configuration still works on the MBP 13' with 10.6.8.
    It clearly means that Lion broke this.... oh crap....
    I was really expecting less bugs from Apple. Well at least I am now expecting a way to fix this issue.
    PLEASE.
    I have found other similar (unanswered) messages, I am linking them here:
    1080p@50/60Hz on TV over AV-Receiver broken
    https://discussions.apple.com/message/15729194
    External monitor does not display 1080p after OSX reinstall
    https://discussions.apple.com/message/15722024
    Regards,
    Xavier

    Good News Here
    I was able to fix my problem, i called the Apple Support to report my issue, they pointed me to this link:
    http://support.apple.com/kb/HT1573
    So here is *exactly* what I did, step by step, to solve my issue:
    1. Shut down the Mac,
    2. Press the power button to start the computer,
    3. Immediately press and hold the Command (Apple) key and the "s" key for single-user mode (Command-S)
    4. At the prompt, type the command "mount -uw /" and press Return.
    5. Now do the following:
    > rm /Library/Preferences/com.apple.windowserver.plist (press return)
    > cd /Users/<username>/Library/Preferences/ByHost (press return)
    (Replace the text "<username>" above with your username, which is also the name of your Home folder)
    > rm com.apple.windowserver.*.plist (press return)
    > reboot (READ the next item BEFORE pressing return, you will need to reset your Mac's PRAM and NVRAM, the next point explains how)
    6. When rebooting press and hold the "Command", "Option", "P" and "R" keys. You must press this key combination before the gray screen appears. Hold the keys down until the computer restarts and you hear the startup sound for the SECOND time.
    7. Release the keys to proceed with normal startup.
    8. Once ready, connect your external display and... pray.
    For me it worked, I now have my full HD resolution (1920x1080) back on my Samsung TV.
    Hope it works for you too guys, keep me posted !
    Cheers,
    Xavier

  • Mac App store broken after restoring Lion

    Here is what I did:
    I deleted all the data on my harddrive, and reinstalled lion using built-in internet recovery.
    The problem:
    The Mac app store is extremely slowly - to the point of non-responsive.
    It won't let me install any of my applications. Clicking on the "install" button next to an item in the "purchased" section does nothing.
    I have already confirmed by billing information.
    There are no error messages. It just doesn't respond. It takes ages for any screen to load. It doens't make much sense - my internet connection works fine, as I can browse websites in safari without any problem.
    What do I need to do to fix this? Right now there is no other software installed except the default that Lion installs.
    Thanks.
    EDIT: iTunes seems messed up too. When I click on "purchased" in the apps section, all I get is a blank white screen.

    www.apple.com/support/mac/app-store/contact.html?form=account

  • Codesign broken in Mountain Lion

    I want to codesign an app, uTorrent to be precise, since I changed the icon and I hate being asked every time to allow to run the app. The problem is that in Mountiai Lion I constantly get this error: "object file format unrecognized, invalid, or unsuitable". I am not a developer and I do not have Apple certificate but in Snow Leopard and Lion I could use codesign in terminal and my own certificate created in keychain to codesign apps and avoid issues like this. In some forums I found out that instaling latest version of xcode and some additional tools will resolve this (being able to codesign apps from terminal instead using xcode) but since I am not a developer and I do this very rarely I wondered if anyone found another way to solve this.
    Thanks in advance.

    Hi guys,
    Thanks for your reply but I think you are missing my point. I changed the app icon because I wanted to and I want to use the app whit my custom icon. I know that this breaks the code-signing and that is why I want to code-sign the app with my certificate. I can sign or at least I could in OSX 10.6 and 10.7 and as I described I still can if I download xcode and some additional tools from apple's website without obtaining certificate from apple or any other source. The point is that I do not want to use some 1.5GB of my disk space for software I am not using at all so I can code-sign an app through terminal and I was wondering if anyone has found an alternative solution.
    All the best.

  • Gnumake has broken PATH behavior in xcode 3.2; are others seeing this?

    It appears that the handling of the PATH variable is now broken in Xcode 3.2 with Snow Leopard.
    As long as SHELL is still set to the default of /bin/sh, simple commands seem to now be handled differently (perhaps via a built-in optimization?) and only the pre-existing environment PATH to gnumake is used, instead of the PATH variable. This results in inconsistent behavior, where printing $PATH from the shell shows the correct path, and "which" can locate an executable, but when you try to run it, it says it can't be found.
    The following Makefile demonstrates this, if you run "make test1" with the new make.
    It fails, but should succeed. Meanwhile "make test2" and "make test3" succeed.
    Note that if you change SHELL to something other than /bin/sh, it will work for test1,
    even if what it points to is just a copy of /bin/sh named something else.
    Is anyone else seeing this happen? It's odd, since the gnu version of make is the same for Xcode 3.1 and 3.2, so Apple must be making some other optimizations that affect it.
    Here's the Makefile to show this:
    (unfortunately, the tabs don't seem to be coming through, so you'll need to re-indent this
    properly as a Makefile)
    PATH := mybin:$(PATH)
    export MAKE
    test1: mybin/testprogram
    echo SHELL=$(SHELL)
    echo PATH=$(PATH)
    which testprogram
    testprogram
    test2: mybin/testprogram
    echo SHELL=$(SHELL)
    echo PATH=$(PATH)
    which testprogram
    echo; testprogram
    test3: mybin/testprogram
    echo SHELL=$(SHELL)
    echo PATH=$(PATH)
    which testprogram
    a=0 testprogram
    mybin/testprogram:
    mkdir -p mybin
    echo "#!/bin/sh" > $@
    echo 'echo "($$MAKE) has run $$0"' >> $@
    chmod +x $@

    I misquoted some details. At the time the incident occurred my Remote Desktop Administrator was the only ARD admin configured to use the task server where the data was lost from. The other 4 where not yet configured.
    (the old server we are retiring (with it's own separate license had the other Remote Desktop Administrators reporting to it)
    I have started switching other Administrators over to the server in question and have not seen any more systems disappear from the sqlite3 database.
    I also updated our old task server to 3.3.1 on Friday and over the weekend it maintained all the data. Even for a system that has not reported any new data since September of 2006.

  • Notes broken in Mountain Lion?

    After upgrading to Mountain Lion, my notes synced via my IMAP mail account are not showing up in the new Notes app.
    On the left side of the Notes app, I see my IMAP account where my notes should reside, but it's empty, with none of my notes.
    I assume this is a new bug with the Notes app. If not, has anyone found a way to get their IMAP mail notes to show up in the new Notes app?

    Good day all,
    I had the similar issue. I did the following to recover my notes before the upgrade:
    You need to locate the StickiesDatabase under your Library folder.
    Once you have a copy of your StickiesDatabase under
    /Users/<insert_your_home_directory>/Library/StickiesDatabase
    Export stickies created by Stickies.app
    Install National Velocity (NV) - http://notational.net/ and start the application
    In Finder open your Library folder and locate StickiesDatabase
    Drag StickiesDatabase into the list of notes in NV main window
    After you are able to see your notes in NV, it is up to you how to transfer them to Apple Notes. You could export as HTML/RTF etc or copy paste manually...  I have decided to use NV from now on.
    The instructions above is from the following page:
    http://apple.stackexchange.com/questions/59525/export-all-stickies-at-once-on-os -x-10-8

  • Screensaver broken under Mountain Lion

    Well, just upgraded to Mountain Lion, and the default screensaver doesn't work like it use to. Previously, I pointed it to use the
    directory that contained all of my photos, in which there are a bunch of sub-directories (photos/2010, photos/2011, photos/2012),
    and all the photos in the sub-directories were seen by the screensaver and used. Now, pointing the screensaver to the "photos"
    directory gives me a "no photos found" message. I have to point the screensaver to one of the sub-directories (i.e., 2012) for it
    to find/use photos. Limits me to only the photos in the sub-directories, not all the photos in my collection. Why would they change
    this behavior?

    If you don't want to upgrade to Mountain Lion Server, you're only other option is to completely erase your OS volume and reinstall Lion; then Lion Server. Or if you don't want to run Server any longer, you can just install Mountain Lion.

  • Contacts Smart Groups Still Broken in Mountain Lion

    I have been waiting for Mountain Lion, in hope that Address Book / Contacts bugs would be fixed.  Regretfully, they have not.  Smart groups using the query "not a member of" still do not work.  It would have been wonderful it it did.
    Jack

    I have tons of photos in my camera roll on both my iPhone and iPad, so this is not the problem.
    Also, the cable connector is not the problem, since iTunes detects the iPhone and iPad 100% of the time correctly. The problem appears isolated to Image Capture (and iPhoto).

  • App store and Java broken on Mountain Lion?

    Hi all, so I just purchased a brand new 13" Macbook Pro, the first thing i did was install Mountain Lion on it, (it came from the factory with Lion) so i have no time machine backups to revert to. Here are my problems 1.) I can't download anything from the appstore, no matter how large or small of an app. 2.) Java will not download, when I open java preferences it prompts a dowload which after reaching about 15 mb it will say the download failed because the file was corrupted. The same thing happens when I try and manually initiate the download through Terminal. I spoke with several Apple reps and they all said that I would have to reinstall Mountain Lion (as far as I can tell there is no way to do this without a backup). So is there a way to fix this without reinstalling Mountain Lion? If not how do i reinstall. Any help is greatly appreciated
    Thanks

    I can't download anything from the appstore, no matter how large or small of an app.
    Open System Preferences > Security & Privacy > Security > General
    Click the gold padlock icon to make changes. You may be prompted for your admin password.
    Select:  Mac App Store and indentified developers
    I spoke with several Apple reps and they all said that I would have to reinstall Mountain Lion (as far as I can tell there is no way to do this without a backup).
    You can reinstall OS X using Mountain Lion Recovery but it shouldn't be necessary.

  • ICal sync with gcal broken after Mountain Lion upgrade

    Is anyone else seeing that iCal events created in iCal no longer sync into GCal after the Mountain Lion upgrade?
    I'm running OSX 10.8 and iCal 6.
    I have a google calendar account configured in iCal, and iCal has no problems reading/sync'ing events that are created directly in Google Calendar. It also has no problems seeing free/busy information of people in my Google Calendar account when I create a new event in iCal. However, when I create an event in iCal, the event never ends up in Google Calendar.
    This problem didn't used to exist before I upgraded to Mountain Lion. I haven't changed anything in the settings since my upgrade.
    The problem doesn't exist in my iPhone, which is still working properly.
    Thanks,
    Bob

    http://productforums.google.com/forum/#!topic/calendar/X5EAUGxemic%5B1-25%5D
    The problem seems to be in the Delegates. I followed the instructions in the above, setting up google calendars as CalDAV and using the calendar ID. But tedious but at least its working until apple get their act together and fix it!

  • IMovie 9.0.4 broken after OSX Lion update

    Warns of "Missing Quicktime Components", but reinstalling iMovie from bundled software discs (after first deleting) does not fix issue.
    Any ideas on how to fix?

    General advice is that Quicktime is a component of OSX Lion, not iMovie (natch) and therefore you need to re-install Lion using the recovery. Imagine my dismay when it told me it would take over 5 hours.
    I figured I'd try a few other things first - luckily repair permissions and restart seemed to do the trick

  • LiveType broken by Mountain Lion

    It appears LiveType 2.1 refuses to load under Mountain Lion OS X 10.8.  Interestingly Soundtrack 1.5 contunes to load successfully.  These are both old Intel 32-bit applications.

    Hi My self Varun, My English is not Good.
    I am using 10.8.3
    and i have Final Cut Studio 2.0 (48.52 GB)
    1st i installed rosetta from my 10.6 installer
    In 10.6 DVD there is a folder name Optional Installs.mpkg, run it and install rosetta, bcoz FCS 2 works with power pc and rosetta is a part of Power pc.
    install rosetta.
    Then Run FCS 2
    first this window will open
    Press OK
    then this window is open
    and finaly this window will appear
    If u need only Live Type so uncheck the otheres, then install it.
    After installing Live Type there is no live font in it, So you have to Run the other components of Live Type from FCS 2 folder
    and Enjoy!

  • Broken mail in Lion

    Has anyone solved the broken mail problem in which it spontaneously quits after be asked to upgrade messages?

    If mail unexpicticly quits do you get the Mail Crash window asking you to report to Apple?  If you Do can you paste the crash log in a reply.  If you don't get the crash window can you paste the content of the system.log from the console.app after the mail application quits. 

  • Many features broken; Exception: getDatabaseMinorVersion(I)

    I'm not able to use many of the features of sqldeveloper:
    - reports don't work. clicking on them does nothing.
    - clicking on a table in the tree view doesn't work properly: columns tab doesn't work, indexes tab doesn't work, constraints, grants, etc. In fact, the only tab that does work is 'Data'.
    - can't examine views at all
    - can't examine indexes at all
    -etc.
    Whenever I try to use any of these functions, I get the Java exception below. I'm using the current production version of SQL Developer on Mac OS X 10.4.5 with the latest Java 1.5 sdk from Apple.
    Exception in thread "AWT-EventQueue-0" java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.getDatabaseMinorVersion()I
    at oracle.dbtools.db.DBUtil.checkVersion(DBUtil.java:471)
    at oracle.dbdev.oviewer.xmleditor.XMLEditor.getQuery(XMLEditor.java:40)
    at oracle.dbdev.oviewer.xmleditor.XMLBasedEditor.updateContent(XMLBasedEditor.java:381)
    at oracle.dbdev.oviewer.xmleditor.XMLBasedEditor.updateContent(XMLBasedEditor.java:359)
    at oracle.dbdev.oviewer.base.ViewerEditor.whenDbNodeChanged(ViewerEditor.java:179)
    at oracle.dbdev.oviewer.base.ViewerEditor.whenVisibilityChanges(ViewerEditor.java:154)
    at oracle.dbdev.oviewer.base.ViewerEditor.editorShown(ViewerEditor.java:134)
    at oracle.ideimpl.editor.SplitPane.doLayoutTopTabs(SplitPane.java:811)
    at oracle.ideimpl.editor.SplitPane.doLayout(SplitPane.java:485)
    at java.awt.Container.validateTree(Container.java:1473)
    at java.awt.Container.validateTree(Container.java:1480)
    at java.awt.Container.validateTree(Container.java:1480)
    at java.awt.Container.validateTree(Container.java:1480)
    at java.awt.Container.validateTree(Container.java:1480)
    at java.awt.Container.validateTree(Container.java:1480)
    at java.awt.Container.validateTree(Container.java:1480)
    at java.awt.Container.validateTree(Container.java:1480)
    at java.awt.Container.validateTree(Container.java:1480)
    at java.awt.Container.validateTree(Container.java:1480)
    at java.awt.Container.validate(Container.java:1448)
    at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:379)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:182)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    Hi -
    This is what I get from v$version:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    PL/SQL Release 9.2.0.4.0 - Production
    CORE     9.2.0.3.0     Production
    TNS for Solaris: Version 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 - Production
    This was with a clean install (I imported connection details from a previous version).
    Let me know if there's anything else I can provide that would be helpful. This is a great tool and I'd love to be able to get the rest of it working!
    --Colin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for