[Bug gprofng/31116] New: gprofng test fails with "comparison of results in synprog failed" on x86_64-linux-gnu

2023-12-06 Thread doko at debian dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31116

Bug ID: 31116
   Summary: gprofng test fails with "comparison of results in
synprog failed" on x86_64-linux-gnu
   Product: binutils
   Version: 2.42 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gprofng
  Assignee: vladimir.mezentsev at oracle dot com
  Reporter: doko at debian dot org
  Target Milestone: ---

Created attachment 15239
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15239&action=edit
test log

this fails with trunk 20231206, attaching the test log.  There seems to be
something wrong with the shell script. In the /gprofng I see an
unexpected file:

 ls builddir-single/gprofng/
'&1'config.logdoc   gprofng.sumMakefile  
stamp-h1
 config.cache   config.status gp-display-html   libcollector   site.exp  
tmpdir
 config.h   development.exp   gprofng.log   libtoolsrc

$ cat builddir-single/gprofng/??
Error: Warning! Source file `tmpdir/setpath_map/src/t.c' is newer than the
experiment data


=== gprofng tests ===

Schedule of variations:
unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using
/home/packages/binutils/binutils-2.41.50.20231206/gprofng/testsuite/config/default.exp
as tool-and-target-specific interface file.
### LD_LIBRARY_PATH:
/home/packages/binutils/binutils-2.41.50.20231206/builddir-single/gprofng/tmpdir/root/usr/lib/x86_64-linux-gnu/gprofng:/home/packages/binutils/binutils-2.41.50.20231206/builddir-single/gprofng/tmpdir/root/usr/lib/x86_64-linux-gnu/gprofng/..
### GPROFNG_SYSCONFDIR:
/home/packages/binutils/binutils-2.41.50.20231206/builddir-single/gprofng/tmpdir/root/etc
### GPROFNG:
/home/packages/binutils/binutils-2.41.50.20231206/builddir-single/gprofng/tmpdir/root/usr/bin/gprofng
Running
/home/packages/binutils/binutils-2.41.50.20231206/gprofng/testsuite/gprofng.display/display.exp
...
ERROR: comparison of results in synprog failed
Running
/home/packages/binutils/binutils-2.41.50.20231206/gprofng/testsuite/gprofng.display/gp-archive.exp
...
Running
/home/packages/binutils/binutils-2.41.50.20231206/gprofng/testsuite/gprofng.display/gp-collect-app_F.exp
...
Running
/home/packages/binutils/binutils-2.41.50.20231206/gprofng/testsuite/gprofng.display/setpath_map.exp
...

=== gprofng Summary ===

# of expected passes4
# of unresolved testcases   1
# of unsupported tests  1
make[5]: *** [Makefile:924: check-small] Error 1

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


[Bug gas/31115] [ARM] The minimalistic DWARF DIE for function has wrong address in Thumb mode

2023-12-06 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31115

Nick Clifton  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |nickc at redhat dot com
 Ever confirmed|0   |1
 CC||nickc at redhat dot com
   Last reconfirmed||2023-12-06
 Status|UNCONFIRMED |ASSIGNED

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


[Bug gas/31115] [ARM] The minimalistic DWARF DIE for function has wrong address in Thumb mode

2023-12-06 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31115

--- Comment #1 from Nick Clifton  ---
Created attachment 15240
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15240&action=edit
Proposed patch

Hi Thiago,

  Please could you try out this patch and let me know if it works for you ?

Cheers
  Nick

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


[Bug gas/31115] [ARM] The minimalistic DWARF DIE for function has wrong address in Thumb mode

2023-12-06 Thread thiago.bauermann at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31115

--- Comment #2 from Thiago Jung Bauermann  
---
(In reply to Nick Clifton from comment #1)
> Created attachment 15240 [details]
> Proposed patch
> 
> Hi Thiago,
> 
>   Please could you try out this patch and let me know if it works for you ?
> 
> Cheers
>   Nick

Hello Nick,

Thank you for the quick response! I tested the patch, but unfortunately the DIE
still has the LSB bit set in DW_AT_low_pc, and GDB still fails:

 <1><1fe>: Abbrev Number: 2 (DW_TAG_subprogram)
<1ff>   DW_AT_name: (strp) (offset: 0x47a): main
<203>   DW_AT_external: (flag_present) 1
<203>   DW_AT_type: (ref_udata) <0x209>
<204>   DW_AT_low_pc  : (addr) 0x10517
<208>   DW_AT_high_pc : (udata) 12


(gdb) x /i main+8
   0x1051f :b.n 0x10c62
(gdb) FAIL: gdb.arch/pr25124.exp: disassemble thumb instruction (1st try)

Without the patch, DW_AT_low_pc had value 0x10519:

$ diff -U 4 main-86b775c51597/readelf-w.out patch-6eab43ba8bd7/readelf-w.out 
--- main-86b775c51597/readelf-w.out 2023-12-04 14:48:06.217429953 -0300
+++ patch-6eab43ba8bd7/readelf-w.out2023-12-06 14:37:58.742262164 -0300
@@ -316,9 +316,9 @@
  <1><1fe>: Abbrev Number: 2 (DW_TAG_subprogram)
 <1ff>   DW_AT_name: (strp) (offset: 0x47a): main
 <203>   DW_AT_external: (flag_present) 1
 <203>   DW_AT_type: (ref_udata) <0x209>
-<204>   DW_AT_low_pc  : (addr) 0x10519
+<204>   DW_AT_low_pc  : (addr) 0x10517
 <208>   DW_AT_high_pc : (udata) 12
  <1><209>: Abbrev Number: 3 (DW_TAG_unspecified_type)
  <1><20a>: Abbrev Number: 0
   Compilation Unit @ offset 0x20b:

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


[Bug gprofng/31109] gprofng not built and installed in a combined binutils+gcc build

2023-12-06 Thread vladimir.mezentsev at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31109

--- Comment #7 from Vladimir Mezentsev  
---

I configured my gcc trank build:
   /configure --prefix=`pwd`/INSTALL --enable-gprofng
I see the binutils-gdb targets in Makefile.
For example:
% grep gprof Makefile 
maybe-configure-gprof \
maybe-configure-gprofng \
all-host: maybe-all-gprof
all-host: maybe-all-gprofng
info-host: maybe-info-gprof
info-host: maybe-info-gprofng


But after `make -j 40`, there are no gprofng, gprof, libctf, etc in build.
How should I configure my build to reproduce errors ?

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


Issue 63660 in oss-fuzz: binutils:fuzz_objdump: Direct-leak in xmalloc

2023-12-06 Thread sheriffbot via monorail
Updates:
Labels: -restrict-view-commit

Comment #3 on issue 63660 by sheriffbot: binutils:fuzz_objdump: Direct-leak in 
xmalloc
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63660#c3

This bug has been fixed. It has been opened to the public.

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

Issue 63742 in oss-fuzz: binutils:fuzz_objdump_safe: Segv on unknown address in bfd_getl32

2023-12-06 Thread sheriffbot via monorail
Updates:
Labels: -restrict-view-commit

Comment #3 on issue 63742 by sheriffbot: binutils:fuzz_objdump_safe: Segv on 
unknown address in bfd_getl32
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63742#c3

This bug has been fixed. It has been opened to the public.

- 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 gprofng/31116] gprofng test fails with "comparison of results in synprog failed" on x86_64-linux-gnu

2023-12-06 Thread vladimir.mezentsev at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31116

Vladimir Mezentsev  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED

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


[Bug ld/31120] New: ld-scripts/fill2 fails when bfd_vma is 32 bits

2023-12-06 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31120

Bug ID: 31120
   Summary: ld-scripts/fill2 fails when bfd_vma is 32 bits
   Product: binutils
   Version: 2.42 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: amodra at gmail dot com
  Target Milestone: ---

regexp_diff match failure
regexp "^  0x0020 00010203 04050607 04050607 04050607 $"
line   "  0x0020 00010203 04050607   "
FAIL: ld-scripts/fill2

The reason for the failure is that FILL ($0001020304050607) in fil2.t has the
value read by strtoul (via scan_bfd_vma in ldlex.l), and strtoul returns -1 on
overflow.

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