www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 157] New: using -O{1,2,3} together with -g causes ICE (seg fault)

Date: Wed, 3 Sep 2014 09:41:16 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"

http://bugzilla.gdcproject.org/show_bug.cgi?id=157

            Bug ID: 157
           Summary: using -O{1,2,3} together with -g causes ICE (seg
                    fault)
           Product: GDC
           Version: 4.9.x
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: maor weka.io

Working on Linux (Ubuntu 4.10) and gdc 4.10.0 20140629 I get an ICE with the
following backtrace when compiling with both -g and -O1 (either one works fine
but not both).

code:

import std.process;
import std.string;

string runSomething() {
    return execute("some executable").output.chomp;
}

void main() {}


cmdline: gdc -g -O1 ./test.d -o/tmp/test

backtrace:

./test.d:1: internal compiler error: Segmentation fault
0xae393f crash_signal
    ../../gcc-4.10-20140629/gcc/toplev.c:337
0x10fe570 htab_hash_string
    ../../gcc-4.10-20140629/libiberty/hashtab.c:839
0x802827 external_ref_hasher::hash(external_ref const*)
    ../../gcc-4.10-20140629/gcc/dwarf2out.c:7619
0x802827 hash_table<external_ref_hasher, xcallocator,
false>::find_slot(external_ref const*, insert_option)
    ../../gcc-4.10-20140629/gcc/hash-table.h:532
0x802827 lookup_external_ref
    ../../gcc-4.10-20140629/gcc/dwarf2out.c:7647
0x8028cc optimize_external_refs_1
    ../../gcc-4.10-20140629/gcc/dwarf2out.c:7685
0x8028f8 optimize_external_refs_1
    ../../gcc-4.10-20140629/gcc/dwarf2out.c:7689
0x802d2e optimize_external_refs
    ../../gcc-4.10-20140629/gcc/dwarf2out.c:7738
0x8030ec output_comp_unit
    ../../gcc-4.10-20140629/gcc/dwarf2out.c:8970
0x825ea9 dwarf2out_finish
    ../../gcc-4.10-20140629/gcc/dwarf2out.c:24439
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://bugzilla.gdcproject.org> for instructions.

-- 
You are receiving this mail because:
You are watching all bug changes.
Sep 03 2014