#25042: g++-mp-4.3 aborts instead of catching exceptions --------------------------------------+------------------------------------- Reporter: jsanchez@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: gcc43 --------------------------------------+------------------------------------- Comment(by drs@…): I have this exact same problem with the gcc44 port, i.e. C++ exceptions abort and cannot be caught. My stack trace plus library list is below. Making the change described above made no difference for me. I tried both cutting/editing/pasting the 'collect2' line as well as patching the port with the fix described above and completely building and installing the port, but in neither case did it make any difference. I still get the same abort as a result. This makes the gcc44 port pretty useless for C++ development (and thus deserves more than a 'Normal' priority). gcc44 seems fine for compiling C applications, but not C++ (nor Objective-C, I suspect). I did not recompile all of the dependencies, but the solution described above implies that it is a linkage issue... Darrell ------------------------------------------------------------- Program received signal SIGABRT, Aborted. 0x00007fff8666c3d6 in __kill () (gdb) where #0 0x00007fff8666c3d6 in __kill () #1 0x00007fff8670c972 in abort () #2 0x0000000106229af2 in _Unwind_SetSpColumn [inlined] () at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/work/gcc-4.4.4/gcc /unwind-dw2.c:1256 #3 0x0000000106229af2 in uw_init_context_1 (context=0x7fff5fbfa090, outer_cfa=0x7fff5fbfa1d0, outer_ra=0x1035fb4e9) at ../../../gcc-4.4.4/libgcc/../gcc/unwind-dw2.c:1463 #4 0x0000000106229f38 in _Unwind_Resume (exc=0x119fe8e30) at unwind.inc:224 #5 0x00000001035fb4e9 in casa::TSMDataColumn::shape (this=0x106dba490, rownr=0) at tables/Tables/TSMDataColumn.cc:164 ------------------------------------------------------------- bash$ otool -L /Users/drs/dev/viewer/osx/bin/casaviewer | grep libgcc bash$ $ otool -L /Users/drs/dev/viewer/osx/bin/casaviewer /Users/drs/dev/viewer/osx/bin/casaviewer: /opt/local/lib/gcc44/libgomp.1.dylib (compatibility version 2.0.0, current version 2.0.0) /Users/drs/dev/viewer/osx/lib/libdisplay.3.1.0.dylib (compatibility version 3.1.0, current version 0.0.0) /Users/drs/dev/viewer/osx/lib/libcasaqt.3.1.0.dylib (compatibility version 3.1.0, current version 0.0.0) /opt/local/lib/libqwt.5.2.1.dylib (compatibility version 5.2.0, current version 5.2.1) /opt/local/libexec/qt4-mac/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.6.0, current version 4.6.3) /opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/QtGui (compatibility version 4.6.0, current version 4.6.3) /opt/local/libexec/qt4-mac/lib/QtDBus.framework/Versions/4/QtDBus (compatibility version 4.6.0, current version 4.6.3) /opt/local/libexec/qt4-mac/lib/QtXml.framework/Versions/4/QtXml (compatibility version 4.6.0, current version 4.6.3) /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python (compatibility version 2.6.0, current version 2.6.0) /opt/local/lib/libxerces-c.28.dylib (compatibility version 0.0.0, current version 0.0.0) /Users/drs/dev/viewer/osx/lib/libmsvis.3.1.0.dylib (compatibility version 3.1.0, current version 0.0.0) /Users/drs/dev/viewer/osx/lib/libgraphics.3.1.0.dylib (compatibility version 3.1.0, current version 0.0.0) /Users/drs/dev/viewer/osx/lib/libcasacore.1.0.14.1.dylib (compatibility version 0.0.0, current version 0.0.0) /opt/local/lib/liblapack.dylib (compatibility version 0.0.0, current version 0.0.0) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib (compatibility version 1.0.0, current version 219.0.0) /opt/local/lib/libcfitsio.dylib (compatibility version 0.0.0, current version 0.0.0) /opt/local/lib/libwcs.4.4.4.dylib (compatibility version 4.4.4, current version 4.4.4) /opt/local/lib/libpgsbox.4.4.4.dylib (compatibility version 4.4.4, current version 4.4.4) /opt/local/lib/libpgplot.5.3.1.dylib (compatibility version 0.0.0, current version 0.0.0) /opt/local/lib/libcpgplot.5.3.1.dylib (compatibility version 0.0.0, current version 0.0.0) /opt/local/lib/gcc44/libgfortran.3.dylib (compatibility version 4.0.0, current version 4.0.0) /opt/local/lib/libfftw3_threads.3.dylib (compatibility version 6.0.0, current version 6.4.0) /opt/local/lib/libfftw3f_threads.3.dylib (compatibility version 6.0.0, current version 6.4.0) /opt/local/lib/libfftw3f.3.dylib (compatibility version 6.0.0, current version 6.4.0) /opt/local/lib/libfftw3.3.dylib (compatibility version 6.0.0, current version 6.4.0) /opt/local/lib/gcc44/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.13.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0) bash$ -- Ticket URL: <http://trac.macports.org/ticket/25042#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS