https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63262
--- Comment #13 from karsten <karo13de at googlemail dot com> --- It gets late, here is the output of lldb. I will be busy tomorrow so I will not respond to quick! lldb -- /usr/local/libexec/gcc/x86_64-apple-darwin14.0.0/4.9.2/cc1plus -quiet -v -I /opt/local/include -I /usr/X11R6/include -D__DYNAMIC__ -D gmic_build -D gmic_is_beta=1 -D cimg_use_fftw3 -D cimg_use_png -D cimg_use_zlib -D cimg_display=1 -D cimg_appname="gmic" -D cimg_use_rng -D gmic_gimp gmic.cpp --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=core2 -fPIC -feliminate-unused-debug-symbols -quiet -dumpbase gmic.cpp -mmacosx-version-min=10.9.4 -auxbase-strip gmic_gimp.o -g -Wall -Wextra -std=c++11 -version -o /var/folders/gs/rk3h54tr8xl48f008k8wf9n80000gn/T//ccymxQht.s (lldb) target create "/usr/local/libexec/gcc/x86_64-apple-darwin14.0.0/4.9.2/cc1plus" Current executable set to '/usr/local/libexec/gcc/x86_64-apple-darwin14.0.0/4.9.2/cc1plus' (x86_64). (lldb) settings set -- target.run-args "-quiet" "-v" "-I" "/opt/local/include" "-I" "/usr/X11R6/include" "-D__DYNAMIC__" "-D" "gmic_build" "-D" "gmic_is_beta=1" "-D" "cimg_use_fftw3" "-D" "cimg_use_png" "-D" "cimg_use_zlib" "-D" "cimg_display=1" "-D" "cimg_appname=gmic" "-D" "cimg_use_rng" "-D" "gmic_gimp" "gmic.cpp" "--param" "l1-cache-size=32" "--param" "l1-cache-line-size=64" "--param" "l2-cache-size=6144" "-mtune=core2" "-fPIC" "-feliminate-unused-debug-symbols" "-quiet" "-dumpbase" "gmic.cpp" "-mmacosx-version-min=10.9.4" "-auxbase-strip" "gmic_gimp.o" "-g" "-Wall" "-Wextra" "-std=c++11" "-version" "-o" "/var/folders/gs/rk3h54tr8xl48f008k8wf9n80000gn/T//ccymxQht.s" run (lldb) run Process 1864 launched: '/usr/local/libexec/gcc/x86_64-apple-darwin14.0.0/4.9.2/cc1plus' (x86_64) GNU C++ (GCC) version 4.9.2 20141029 (prerelease) (x86_64-apple-darwin14.0.0) compiled by GNU C version 4.9.2 20141029 (prerelease), GMP version 6.0.0, MPFR version 3.1.2-p10, MPC version 1.0.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/local/lib/gcc/x86_64-apple-darwin14.0.0/4.9.2/../../../../x86_64-apple-darwin14.0.0/include" #include "..." search starts here: #include <...> search starts here: /opt/local/include /usr/X11R6/include /usr/local/lib/gcc/x86_64-apple-darwin14.0.0/4.9.2/../../../../include/c++/4.9.2 /usr/local/lib/gcc/x86_64-apple-darwin14.0.0/4.9.2/../../../../include/c++/4.9.2/x86_64-apple-darwin14.0.0 /usr/local/lib/gcc/x86_64-apple-darwin14.0.0/4.9.2/../../../../include/c++/4.9.2/backward /usr/local/lib/gcc/x86_64-apple-darwin14.0.0/4.9.2/include /usr/local/include /usr/local/lib/gcc/x86_64-apple-darwin14.0.0/4.9.2/include-fixed /usr/include /System/Library/Frameworks /Library/Frameworks End of search list. GNU C++ (GCC) version 4.9.2 20141029 (prerelease) (x86_64-apple-darwin14.0.0) compiled by GNU C version 4.9.2 20141029 (prerelease), GMP version 6.0.0, MPFR version 3.1.2-p10, MPC version 1.0.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 10c0f5a43ac831149a38356dc3f34f45 Process 1864 stopped * thread #1: tid = 0x1329d, 0x00000001415c747a libgmp.10.dylib`__gmpn_popcount + 26, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) frame #0: 0x00000001415c747a libgmp.10.dylib`__gmpn_popcount + 26 libgmp.10.dylib`__gmpn_popcount + 26: -> 0x1415c747a: popcntq (%rdi,%rcx,8), %r8 0x1415c7480: popcntq 0x8(%rdi,%rcx,8), %r9 0x1415c7487: jmp 0x1415c7516 ; __gmpn_popcount + 182 0x1415c748c: movl $0x2, %ecx bt (lldb) bt * thread #1: tid = 0x1329d, 0x00000001415c747a libgmp.10.dylib`__gmpn_popcount + 26, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) * frame #0: 0x00000001415c747a libgmp.10.dylib`__gmpn_popcount + 26 frame #1: 0x0000000141578f67 libmpfr.4.dylib`parsed_string_to_mpfr + 2567 frame #2: 0x000000014157847b libmpfr.4.dylib`mpfr_strtofr + 2011 frame #3: 0x00000001006f4d11 cc1plus`real_from_string(real_value*, char const*) + 817 frame #4: 0x00000001006f5741 cc1plus`real_from_string3(real_value*, char const*, machine_mode) + 33 frame #5: 0x000000010015f7b2 cc1plus`interpret_float(cpp_token const*, unsigned int, char const*, overflow_type*) + 354 frame #6: 0x000000010016059c cc1plus`c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int) + 716 frame #7: 0x000000010007dba0 cc1plus`cp_lexer_get_preprocessor_token(cp_lexer*, cp_token*) + 32 frame #8: 0x00000001000b0de9 cc1plus`c_parse_file() + 265 frame #9: 0x0000000100165c3b cc1plus`c_common_parse_file() + 123 frame #10: 0x000000010078741e cc1plus`compile_file() + 46 frame #11: 0x000000010078936a cc1plus`toplev_main(int, char**) + 3002 frame #12: 0x00007fff8d8755fd libdyld.dylib`start + 1 frame #13: 0x00007fff8d8755fd libdyld.dylib`start + 1 Am 02.11.2014 um 23:20 schrieb fxcoudert at gcc dot gnu.org <gcc-bugzi...@gcc.gnu.org>: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63262 > > --- Comment #10 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> > --- > Could you backtrace the segfault? > > 1. Run g++ with added option "-v", and find out the command-line with > "cc1plus" > in the output. > 2. Then run this "cc1plus" command-line under a debugger, prefixing your > command line with "lldb -- " or "gdb -args " > 3. When it segfaults, get a backtrace through debugger command "bt" > > -- > You are receiving this mail because: > You reported the bug. Karsten karo1...@googlemail.com