From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26762 invoked by alias); 2 Nov 2014 22:22:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 26734 invoked by uid 55); 2 Nov 2014 22:22:43 -0000 From: "karo13de at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/63262] [4.9.2] ICE including math.h on darwin Date: Sun, 02 Nov 2014 22:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: blocker X-Bugzilla-Who: karo13de at googlemail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg00059.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63262 --- Comment #11 from karsten --- I could not forward the mail from Gaurav: Von: Gaurav Khanna Betreff: Aw: [Bug c++/63262] internal compiler error including math.h Datum: 2. November 2014 23:15:50 MEZ An: Karsten http://mirrors.concertpass.com/gcc/snapshots/LATEST-4.9/gcc-4.9-20141029.ta= r.bz2 No modifications ./configure =EF=BF=BDenable-languages=3Dc++,fortran GMP 6.0.0a, MPFR 3.1.2 (w/ cumulative patch), MPC 1.0.2 OS X Yosemite (current) on (late 2013) MacPro ---------------------------------------------------------------------------= ------------ GAURAV KHANNA, (508) 910 6605, http://gravity.phy.umassd.edu Associate Professor, Physics Department, College of Engineering Assoc. Director, Center for Scientific Computing & Visualization Research Graduate Program Director, Engg & Appl. Sci. Ph.D. Program=20 University of Massachusetts Dartmouth "Black holes are where God divided by zero." - Steven Wright Karsten karo13de@googlemail.com >>From gcc-bugs-return-465588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Nov 02 22:25:38 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29983 invoked by alias); 2 Nov 2014 22:25:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 29960 invoked by uid 55); 2 Nov 2014 22:25:35 -0000 From: "karo13de at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/63262] [4.9.2] ICE including math.h on darwin Date: Sun, 02 Nov 2014 22:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: blocker X-Bugzilla-Who: karo13de at googlemail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg00060.txt.bz2 Content-length: 1158 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63262 --- Comment #12 from karsten --- > I could not forward the mail from Gaurav: >=20 > Von: Gaurav Khanna > Betreff: Aw: [Bug c++/63262] internal compiler error including math.h > Datum: 2. November 2014 23:15:50 MEZ > An: Karsten >=20 >=20 > http://mirrors.concertpass.com/gcc/snapshots/LATEST-4.9/gcc-4.9-20141029.= tar.bz2 >=20 > No modifications >=20 > ./configure =EF=BF=BDenable-languages=3Dc++,fortran > GMP 6.0.0a, MPFR 3.1.2 (w/ cumulative patch), MPC 1.0.2 > OS X Yosemite (current) on (late 2013) MacPro >=20 >=20 > -------------------------------------------------------------------------= -------------- > GAURAV KHANNA, (508) 910 6605, http://gravity.phy.umassd.edu > Associate Professor, Physics Department, College of Engineering > Assoc. Director, Center for Scientific Computing & Visualization Research > Graduate Program Director, Engg & Appl. Sci. Ph.D. Program=20 > University of Massachusetts Dartmouth >=20 > "Black holes are where God divided by zero." - Steven Wright Karsten karo13de@googlemail.com >>From gcc-bugs-return-465589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Nov 02 22:34:30 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 569 invoked by alias); 2 Nov 2014 22:34:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 540 invoked by uid 55); 2 Nov 2014 22:34:25 -0000 From: "karo13de at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/63262] [4.9.2] ICE including math.h on darwin Date: Sun, 02 Nov 2014 22:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: blocker X-Bugzilla-Who: karo13de at googlemail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg00061.txt.bz2 Content-length: 5706 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63262 --- Comment #13 from karsten --- 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 : > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63262 > > --- Comment #10 from Francois-Xavier Coudert --- > 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 karo13de@googlemail.com