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"


            Bug ID: 157
           Summary: using -O{1,2,3} together with -g causes ICE (seg
           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).


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


./test.d:1: internal compiler error: Segmentation fault
0xae393f crash_signal
0x10fe570 htab_hash_string
0x802827 external_ref_hasher::hash(external_ref const*)
0x802827 hash_table<external_ref_hasher, xcallocator,
false>::find_slot(external_ref const*, insert_option)
0x802827 lookup_external_ref
0x8028cc optimize_external_refs_1
0x8028f8 optimize_external_refs_1
0x802d2e optimize_external_refs
0x8030ec output_comp_unit
0x825ea9 dwarf2out_finish
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