http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47072
--- Comment #3 from Satoshi Adachi <hbjbb131 at yahoo dot co.jp> 2011-02-26 20:59:18 UTC --- (I am sorry for some delay to reply.) > There are problems with exceptions on Darwin, see PR 42159 Thank you for your information. I read PR 42159. This report mainly concerns with Darwin on Intel Macintoshes. But my report was about Darwin on PowerPC Macintoshes. There is a correction. I wrote "gcc-4.5.2 is natively built from source code on my Macintosh (PowerBook G4, MacOS X 10.5.8 (Leopard)). ". But this should be "gcc-4.5.2 is natively built from source code on my Macintosh (iBook G4, MacOS X 10.5.8 (Leopard)). ". > Please provide the information requested at http://gcc.gnu.org/bugs/ > Specifically, you didn't say what configure options you used to build gcc. * the exact version of GCC: g++ (GCC) 4.5.2 * the system type: powerpc-apple-darwin9.8.0 * the options given when GCC was configured/built: /usr/local/src/GNU/GCC/gcc-4.5.2/configure \ --enable-languages="c,c++,fortran,java,objc,obj-c++" make bootstrap sudo make install * the complete command line that triggers the bug: g++ -O2 demo.C ./a.out * the compiler output (error messages, warnings, etc.): No warning * the preprocessed file (*.i*) that triggers the bug, generated by adding -save-temps to the complete compilation command, or, in the case of a bug report for the GNAT front end, a complete set of source files (see below): I will attach the intermediate files generated by -save-temps in separate files. > You could also use a debugger to find out where it hangs. According to your suggenstion, demo.C is compiled with -g option and gdb is used to find where the program hangs. The log list is the following: ------------------------------------------------------------------------------- Last login: Sun Feb 27 04:46:40 on ttys005 cd '/Volumes/HFS+2/home/adachi/work/425' [wisdom3:~:1] adachi% cd '/Volumes/HFS+2/home/adachi/work/425' [wisdom3:~/work/425:2] adachi% ls ./ ../ Letter.txt demo.C log [wisdom3:~/work/425:3] adachi% cat demo.C #include <iostream> #include <stdexcept> #include <cassert> int f(int x, int y) { std::cout << "Here is in f()." << std::endl; return -1; } class C { private: int x; public: C & operator=(int y) { if (f(x, y) != 0) throw std::invalid_argument ("C"); return *this; } }; int main(int argc, char** argv) { std::cout << "check point <1>" << std::endl; { try { C c; c = 1; assert(false); /* should not be reached */ } catch (std::invalid_argument) { } } std::cout << "check point <2>" << std::endl; { try { C c; c = 2; assert(false); /* should not be reached */ } catch (std::invalid_argument) { } } std::cout << "check point <3>" << std::endl; return 0; } [wisdom3:~/work/425:4] adachi% g++ -O2 -g -Wall -v -save-temps demo.C Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/Volumes/HFS+1/usr/local/bin/../libexec/gcc/powerpc-apple-darwin9.8.0/4.5.2/lto-wrapper Target: powerpc-apple-darwin9.8.0 Configured with: /usr/local/src/GNU/GCC/gcc-4.5.2/configure --enable-languages=c,c++,fortran,java,objc,obj-c++ Thread model: posix gcc version 4.5.2 (GCC) COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.5.8' '-O2' '-g' '-Wall' '-v' '-save-temps' '-shared-libgcc' /Volumes/HFS+1/usr/local/bin/../libexec/gcc/powerpc-apple-darwin9.8.0/4.5.2/cc1plus -E -quiet -v -iprefix /Volumes/HFS+1/usr/local/bin/../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/ -D__DYNAMIC__ demo.C -feliminate-unused-debug-symbols -fPIC -mmacosx-version-min=10.5.8 -Wall -g -fworking-directory -O2 -fpch-preprocess -o demo.ii ignoring nonexistent directory "/Volumes/HFS+1/usr/local/bin/../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/../../../../powerpc-apple-darwin9.8.0/include" ignoring duplicate directory "/Volumes/HFS+1/usr/local/bin/../lib/gcc/../../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/../../../../include/c++/4.5.2" ignoring duplicate directory "/Volumes/HFS+1/usr/local/bin/../lib/gcc/../../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/../../../../include/c++/4.5.2/powerpc-apple-darwin9.8.0" ignoring duplicate directory "/Volumes/HFS+1/usr/local/bin/../lib/gcc/../../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/../../../../include/c++/4.5.2/backward" ignoring duplicate directory "/Volumes/HFS+1/usr/local/bin/../lib/gcc/../../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/include" ignoring duplicate directory "/Volumes/HFS+1/usr/local/bin/../lib/gcc/../../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/include-fixed" ignoring nonexistent directory "/Volumes/HFS+1/usr/local/bin/../lib/gcc/../../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/../../../../powerpc-apple-darwin9.8.0/include" #include "..." search starts here: #include <...> search starts here: /Volumes/HFS+1/usr/local/bin/../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/../../../../include/c++/4.5.2 /Volumes/HFS+1/usr/local/bin/../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/../../../../include/c++/4.5.2/powerpc-apple-darwin9.8.0 /Volumes/HFS+1/usr/local/bin/../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/../../../../include/c++/4.5.2/backward /Volumes/HFS+1/usr/local/bin/../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/include /Volumes/HFS+1/usr/local/bin/../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/include-fixed /usr/local/include /usr/include /System/Library/Frameworks /Library/Frameworks End of search list. COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.5.8' '-O2' '-g' '-Wall' '-v' '-save-temps' '-shared-libgcc' /Volumes/HFS+1/usr/local/bin/../libexec/gcc/powerpc-apple-darwin9.8.0/4.5.2/cc1plus -fpreprocessed demo.ii -feliminate-unused-debug-symbols -fPIC -quiet -dumpbase demo.C -mmacosx-version-min=10.5.8 -auxbase demo -g -O2 -Wall -version -o demo.s GNU C++ (GCC) version 4.5.2 (powerpc-apple-darwin9.8.0) compiled by GNU C version 4.5.2, GMP version 5.0.1, MPFR version 3.0.0-p7, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU C++ (GCC) version 4.5.2 (powerpc-apple-darwin9.8.0) compiled by GNU C version 4.5.2, GMP version 5.0.1, MPFR version 3.0.0-p7, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 6bc542dc878e10812ff4fd1e2a3f8cd9 COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.5.8' '-O2' '-g' '-Wall' '-v' '-save-temps' '-shared-libgcc' as -arch ppc -o demo.o demo.s COMPILER_PATH=/Volumes/HFS+1/usr/local/bin/../libexec/gcc/powerpc-apple-darwin9.8.0/4.5.2/:/Volumes/HFS+1/usr/local/bin/../libexec/gcc/ LIBRARY_PATH=/Volumes/HFS+1/usr/local/bin/../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/:/Volumes/HFS+1/usr/local/bin/../lib/gcc/:/Volumes/HFS+1/usr/local/bin/../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/../../../:/usr/lib/ COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.5.8' '-O2' '-g' '-Wall' '-v' '-save-temps' '-shared-libgcc' /Volumes/HFS+1/usr/local/bin/../libexec/gcc/powerpc-apple-darwin9.8.0/4.5.2/collect2 -dynamic -arch ppc -macosx_version_min 10.5.8 -weak_reference_mismatches non-weak -o a.out -lcrt1.10.5.o -L/Volumes/HFS+1/usr/local/bin/../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2 -L/Volumes/HFS+1/usr/local/bin/../lib/gcc -L/Volumes/HFS+1/usr/local/bin/../lib/gcc/powerpc-apple-darwin9.8.0/4.5.2/../../.. demo.o -lstdc++ -lgcc_s.10.5 -lgcc_ext.10.5 -lgcc -lSystemStubs -lSystem COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.5.8' '-O2' '-g' '-Wall' '-v' '-save-temps' '-shared-libgcc' [wisdom3:~/work/425:5] adachi% ls ./ Letter.txt demo.C demo.o log ../ a.out* demo.ii demo.s [wisdom3:~/work/425:6] adachi% ./a.out check point <1> Here is in f(). check point <2> Here is in f(). <----- Hangs forever. Interrupt. ^C [wisdom3:~/work/425:7] adachi% gdb a.out GNU gdb 6.3.50-20050815 (Apple version gdb-967) (Tue Jul 14 02:15:14 UTC 2009) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc-apple-darwin"...Reading symbols for shared libraries . warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/array_type_info.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/array_type_info.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/bad_cast.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/bad_cast.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/bad_typeid.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/bad_typeid.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/class_type_info.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/class_type_info.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/cp-demangle.o" - no debug information available for "cp-demangle.c". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/del_op.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/del_op.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/del_opnt.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/del_opnt.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/del_opv.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/del_opv.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/del_opvnt.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/del_opvnt.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/dyncast.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/dyncast.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/eh_alloc.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/eh_alloc.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/eh_aux_runtime.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/eh_aux_runtime.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/eh_call.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/eh_call.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/eh_catch.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/eh_catch.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/eh_exception.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/eh_exception.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/eh_globals.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/eh_globals.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/eh_personality.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/eh_personality.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/eh_ptr.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/eh_ptr.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/eh_term_handler.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/eh_term_handler.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/eh_terminate.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/eh_terminate.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/eh_throw.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/eh_throw.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/eh_type.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/eh_type.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/eh_unex_handler.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/eh_unex_handler.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/enum_type_info.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/enum_type_info.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/function_type_info.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/function_type_info.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/fundamental_type_info.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/fundamental_type_info.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/guard.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/guard.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/new_handler.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/new_handler.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/new_op.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/new_op.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/new_opnt.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/new_opnt.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/new_opv.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/new_opv.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/new_opvnt.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/new_opvnt.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/pbase_type_info.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/pbase_type_info.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/pmem_type_info.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/pmem_type_info.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/pointer_type_info.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/pointer_type_info.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/pure.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/pure.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/si_class_type_info.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/si_class_type_info.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/tinfo.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/tinfo.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/vec.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/vec.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/vmi_class_type_info.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/vmi_class_type_info.cc". warning: Could not find object file "/Volumes/HFS+4/Work/gcc-4.5.2-build/powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs/libstdc++.lax/libsupc++convenience.a/vterminate.o" - no debug information available for "/usr/local/src/GNU/GCC/gcc-4.5.2/libstdc++-v3/libsupc++/vterminate.cc". ... done (gdb) run Starting program: /Volumes/HFS+2/home/adachi/work/425/a.out Reading symbols for shared libraries +++.. done check point <1> Here is in f(). check point <2> Here is in f(). <----- Hangs forever. Interrupt. ^C Program received signal SIGINT, Interrupt. 0x001c93c8 in read_encoded_value_with_base () (gdb) where #0 0x001c93c8 in read_encoded_value_with_base () #1 0x001c997c in __gxx_personality_v0 () #2 0x93caf8f0 in _Unwind_RaiseException () #3 0x001ca4c4 in __cxa_throw () #4 0x00002ba8 in C::operator= (this=<value temporarily unavailable, due to optimizations>, y=<value temporarily unavailable, due to optimizations>) at demo.C:21 #5 0x00002960 in main (argc=<value temporarily unavailable, due to optimizations>, argv=<value temporarily unavailable, due to optimizations>) at demo.C:44 (gdb) list 504 505 // Partial specializations 506 template<class _Traits> 507 inline basic_ostream<char, _Traits>& 508 operator<<(basic_ostream<char, _Traits>& __out, const char* __s) 509 { 510 if (!__s) 511 __out.setstate(ios_base::badbit); 512 else 513 __ostream_insert(__out, __s, (gdb) quit The program is running. Exit anyway? (y or n) y [wisdom3:~/work/425:8] adachi% -------------------------------------------------------------------------------