bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x8


From: luca.bacci at outlook dot com
Subject: [Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)
Date: Fri, 22 Jul 2022 14:20:17 +0000

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

--- Comment #5 from Luca Bacci <luca.bacci at outlook dot com> ---
Here's a backtrace when hitting the failed assertion in cofflink.c:2279

(gdb) bt
#0  _bfd_coff_link_input_bfd (flaginfo=0xfffb40, input_bfd=0xb3f2710)
    at ../../binutils-gdb/bfd/cofflink.c:2283
#1  0x00007ff71e814ee8 in _bfd_coff_final_link (abfd=0x4e662a0,
    info=0x7ff71ead7880 <link_info>) at ../../binutils-gdb/bfd/cofflink.c:866
#2  0x00007ff71e7b41fd in ldwrite () at ../../binutils-gdb/ld/ldwrite.c:545
#3  0x00007ff71e7b0b8b in main (argc=79, argv=0x11b5890)
    at ../../binutils-gdb/ld/ldmain.c:513

----------------------------------------------

(gdb) bt -full
#0  _bfd_coff_link_input_bfd (flaginfo=0xfffb40, input_bfd=0xb3f2710)
    at ../../binutils-gdb/bfd/cofflink.c:2283
        a = 0
        pos = 26247420
        amt = 144
        n_tmask = 48
        n_btshft = 4
        adjust_symndx = 0x0
        output_bfd = 0x4e662a0
        strings = 0x0
        syment_base = 56846
        copy = false
        hash = true
        isymesz = 18
        osymesz = 18
        linesz = 6
        esym = 0x161193c0 '▒' <repeats 16 times>
        esym_end = 0x161193c0 '▒' <repeats 16 times>
        isymp = 0x112c3030
        secpp = 0x10c51320
        indexp = 0x10c47f58
        output_index = 56952
        outsym = 0x10c71060 ""
        sym_hash = 0xb3dbec0
        o = 0x0
        __PRETTY_FUNCTION__ = "_bfd_coff_link_input_bfd"
#1  0x00007ff71e814ee8 in _bfd_coff_final_link (abfd=0x4e662a0,
    info=0x7ff71ead7880 <link_info>) at ../../binutils-gdb/bfd/cofflink.c:866
        symesz = 18
        flaginfo = {info = 0x7ff71ead7880 <link_info>,
          output_bfd = 0x4e662a0, failed = false, global_to_static = false,
          strtab = 0x10a91e50, section_info = 0x0, last_file_index = 55524,
          last_file = {_n = {_n_name = ".file\000\000", _n_n = {
                _n_zeroes = 435610543662, _n_offset = 13451671603782742029},
              _n_nptr = {
                0x656c69662e <error: Cannot access memory at address
0x656c69662e>,
                0xbaadf00dbaadf00d <error: Cannot access memory at address
0xbaadf00dbaadf00d>}}, n_value = 55621, n_scnum = -2, n_flags = 61453, n_type =
0,
            n_sclass = 103 'g', n_numaux = 1 '\001'}, last_bf_index = -1,
          last_bf = {x_sym = {x_tagndx = {l = 16776160, p = 0xfffbe0},
              x_misc = {x_lnsz = {x_lnno = 4236, x_size = 7807},
                x_fsize = 511643788}, x_fcnary = {x_fcn = {
                  x_lnnoptr = 82207392, x_endndx = {l = 48, p = 0x30}},
                x_ary = {x_dimen = {25248, 1254, 0, 0}}}, x_tvndx = 52223},
            x_file = {x_n = {
                x_fname =
"▒▒▒\000\000\000\000\000▒\020\177\036▒\177\000\000▒b▒\004", x_n = {x_zeroes =
16776160, x_offset = 140699345293452}},
              x_ftype = 48 '0'}, x_scn = {x_scnlen = 16776160, x_nreloc = 0,
              x_nlinno = 0, x_checksum = 511643788, x_associated = 32759,
              x_comdat = 0 '\000'}, x_tv = {x_tvfill = 16776160, x_tvlen = 0,
              x_tvran = {0, 4236}}, x_csect = {x_scnlen = {l = 16776160,
                p = 0xfffbe0}, x_parmhash = 511643788, x_snhash = 32759,
              x_smtyp = 0 '\000', x_smclas = 0 '\000', x_stab = 82207392,
              x_snstab = 0}, x_sect = {x_scnlen = 16776160, x_nreloc = 0}},
          debug_merge = {root = {table = 0x10c3eed0,
              newfunc = 0x7ff71e8132be <_bfd_coff_debug_merge_hash_newfunc>,
              memory = 0x1123bda0, size = 4051, count = 0, entsize = 32,
              frozen = 0}}, internal_syms = 0x112c1fa0,
          sec_ptrs = 0x10c50fd0, sym_indices = 0x10c47db0,
          outsyms = 0x10c70fd0 "0\001",
          linenos = 0xca80fe0 "`", '▒' <repeats 16 times>, "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒",
          contents = 0x12255040 "\001", external_relocs = 0x10c5d090 "",
          internal_relocs = 0x10c90fa0}
        debug_merge_allocated = true
        long_section_names = true
        o = 0x4e67540
        p = 0x10b2da40
        max_sym_count = 6161
        max_lineno_count = 0
        max_reloc_count = 3828
        max_output_reloc_count = 0
        max_contents_size = 1520608
        rel_filepos = 25224192
        relsz = 10
        line_filepos = 25224192
        linesz = 6
        sub = 0xb3f2710
        external_relocs = 0x0
        strbuf = "\000\000\000"
        amt = 91872
#2  0x00007ff71e7b41fd in ldwrite () at ../../binutils-gdb/ld/ldwrite.c:545
No locals.
#3  0x00007ff71e7b0b8b in main (argc=79, argv=0x11b5890)
    at ../../binutils-gdb/ld/ldmain.c:513
        emulation = 0x7ff71e96cd8d <__PRETTY_FUNCTION__.0+1277> "i386pep"
        start_time = 0
(gdb)

----------------------------------------------

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]