[Bug tools/23673] TEST ./tests/backtrace-dwarf fails on s390x in at least 0.173

2018-09-19 Thread ldv at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23673

--- Comment #8 from Dmitry V. Levin  ---
If a process is not being traced and PTRACE_TRACEME fails with EPERM, then it
must be a kernel issue.

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

[Bug tools/23673] TEST ./tests/backtrace-dwarf fails on s390x in at least 0.173

2018-09-19 Thread ldv at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23673

Dmitry V. Levin  changed:

   What|Removed |Added

 CC||ldv at sourceware dot org

--- Comment #10 from Dmitry V. Levin  ---
I'd suggest the following change to enhance error diagnostics:

diff --git a/tests/backtrace-dwarf.c b/tests/backtrace-dwarf.c
index 35f25ed6..3a22db31 100644
--- a/tests/backtrace-dwarf.c
+++ b/tests/backtrace-dwarf.c
@@ -143,9 +143,8 @@ main (int argc __attribute__ ((unused)), char **argv)
 case -1:
   abort ();
 case 0:;
-  long l = ptrace (PTRACE_TRACEME, 0, NULL, NULL);
-  assert (errno == 0);
-  assert (l == 0);
+  if (ptrace (PTRACE_TRACEME, 0, NULL, NULL))
+_exit(errno ?: -1);
   cleanup_13_main ();
   abort ();
 default:
@@ -155,10 +154,12 @@ main (int argc __attribute__ ((unused)), char **argv)
   errno = 0;
   int status;
   pid_t got = waitpid (pid, &status, 0);
-  assert (errno == 0);
-  assert (got == pid);
-  assert (WIFSTOPPED (status));
-  assert (WSTOPSIG (status) == SIGABRT);
+  if (got != pid)
+error (1, errno, "waitpid returned %d", got);
+  if (!WIFSTOPPED (status))
+error (1, 0, "unexpected wait status %u", status);
+  if (WSTOPSIG (status) != SIGABRT)
+error (1, 0, "unexpected signal %u", WSTOPSIG (status));

   Dwfl *dwfl = pid_to_dwfl (pid);
   dwfl_getthreads (dwfl, thread_callback, NULL);

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

[Bug tools/23673] TEST ./tests/backtrace-dwarf fails on s390x in at least 0.173

2018-09-19 Thread ldv at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23673

