bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under m


From: medhefgo at web dot de
Subject: [Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO
Date: Thu, 19 Jan 2023 14:27:16 +0000

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

--- Comment #12 from Jan Janssen <medhefgo at web dot de> ---
Now it crashes here (sec->output_section is NULL):

#0  _bfd_coff_generic_relocate_section (output_bfd=0x55555581c000,
info=0x5555557d8ec0 <link_info>, input_bfd=0x555555864020,
input_section=0x555555878008, contents=0x555555877f40 "U\270 \020",
relocs=0x555555827f50, syms=0x555555827aa0, sections=0x555555827df0) at
/usr/src/debug/mingw-w64-binutils/binutils-2.40/bfd/cofflink.c:2985
        sym = 0x555555827d48
        addend = 18446744073709551612
        val = 0
        sec = 0x5555558853c8
        howto = 0x5555557c7580 <howto_table+160>
        symndx = 17
        h = 0x55555586b430
        rstat = 0
        rel = 0x555555827f50
        relend = 0x555555827f70
        __PRETTY_FUNCTION__ = "_bfd_coff_generic_relocate_section"
#1  0x000055555560c43e in coff_pe_amd64_relocate_section
(output_bfd=0x55555581c000, info=0x5555557d8ec0 <link_info>,
input_bfd=0x555555864020, input_section=0x555555878008, contents=0x555555877f40
"U\270 \020", relocs=0x555555827f50, syms=0x555555827aa0,
sections=0x555555827df0) at
/usr/src/debug/mingw-w64-binutils/binutils-2.40/bfd/coff-x86_64.c:650
        rel = 0x555555827f70
        relend = 0x555555827f70
#2  0x0000555555624296 in _bfd_coff_link_input_bfd (flaginfo=0x7fffffffdca0,
input_bfd=0x555555864020) at
/usr/src/debug/mingw-w64-binutils/binutils-2.40/bfd/cofflink.c:2378
        target_index = 1
        internal_relocs = 0x555555827f50
        irel = 0x555555827f70
        contents = 0x555555877f40 "U\270 \020"
        secdata = 0x5555558766d0
        n_tmask = 48
        n_btshft = 4
        adjust_symndx = 0x0
        output_bfd = 0x55555581c000
        strings = 0x0
        syment_base = 0
        copy = false
        hash = true
        isymesz = 18
        osymesz = 18
        linesz = 6
        esym = 0x555555877134 ""
        esym_end = 0x555555877134 ""
        isymp = 0x555555827d70
        secpp = 0x555555827e80
        indexp = 0x555555827f30
        output_index = 13
        outsym = 0x5555558a503a ""
        sym_hash = 0x5555558824e0
        o = 0x555555878008
        __PRETTY_FUNCTION__ = "_bfd_coff_link_input_bfd"
#3  0x000055555562011f in _bfd_coff_final_link (abfd=0x55555581c000,
info=0x5555557d8ec0 <link_info>) at
/usr/src/debug/mingw-w64-binutils/binutils-2.40/bfd/cofflink.c:866
        symesz = 18
        flaginfo = {info = 0x5555557d8ec0 <link_info>, output_bfd =
0x55555581c000, failed = 48, global_to_static = false, strtab = 0x555555863d90,
section_info = 0x0, last_file_index = 0, last_file = {_n = {_n_name =
".file\000\000", _n_n = {_n_zeroes = 435610543662, _n_offset =
140737352970352}, _n_nptr = {0x656c69662e <error: Cannot access memory at
address 0x656c69662e>, 0x7ffff7ee3070 <main_arena+1232> "`0\356\367\377\177"}},
n_value = 13, n_scnum = -2, n_flags = 21845, n_type = 0, n_sclass = 103 'g',
n_numaux = 1 '\001'}, last_bf_index = -1, last_bf = {x_sym = {x_tagndx = {l =
93824995155640, p = 0x55555581deb8}, x_misc = {x_lnsz = {x_lnno = 6216, x_size
= 21897}, x_fsize = 93824995629128}, x_fcnary = {x_fcn = {x_lnnoptr =
93824995629080, x_endndx = {l = -251233387510272, p = 0xffff1b812b2e8600}},
x_ary = {x_dimen = {6168, 21897, 21845, 0}}}, x_tvndx = 0}, x_file = {x_n =
{x_fname = "\270ށUUU\000\000H\030\211UUU\000\000\030\030\211U", x_n = {x_zeroes
= 93824995155640, x_offset = 93824995629128}}, x_ftype = 0 '\000'}, x_scn =
{x_scnlen = 93824995155640, x_nreloc = 6216, x_nlinno = 21897, x_checksum =
93824995629080, x_associated = 34304, x_comdat = 46 '.'}, x_tv = {x_tvfill =
93824995155640, x_tvlen = 6216, x_tvran = {21897, 21845}}, x_csect = {x_scnlen
= {l = 93824995155640, p = 0x55555581deb8}, x_parmhash = 93824995629128,
x_snhash = 6168, x_smtyp = 137 '\211', x_smclas = 85 'U', x_stab =
-251233387510272, x_snstab = 0}, x_sect = {x_scnlen = 93824995155640, x_nreloc
= 93824995629128}}, debug_merge = {root = {table = 0x55555589c0a0, newfunc =
0x55555561e4b4 <_bfd_coff_debug_merge_hash_newfunc>, memory = 0x555555885370,
size = 4051, count = 0, entsize = 32, frozen = 0}}, internal_syms =
0x555555827aa0, sec_ptrs = 0x555555827df0, sym_indices = 0x555555827ea0,
outsyms = 0x5555558a4f50 ".file", linenos = 0x555555877f80
"P,\356\367\377\177", contents = 0x555555877f40 "U\270 \020", external_relocs =
0x555555837000 "\a", internal_relocs = 0x555555827f50}
        debug_merge_allocated = true
        long_section_names = false
        o = 0x55555581d1e0
        p = 0x5555558914e8
        max_sym_count = 21
        max_lineno_count = 0
        max_reloc_count = 6
        max_output_reloc_count = 0
        max_contents_size = 48
        rel_filepos = 3584
        relsz = 10
        line_filepos = 3584
        linesz = 6
        sub = 0x555555864020
        external_relocs = 0x0
        strbuf = "\377\177\000"
        amt = 192
#4  0x00005555555aeddc in ldwrite () at
/usr/src/debug/mingw-w64-binutils/binutils-2.40/ld/ldwrite.c:545
No locals.
#5  0x00005555555ab6ca in main (argc=17, argv=0x7fffffffdf68) at
/usr/src/debug/mingw-w64-binutils/binutils-2.40/ld/ldmain.c:524
        emulation = 0x7fffffffe48d "i386pep"
        start_time = 9487
        flags = 0

-- 
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]