This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug general/23732] New: Test failures on sparc64-linux-gnu


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

            Bug ID: 23732
           Summary: Test failures on sparc64-linux-gnu
           Product: elfutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: general
          Assignee: unassigned at sourceware dot org
          Reporter: kelledin at gmail dot com
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

elfutils-0.174 (and at least as far back as 0.170) is failing three tests for
me:

==========================================
   elfutils 0.174: tests/test-suite.log
==========================================

# TOTAL: 202
# PASS:  194
# SKIP:  5
# XFAIL: 0
# FAIL:  3
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: run-strip-nothing.sh
==========================

/usr/src/elfutils-0.174/src/elfcmp: a.out strip.out differ: section [5]
'.dynsym' header
*** failed strip.out different from a.out
FAIL run-strip-nothing.sh (exit status: 255)

FAIL: run-backtrace-native.sh
=============================

0x10000000000   0x10000104000   /usr/src/elfutils-0.174/tests/backtrace-child
0xffff800100000000      0xffff800100126000     
/lib/sparc64-linux-gnu/ld-2.27.so
0xffff800100128000      0xffff800100244000     
/lib/sparc64-linux-gnu/libpthread-2.27.so
0xffff80010047a000      0xffff80010047c000      [vdso: 91062]
0xffff80010047c000      0xffff8001006e8000     
/lib/sparc64-linux-gnu/libc-2.27.so
TID 91062:
# 0 0xffff80010013beb0          raise
TID 91067:
# 0 0xffff80010013beb0          raise
/usr/src/elfutils-0.174/tests/backtrace: dwfl_thread_getframes: No DWARF
information found
/usr/src/elfutils-0.174/tests/backtrace: dwfl_thread_getframes: No DWARF
information found
backtrace: backtrace.c:81: callback_verify: Assertion `seen_main' failed.
./test-subr.sh: line 84: 91057 Aborted                 (core dumped)
LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
$VALGRIND_CMD "$@"
backtrace-child: no main
FAIL run-backtrace-native.sh (exit status: 1)

SKIP: run-backtrace-data.sh
===========================

/usr/src/elfutils-0.174/tests/backtrace-data: Unwinding not supported for this
architecture
data: arch not supported
SKIP run-backtrace-data.sh (exit status: 77)
FAIL: run-backtrace-dwarf.sh
============================

0xffff8001004d88d4      raise
/usr/src/elfutils-0.174/tests/backtrace-dwarf: dwfl_thread_getframes: No DWARF
information found
dwarf: no main
FAIL run-backtrace-dwarf.sh (exit status: 1)

SKIP: run-backtrace-native-biarch.sh
====================================

biarch testing disabled
SKIP run-backtrace-native-biarch.sh (exit status: 77)

SKIP: run-backtrace-native-core.sh
==================================

/usr/bin/coredumpctl
No match found.
-- Notice: 2 systemd-coredump@.service units are running, output may be
incomplete.
No match found.
-- Notice: 1 systemd-coredump@.service unit is running, output may be
incomplete.
No match found.
-- Notice: 1 systemd-coredump@.service unit is running, output may be
incomplete.
No core.91173 file generated
SKIP run-backtrace-native-core.sh (exit status: 77)

SKIP: run-backtrace-native-core-biarch.sh
=========================================

biarch testing disabled
SKIP run-backtrace-native-core-biarch.sh (exit status: 77)

SKIP: run-lfs-symbols.sh
========================

LFS testing is irrelevent on this system
SKIP run-lfs-symbols.sh (exit status: 77)

============================================================================
Testsuite summary for elfutils 0.174
============================================================================
# TOTAL: 202
# PASS:  194
# SKIP:  5
# XFAIL: 0
# FAIL:  3
# XPASS: 0
# ERROR: 0
============================================================================

(run-backtrace-native-core-biarch.sh was also failing, but I've put that on a
back burner for now while I dig into the other failures.  I can turn it back on
if someone wants the failure output).

run-strip-nothing.sh appears to rearrange the ELF section contents without
actually deleting anything obvious, but whatever it changes is enough to upset
elfcmp.  I actually examined the .dynsym section as best I knew how (with
binutils "readelf --dyn-syms"), and the resulting dump looked identical for
both a.out and strip.out.

run-backtrace-native.sh is pretty obvious: it doesn't see main() in the
backtrace, probably because it can't actually *get* the full backtrace without
DWARF info.  run-backtrace-dwarf.sh failure can probably be traced back to the
same root cause, and I would assume the related biarch test as well was failing
for the same reason.

For background, this is on a mostly-vanilla 4.16.18 kernel, gcc-8.2.0,
binutils-2.31.1, glibc-2.27, with SPARC T2000 CPUs.  Typical build flags are
"-O2 -m64 -mcpu=v9 -mtune=v9", although I've tried different optimization
levels and different (or absent) -mcpu/-mtune flags, with no apparent
difference.  gdb is not installed yet, because I'm still in the process of
bootstrapping a distro build from scratch.  I can supply the raw test-suite.log
on request.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]