This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug symtab/18392] New: ../../gdb/dwarf2loc.c:834: internal-error: chain_candidate: Assertion `result->callers + result->callees < result->length' failed


https://sourceware.org/bugzilla/show_bug.cgi?id=18392

            Bug ID: 18392
           Summary: ../../gdb/dwarf2loc.c:834: internal-error:
                    chain_candidate: Assertion `result->callers +
                    result->callees < result->length' failed
           Product: gdb
           Version: 7.9
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: schwab@linux-m68k.org
                CC: jan.kratochvil at redhat dot com
  Target Milestone: ---

This assertion happend while debugging cc1.  The condition doesn't make sense,
since result is initialized with length == callers == callees.

DW_OP_GNU_entry_value resolving has found function "eliminate_regs_1(rtx_def*,
machine_mode, rtx_def*, bool, bool)" at 0x9d0e40 can call itself via tail calls
may_use_invariant=<optimized out>, for_costs=true)
    at ../../gcc/gcc/reload1.c:2917
tailcall: initial: 0x9d12de(eliminate_regs_1(rtx_def*, machine_mode, rtx_def*,
bool, bool))
tailcall: compare: 0x9d1108(eliminate_regs_1(rtx_def*, machine_mode, rtx_def*,
bool, bool)) 0x9d12de(eliminate_regs_1(rtx_def*, machine_mode, rtx_def*, bool,
bool))
tailcall: reduced: | 0x9d12de(eliminate_regs_1(rtx_def*, machine_mode,
rtx_def*, bool, bool))
../../gdb/dwarf2loc.c:830: internal-error: chain_candidate: Assertion
`result->callers + result->callees < result->length' failed.

(top-gdb) p *result
$11 = {callers = 0, callees = 1, length = 1, call_site = {0x278c230}}

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]