public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "karo13de at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-63262-4-SqTkegAGfE@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-63262-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63262

--- Comment #11 from karsten <karo13de at googlemail dot com> ---
I could not forward the mail from Gaurav:

Von: Gaurav Khanna <gkhanna@umassd.edu>
Betreff: Aw: [Bug c++/63262] internal compiler error including math.h
Datum: 2. November 2014 23:15:50 MEZ
An: Karsten <karo13de@googlemail.com>


http://mirrors.concertpass.com/gcc/snapshots/LATEST-4.9/gcc-4.9-20141029.tar.bz2

No modifications

./configure �enable-languages=c++,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 
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: <gcc-bugs-return-465588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.gnu.org>
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: <bug-63262-4-dpgnhaxXcX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63262-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63262-4@http.gcc.gnu.org/bugzilla/>
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=63262

--- Comment #12 from karsten <karo13de at googlemail dot com> ---
> I could not forward the mail from Gaurav:
> 
> Von: Gaurav Khanna <gkhanna@umassd.edu>
> Betreff: Aw: [Bug c++/63262] internal compiler error including math.h
> Datum: 2. November 2014 23:15:50 MEZ
> An: Karsten <karo13de@googlemail.com>
> 
> 
> http://mirrors.concertpass.com/gcc/snapshots/LATEST-4.9/gcc-4.9-20141029.tar.bz2
> 
> No modifications
> 
> ./configure �enable-languages=c++,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 
> University of Massachusetts Dartmouth
> 
> "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: <gcc-bugs-return-465589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.gnu.org>
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: <bug-63262-4-oSzT5lR9yX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63262-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63262-4@http.gcc.gnu.org/bugzilla/>
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?idc262

--- 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-size2 --param l1-cache-line-sized --param
l2-cache-sizea44 -mtune=core2 -fPIC -feliminate-unused-debug-symbols -quiet
-dumpbase gmic.cpp -mmacosx-version-min\x10.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-size2" "--param"
"l1-cache-line-sized" "--param" "l2-cache-sizea44" "-mtune=core2" "-fPIC"
"-feliminate-unused-debug-symbols" "-quiet" "-dumpbase" "gmic.cpp"
"-mmacosx-version-min\x10.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\x100 --param ggc-min-heapsize\x131072

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\x100 --param ggc-min-heapsize\x131072

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-bugzilla@gcc.gnu.org>:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?idc262
>
> --- 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
karo13de@googlemail.com


  parent reply	other threads:[~2014-11-02 22:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-14 14:24 [Bug c++/63262] New: internal compiler error including math.h karo13de at googlemail dot com
2014-09-29 12:22 ` [Bug c++/63262] " fxcoudert at gcc dot gnu.org
2014-10-04 14:38 ` karo13de at googlemail dot com
2014-10-04 15:00 ` fxcoudert at gcc dot gnu.org
2014-11-02 21:38 ` karo13de at googlemail dot com
2014-11-02 21:46 ` fxcoudert at gcc dot gnu.org
2014-11-02 22:13 ` [Bug c++/63262] [4.9.2] ICE including math.h on darwin fxcoudert at gcc dot gnu.org
2014-11-02 22:17 ` karo13de at googlemail dot com
2014-11-02 22:22 ` karo13de at googlemail dot com [this message]
2014-11-02 22:51 ` fxcoudert at gcc dot gnu.org
2014-11-02 22:52 ` fxcoudert at gcc dot gnu.org
2014-11-02 22:53 ` fxcoudert at gcc dot gnu.org
2014-11-02 23:09 ` karo13de at googlemail dot com
2014-11-03  7:09 ` jakub at gcc dot gnu.org
2014-11-03  8:48 ` fxcoudert at gcc dot gnu.org
2014-11-03 12:09 ` karo13de at googlemail dot com
2014-11-03 12:25 ` karo13de at googlemail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-63262-4-SqTkegAGfE@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).