[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/32067] ld crash in _bfd_elf_link_keep_memory when building stati
From: |
sam at gentoo dot org |
Subject: |
[Bug ld/32067] ld crash in _bfd_elf_link_keep_memory when building statifier-1.7.4 |
Date: |
Fri, 09 Aug 2024 16:58:48 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=32067
--- Comment #2 from Sam James <sam at gentoo dot org> ---
(gdb) p info->output_bfd
$1 = (bfd *) 0x5555556bca80
(gdb) p *info->output_bfd
$2 = {filename = 0x5555556bcbd0 "dl-var", xvec = 0x7ffff7fb1c60 <binary_vec>,
iostream = 0x55555569cee0, iovec = 0x7ffff7fa9080 <cache_iovec>, lru_prev =
0x5555556c8ac0,
lru_next = 0x5555556c8ac0, where = 0, mtime = 0, id = 0, flags = 384, format
= bfd_object, direction = write_direction, last_io = bfd_io_seek, cacheable =
1, target_defaulted = 0,
opened_once = 1, mtime_set = 0, no_export = 0, output_has_begun = 0,
has_armap = 0, is_thin_archive = 0, no_element_cache = 0, selective_search = 0,
is_linker_output = 1,
is_linker_input = 0, plugin_format = bfd_plugin_unknown, lto_output = 0,
read_only = 0, lto_type = lto_non_object, in_format_matches = 0,
plugin_dummy_bfd = 0x0, origin = 0,
proxy_origin = 0, section_htab = {table = 0x5555556bdbc0, newfunc =
0x7ffff7ecaafe <bfd_section_hash_newfunc>, memory = 0x5555556bca20, size = 13,
count = 0, entsize = 304,
frozen = 0}, sections = 0x0, section_last = 0x0, section_count = 0,
archive_plugin_fd = -1, archive_plugin_fd_open_count = 0, archive_pass = 0,
alloc_size = 7, start_address = 0,
outsymbols = 0x0, symcount = 0, dynsymcount = 0, arch_info = 0x7ffff7fbb8c0
<bfd_i386_arch>, size = 0, arelt_data = 0x0, my_archive = 0x0, archive_next =
0x0, archive_head = 0x0,
nested_archives = 0x0, link = {next = 0x5555556beba0, hash = 0x5555556beba0},
tdata = {aout_data = 0x0, aout_ar_data = 0x0, coff_obj_data = 0x0, pe_obj_data
= 0x0,
xcoff_obj_data = 0x0, ecoff_obj_data = 0x0, srec_data = 0x0, verilog_data =
0x0, ihex_data = 0x0, tekhex_data = 0x0, elf_obj_data = 0x0, mmo_data = 0x0,
trad_core_data = 0x0,
som_data = 0x0, hpux_core_data = 0x0, hppabsd_core_data = 0x0,
sgi_core_data = 0x0, lynx_core_data = 0x0, osf_core_data = 0x0, cisco_core_data
= 0x0, netbsd_core_data = 0x0,
mach_o_data = 0x0, mach_o_fat_data = 0x0, plugin_data = 0x0, pef_data =
0x0, pef_xlib_data = 0x0, sym_data = 0x0, any = 0x0}, usrdata = 0x0, memory =
0x5555556bca00,
build_id = 0x0, mmapped = 0x0}
(gdb)
and then
(gdb) p *info->output_bfd.xvec
$10 = {name = 0x7ffff7f7349c "binary", flavour = bfd_target_unknown_flavour,
byteorder = BFD_ENDIAN_UNKNOWN, header_byteorder = BFD_ENDIAN_UNKNOWN,
object_flags = 2,
section_flags = 379, symbol_leading_char = 0 '\000', ar_pad_char = 32 ' ',
ar_max_namelen = 16 '\020', match_priority = 255 '\377',
keep_unused_section_symbols = true,
[...]
so we call get_elf_backend_data even though the format is 'binary'. Oops.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/32067] New: ld crash in _bfd_elf_link_keep_memory when building statifier-1.7.4, sam at gentoo dot org, 2024/08/09
- [Bug ld/32067] ld crash in _bfd_elf_link_keep_memory when building statifier-1.7.4, sam at gentoo dot org, 2024/08/09
- [Bug ld/32067] ld crash in _bfd_elf_link_keep_memory when building statifier-1.7.4,
sam at gentoo dot org <=
- [Bug ld/32067] ld crash in _bfd_elf_link_keep_memory when building statifier-1.7.4, sam at gentoo dot org, 2024/08/09
- [Bug ld/32067] ld crash in _bfd_elf_link_keep_memory when building statifier-1.7.4 with -Wl,--oformat,binary, sam at gentoo dot org, 2024/08/09
- [Bug ld/32067] ld crash in _bfd_elf_link_keep_memory when building statifier-1.7.4 with -Wl,--oformat,binary, amodra at gmail dot com, 2024/08/09
- [Bug ld/32067] ld crash in _bfd_elf_link_keep_memory when building statifier-1.7.4 with -Wl,--oformat,binary, cvs-commit at gcc dot gnu.org, 2024/08/09
- [Bug ld/32067] ld crash in _bfd_elf_link_keep_memory when building statifier-1.7.4 with -Wl,--oformat,binary, cvs-commit at gcc dot gnu.org, 2024/08/10
- [Bug ld/32067] ld crash in _bfd_elf_link_keep_memory when building statifier-1.7.4 with -Wl,--oformat,binary, sam at gentoo dot org, 2024/08/10
- [Bug ld/32067] ld crash in _bfd_elf_link_keep_memory when building statifier-1.7.4 with -Wl,--oformat,binary, amodra at gmail dot com, 2024/08/10
- [Bug ld/32067] ld crash in _bfd_elf_link_keep_memory when building statifier-1.7.4 with -Wl,--oformat,binary, hjl.tools at gmail dot com, 2024/08/11
- [Bug ld/32067] ld crash in _bfd_elf_link_keep_memory when building statifier-1.7.4 with -Wl,--oformat,binary, amodra at gmail dot com, 2024/08/11
- [Bug ld/32067] ld crash in _bfd_elf_link_keep_memory when building statifier-1.7.4 with -Wl,--oformat,binary, hjl.tools at gmail dot com, 2024/08/11