[Bug ld/29310] [2.39 Regression] copy relocation against non-copyable protected symbol `__cxa_ pure_virtual' on aarch64-linux-gnu

2022-07-20 Thread doko at debian dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=29310

Matthias Klose  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #9 from Matthias Klose  ---
and I cannot reproduce that anymore with updated binutils and gcc builds.
closing

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


[Bug binutils/29362] Some memory leaks occur when binutils code is tested using the binutils fuzz test suite.

2022-07-20 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29362

Alan Modra  changed:

   What|Removed |Added

   Severity|critical|minor

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


[Bug gas/29363] Some memory leaks occur when binutils code is tested using the binutils fuzz test suite.

2022-07-20 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29363

Alan Modra  changed:

   What|Removed |Added

   Severity|critical|minor

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


[Bug binutils/29370] dwarf.c: infinite loop in display_debug_abbrev

2022-07-20 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29370

Alan Modra  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Status|UNCONFIRMED |ASSIGNED
 Ever confirmed|0   |1
   Last reconfirmed||2022-07-20

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


[Bug binutils/29389] New: Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)

2022-07-20 Thread luca.bacci at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29389

Bug ID: 29389
   Summary: Failed assertions in bfd/cofflink.c and
bfd/coff-x86_64.c during the linking stage (MSYS2
MinGW64)
   Product: binutils
   Version: 2.39
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: luca.bacci at outlook dot com
  Target Milestone: ---

Hi! First of all, thanks for developing such great tools!

We've encountered an issue while building a few projects on an up-to-date MSYS2
MinGW64 envirnoment. What happens is that during the final link stage of
executables, ld.exe hits two failed assertions and exits:

ld.exe: warning:
subprojects/glib/gobject/libgobject-2.0.dll.a(libgobject_2_0_0_dll_d000431.o):
local symbol `0' has no section
ld.exe: BFD (GNU Binutils) 2.38.90.20220720 assertion fail
../../binutils-gdb/bfd/cofflink.c:2279
ld.exe: BFD (GNU Binutils) 2.38.90.20220720 assertion fail
../../binutils-gdb/bfd/coff-x86_64.c:696
ld.exe:
subprojects/glib/gobject/libgobject-2.0.dll.a(libgobject_2_0_0_dll_d000431.o):
bad reloc address 0x126 in section `.text'

That happens both with the current stable binutils release (version 2.38) and a
custom build from binutils-2_39-branch.

Reproduction steps:

* Install the needed packages with the command: pacman -S --needed git
mingw-w64-x86_64-{cc,meson,libadwaita,gtksourceview5,pkgconf,gobject-introspection}
* Open the MSYS2 MinGW64 Shell (or alternatively the MSYS2 CLang64 Shell)
* Type the following command:
  git clone https://gitlab.gnome.org/GNOME/gnome-text-editor
  cd gnome-text-editor
  meson setup builddir -Dforce_fallback_for=libadwaita && meson compile -C
builddir/

Issue originally reported at https://gitlab.gnome.org/GNOME/gtk/-/issues/5053

I remain at your disposal for any needed information or testing.
Thank you!

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


[Bug binutils/29390] New: On aarch64 binaries readelf --debug-dump=frames reports DW_CFA_AARCH64_negate_ra_state as DW_CFA_GNU_window_save

2022-07-20 Thread wcohen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29390

Bug ID: 29390
   Summary: On aarch64 binaries readelf --debug-dump=frames
reports DW_CFA_AARCH64_negate_ra_state as
DW_CFA_GNU_window_save
   Product: binutils
   Version: 2.37
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: wcohen at redhat dot com
  Target Milestone: ---

When reviewing the output of readelf --debug-dump=frames I noticed that the
output for aarch64 contained DW_CFA_GNU_window_save rather than the expected
DW_CFA_AARCH64_negate_ra_state.  Both of the call frame instructions are coded
as 0x2d.  However, the DW_CFA_GNU_window_save is for sparc binaries and the
DW_CFA_AARCH64_negate_ra_state is for aarch64 binaries.

It is pretty easy to demonstrate the issue on a fedora 36 aarch64 system with
the steps below. They shows many DW_CFA_GNU_window_save entries rather than
DW_CFA_AARCH64_negate_ra.

sudo dnf install systemtap
readelf --debug-dump=frames /usr/bin/stap |grep -v "^0" | awk -F: '{print
$1}'|grep DW_CFA |sort | uniq -c
  26096   DW_CFA_advance_loc
783   DW_CFA_advance_loc1
193   DW_CFA_advance_loc2
  5   DW_CFA_def_cfa
   5908   DW_CFA_def_cfa_offset
  2   DW_CFA_def_cfa_register
   5901   DW_CFA_GNU_window_save
   5014   DW_CFA_nop
  27676   DW_CFA_offset
 35   DW_CFA_offset_extended
   3110   DW_CFA_remember_state
  26685   DW_CFA_restore
 32   DW_CFA_restore_extended
   3110   DW_CFA_restore_state
  1   DW_CFA_undefined

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


Issue 47073 in oss-fuzz: binutils:fuzz_nm: Timeout in fuzz_nm

2022-07-20 Thread sheriffbot via monorail
Updates:
Labels: Deadline-Approaching

Comment #2 on issue 47073 by sheriffbot: binutils:fuzz_nm: Timeout in fuzz_nm
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47073#c2

This bug is approaching its deadline for being fixed, and will be automatically 
derestricted within 7 days. If a fix is planned within 2 weeks after the 
deadline has passed, a grace extension can be granted.

- Your friendly Sheriffbot

-- 
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.

[Bug binutils/29370] dwarf.c: infinite loop in display_debug_abbrev

2022-07-20 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=29370

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Alan Modra :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=695c6dfe7e85006b98c8b746f3fd5f913c94ebff

commit 695c6dfe7e85006b98c8b746f3fd5f913c94ebff
Author: Alan Modra 
Date:   Thu Jul 21 09:56:15 2022 +0930

PR29370, infinite loop in display_debug_abbrev

The PR29370 testcase is a fuzzed object file with multiple
.trace_abbrev sections.  Multiple .trace_abbrev or .debug_abbrev
sections are not a violation of the DWARF standard.  The DWARF5
standard even gives an example of multiple .debug_abbrev sections
contained in groups.  Caching and lookup of processed abbrevs thus
needs to be done by section and offset rather than base and offset.
(Why base anyway?)  Or, since section contents are kept, by a pointer
into the contents.

PR 29370
* dwarf.c (struct abbrev_list): Replace abbrev_base and
abbrev_offset with raw field.
(find_abbrev_list_by_abbrev_offset): Delete.
(find_abbrev_list_by_raw_abbrev): New function.
(process_abbrev_set): Set list->raw and list->next.
(find_and_process_abbrev_set): Replace abbrev list lookup with
new function.  Don't set list abbrev_base, abbrev_offset or next.

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


[Bug binutils/29370] dwarf.c: infinite loop in display_debug_abbrev

2022-07-20 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29370

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED
   Target Milestone|--- |2.40

--- Comment #2 from Alan Modra  ---
Fixed for 2.40

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


[Bug binutils/29337] [readelf] CU/TU mixup in .gdb_index

2022-07-20 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29337

Alan Modra  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com

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


[Bug binutils/29337] [readelf] CU/TU mixup in .gdb_index

2022-07-20 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=29337

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Alan Modra :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e82295b23d0e52b0dadffb8c0d0b99462cd20fa8

commit e82295b23d0e52b0dadffb8c0d0b99462cd20fa8
Author: Alan Modra 
Date:   Thu Jul 21 14:54:54 2022 +0930

PR29337, readelf CU/TU mixup in .gdb_index

Commit 244e19c79111 changed a number of variables in display_gdb_index
to count entries rather than words.

PR 29337
* dwarf.c (display_gdb_index): Correct use of cu_list_elements.

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


[Bug binutils/29337] [readelf] CU/TU mixup in .gdb_index

2022-07-20 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=29337

--- Comment #2 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_39-branch branch has been updated by Alan Modra
:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=aabc43be527ff501a2fbed7c3641af544c22e47b

commit aabc43be527ff501a2fbed7c3641af544c22e47b
Author: Alan Modra 
Date:   Thu Jul 21 14:54:54 2022 +0930

PR29337, readelf CU/TU mixup in .gdb_index

Commit 244e19c79111 changed a number of variables in display_gdb_index
to count entries rather than words.

PR 29337
* dwarf.c (display_gdb_index): Correct use of cu_list_elements.

(cherry picked from commit e82295b23d0e52b0dadffb8c0d0b99462cd20fa8)

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


[Bug binutils/29337] [readelf] CU/TU mixup in .gdb_index

2022-07-20 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29337

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
   Target Milestone|--- |2.39
 Status|ASSIGNED|RESOLVED

--- Comment #3 from Alan Modra  ---
Fixed for 2.39

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