--- Comment #12 from Dmitry V. Levin  ---
(In reply to Martin Liska from comment #11)
> With the suggested patch I see following in test-suite.log on s390x:
[...]
> [   86s] FAIL: run-backtrace-dwarf.sh
> [   86s] 
> [   86s] 
> [   86s] 0x3ffbda40622raise
> [   86s] 0x3ffbda23ce2abort
> [   86s] /home/abuild/rpmbuild/BUILD/elfutils-0.174/tests/backtrace-dwarf:
> dwfl_thread_getframes: no error
> [   86s] dwarf: no main
> [   86s] FAIL run-backtrace-dwarf.sh (exit status: 1)

This doesn't look like a PTRACE_TRACEME failing with EPERM, abort() has
actually been invoked by the tracee.

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

[Bug binutils/23919] bfd doesn't handle ELF compressed data alignment

2018-11-28 Thread ldv at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23919

--- Comment #8 from Dmitry V. Levin  ---
When we backported these fixes to our 2_31 based branch,
we got a surprising regression in gold/testsuite:

$ cat gold/testsuite/debug_msg.sh.log
Did not find expected error in debug_msg_so.err:
   debug_msg.so: error: undefined reference to 'undef_fn1()'

Actual error output below:
gcctestdir/ld: internal error in read_header_prolog, at dwarf_reader.cc:1678
collect2: error: ld returned 1 exit status
FAIL debug_msg.sh (exit status: 1)

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

[Bug libelf/23916] [bisected] elifutils-0.175 broke kernel's objtool (elifutils-0.173 works)

2018-12-02 Thread ldv at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23916

Dmitry V. Levin  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-12-03
 Ever confirmed|0   |1

--- Comment #7 from Dmitry V. Levin  ---
Same here.  I think this bug report can be closed.

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

[Bug libdw/26177] eu-unstrip -n -k fails on kernels 4.14-4.19

2020-06-26 Thread ldv at sourceware dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=26177

Dmitry V. Levin  changed:

   What|Removed |Added

Summary|eu-unstrip -n -k fail on|eu-unstrip -n -k fails on
   |kernels 4.14-4.19   |kernels 4.14-4.19
 CC||ldv at sourceware dot org

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

[Bug tools/27351] please add a debugedit binary to elfutils

2021-02-05 Thread ldv at sourceware dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27351

--- Comment #1 from Dmitry V. Levin  ---
I second this.

The only technical complication I see is that debugedit uses Autotest for
testing while the rest of elfutils uses tests driven by Automake.

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

[Bug general/27450] Update Polish translation

2021-02-21 Thread ldv at sourceware dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27450

Dmitry V. Levin  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |NEW
 CC||ldv at sourceware dot org
   Last reconfirmed||2021-02-21

--- Comment #4 from Dmitry V. Levin  ---
(In reply to Piotr Drąg from comment #2)
> Created attachment 13238 [details]
> Update POTFILES.in
> 
> Turns out, there are some files missing from POTFILES.in.

Apparently, libcpu/i386_lex.l also contains translatable strings.
Could you add it to POTFILES.in, please?

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

[Bug general/27450] Update Polish translation

2021-03-05 Thread ldv at sourceware dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27450

--- Comment #8 from Dmitry V. Levin  ---
(In reply to Mark Wielaard from comment #7)
> Two questions:
> 
> 1) How should we manage the POTFILES? How did you note the missing files?
> Can this be automated somehow?

I was using
$ git grep -El '\<(_|[ns]gettext) *\("'

On the current master, it says the following files should be added:
$ grep '^[^#]' po/POTFILES.in |sort -u | \
  comm -13 - <(git grep -El '\<(_|[ns]gettext) *\("')
libcpu/i386_lex.l
libcpu/i386_parse.y

It also says the following listed files don't contain translations:
$ grep '^[^#]' po/POTFILES.in |sort -u | \
  comm -23 - <(git grep -El '\<(_|[ns]gettext) *\("')
libdw/dwarf_error.c
libdwfl/libdwflP.h
libelf/elf_error.c
src/elfcompress.c
src/stack.c
tests/backtrace.c
tests/dwflmodtest.c

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

[Bug general/27450] Update Polish translation

2021-03-06 Thread ldv at sourceware dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27450

--- Comment #10 from Dmitry V. Levin  ---
(In reply to Piotr Drąg from comment #9)
> I already included Signed-off-by in the patches. As for POTFILES, I use
> intltool-update -m to detect missing files.
> 
> (In reply to Dmitry V. Levin from comment #8)
> > It also says the following listed files don't contain translations:
> > $ grep '^[^#]' po/POTFILES.in |sort -u | \
> >   comm -23 - <(git grep -El '\<(_|[ns]gettext) *\("')
> > libdw/dwarf_error.c
> > libdwfl/libdwflP.h
> > libelf/elf_error.c
> > src/elfcompress.c
> > src/stack.c
> > tests/backtrace.c
> > tests/dwflmodtest.c
> 
> That’s not true, I guess your command ignores strings marked with N_?

Indeed.  Next time I'll use git grep -El '\<(N?_|[ns]gettext) *\("' instead.

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

[Bug tools/27856] eu-elfcompress exit code changed to a error if 'Nothing to do'

2021-05-12 Thread ldv at sourceware dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27856

Dmitry V. Levin  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
   Assignee|unassigned at sourceware dot org   |ldv at sourceware dot 
org
 Resolution|--- |FIXED

--- Comment #4 from Dmitry V. Levin  ---
Fixed by commit 43ac25c2de7ba21fb8f9e4d4db0c01c1408da0b8.

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

[Bug general/27367] readelf: invalid loclists data with -ffat-lto-objects

2021-11-04 Thread ldv at sourceware dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27367

--- Comment #5 from Dmitry V. Levin  ---
Could we have this issue fixed, please?

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