libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] libunwind 1.3.1 test failures on aarch64


From: Teddy Moraal
Subject: [Libunwind-devel] libunwind 1.3.1 test failures on aarch64
Date: Tue, 22 Oct 2019 17:09:35 +0000

Hi,

 

I am trying to build libunwind (version 1.3.1) on a Debian 10 system with an Aarch64 CPU. The build is successful, but many of the tests fail (most with a segmentation fault). I don’t see any bugs listed on the Github page, nor do I see any commits since version 1.3.1 was released that appear to be relevant. I’ve attached some preliminary information that I thought would be useful at the bottom of this email. I’ve obfuscated the irrelevant path information with “…” for privacy reasons, but otherwise the output is untouched. Any help would be greatly appreciated.

 

 

 

Regards,

-Teddy

 

 

The list of failing tests:

 

FAIL: Gtest-exc

FAIL: Ltest-exc

FAIL: Gtest-concurrent

FAIL: Ltest-concurrent

FAIL: Gtest-trace

FAIL: Ltest-trace

FAIL: Ltest-init-local-signal

FAIL: Ltest-mem-validate

FAIL: test-async-sig

FAIL: test-ptrace

FAIL: run-check-namespace

FAIL: run-ptrace-mapper

FAIL: run-ptrace-misc

FAIL: run-coredump-unwind

FAIL: Gtest-exc

FAIL: Ltest-exc

FAIL: Gtest-concurrent

FAIL: Ltest-concurrent

FAIL: Gtest-trace

FAIL: Ltest-trace

FAIL: Ltest-init-local-signal

FAIL: Ltest-mem-validate

FAIL: test-async-sig

FAIL: test-ptrace

FAIL: run-check-namespace

FAIL: run-ptrace-mapper

FAIL: run-ptrace-misc

FAIL: run-coredump-unwind

 

Useful information from a gdb session attached to a Gtest-exc run (with debugging symbols):

 

Reading symbols from .../libunwind-standard/tests/.libs/Gtest-exc...done.

(gdb) r

Starting program: .../libunwind-standard/tests/.libs/Gtest-exc

[Thread debugging using libthread_db enabled]

Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".

 

Program received signal SIGSEGV, Segmentation fault.

access_mem (as=0xffffbf6b1240 <local_addr_space>, addr=0, val=0xffffffff70e8, write=0, arg=0xffffffff7190)

    at .../libunwind/src/aarch64/Ginit.c:96

96          *val = *(unw_word_t *) addr;

(gdb) where

#0  access_mem (as=0xffffbf6b1240 <local_addr_space>, addr=0, val=0xffffffff70e8, write=0, arg=0xffffffff7190)

    at .../libunwind/src/aarch64/Ginit.c:96

#1  0x0000ffffbf67dfac in _Uaarch64_is_signal_frame (cursor=0xffffffff8360)

    at .../libunwind/src/aarch64/Gis_signal_frame.c:51

#2  0x0000ffffbf67fd14 in _Uaarch64_step (cursor=0xffffffff8360)

    at .../libunwind/src/aarch64/Gstep.c:143

#3  0x0000aaaaaaaaac2c in raise_exception () at .../libunwind/tests/Gtest-exc.c:67

#4  0x0000aaaaaaaaade8 in b (n=16) at .../libunwind/tests/Gtest-exc.c:128

#5  0x0000aaaaaaaaad34 in a (n=0) at .../libunwind/tests/Gtest-exc.c:102

#6  0x0000aaaaaaaaad28 in a (n=1) at .../libunwind/tests/Gtest-exc.c:100

#7  0x0000aaaaaaaaad28 in a (n=2) at .../libunwind/tests/Gtest-exc.c:100

#8  0x0000aaaaaaaaad28 in a (n=3) at .../libunwind/tests/Gtest-exc.c:100

#9  0x0000aaaaaaaaad28 in a (n=4) at .../libunwind/tests/Gtest-exc.c:100

#10 0x0000aaaaaaaaad28 in a (n=5) at .../libunwind/tests/Gtest-exc.c:100

#11 0x0000aaaaaaaaad28 in a (n=6) at .../libunwind/tests/Gtest-exc.c:100

#12 0x0000aaaaaaaaad28 in a (n=7) at .../libunwind/tests/Gtest-exc.c:100

#13 0x0000aaaaaaaaad28 in a (n=8) at .../libunwind/tests/Gtest-exc.c:100

#14 0x0000aaaaaaaaad28 in a (n=9) at .../libunwind/tests/Gtest-exc.c:100

#15 0x0000aaaaaaaaad28 in a (n=10) at .../libunwind/tests/Gtest-exc.c:100

#16 0x0000aaaaaaaaad28 in a (n=11) at .../libunwind/tests/Gtest-exc.c:100

#17 0x0000aaaaaaaaad28 in a (n=12) at .../libunwind/tests/Gtest-exc.c:100

#18 0x0000aaaaaaaaad28 in a (n=13) at .../libunwind/tests/Gtest-exc.c:100

#19 0x0000aaaaaaaaaee0 in main (argc=1, argv=0xffffffff97a8)

    at .../libunwind/tests/Gtest-exc.c:150

(gdb) list

91          Debug (16, "mem[%lx] <- %lx\n", addr, *val);

92          *(unw_word_t *) addr = *val;

93        }

94      else

95        {

96          *val = *(unw_word_t *) addr;

97          Debug (16, "mem[%lx] -> %lx\n", addr, *val);

98        }

99      return 0;

100   }

(gdb) f 3

#3  0x0000aaaaaaaaac2c in raise_exception () at .../libunwind/tests/Gtest-exc.c:67

67        if (unw_step (&cursor) < 0)

(gdb) list

62          return;

63        }

64   

65      /* unwind to top-most frame a(), skipping over b() and raise_exception(): */

66      for (i = 0; i < depth + 2; ++i)

67        if (unw_step (&cursor) < 0)

68          {

69          panic ("unw_step() failed!\n");

70          return;

71          }

(gdb)

 

The output from configure and options is below. I’m currently configuring with “-fasynchronous-unwind-tables” and “--disable-minidebuginfo”, but removing those options has no observable effect on the failures.

 

CC="/usr/bin/gcc" CXX="/usr/bin/g++" CFLAGS="-fasynchronous-unwind-tables -O2 -pipe -pthread -fPIC " CXXFLAGS="-O2 -pipe -pthread -fPIC  -std=c++11" CPP="/usr/bin/gcc -E" CXXCPP="" CPPFLAGS="" LDFLAGS="" ARCH= .../libunwind/configure --prefix=.../libunwind --enable-shared --disable-static --disable-minidebuginfo

checking build system type... aarch64-unknown-linux-gnu

checking host system type... aarch64-unknown-linux-gnu

checking target system type... aarch64-unknown-linux-gnu

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /usr/bin/mkdir -p

checking for gawk... no

checking for mawk... mawk

checking whether make sets $(MAKE)... yes

checking whether make supports nested variables... yes

checking whether to enable maintainer-specific portions of Makefiles... no

checking for gcc... /usr/bin/gcc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether /usr/bin/gcc accepts -g... yes

checking for /usr/bin/gcc option to accept ISO C89... none needed

checking for style of include used by make... GNU

checking dependency style of /usr/bin/gcc... gcc3

checking whether we are using the GNU C++ compiler... yes

checking whether /usr/bin/g++ accepts -g... yes

checking dependency style of /usr/bin/g++... gcc3

checking whether make sets $(MAKE)... (cached) yes

checking for ar... ar

checking the archiver (ar) interface... ar

checking how to print strings... printf

checking for a sed that does not truncate output... /usr/bin/sed

checking for grep that handles long lines and -e... /usr/bin/grep

checking for egrep... /usr/bin/grep -E

checking for fgrep... /usr/bin/grep -F

checking for ld used by /usr/bin/gcc... /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld... yes

checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B

checking the name lister (/usr/bin/nm -B) interface... BSD nm

checking whether ln -s works... yes

checking the maximum length of command line arguments... 1572864

checking whether the shell understands some XSI constructs... yes

checking whether the shell understands "+="... yes

checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop

checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop

checking for /usr/bin/ld option to reload object files... -r

checking for objdump... objdump

checking how to recognize dependent libraries... pass_all

checking for dlltool... no

checking how to associate runtime and link libraries... printf %s\n

checking for archiver @FILE support... @

checking for strip... strip

checking for ranlib... ranlib

checking command to parse /usr/bin/nm -B output from /usr/bin/gcc object... ok

checking for sysroot... no

checking for mt... mt

checking if mt is a manifest tool... no

checking how to run the C preprocessor... /usr/bin/gcc -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking for dlfcn.h... yes

checking for objdir... .libs

checking if /usr/bin/gcc supports -fno-rtti -fno-exceptions... no

checking for /usr/bin/gcc option to produce PIC... -fPIC -DPIC

checking if /usr/bin/gcc PIC flag -fPIC -DPIC works... yes

checking if /usr/bin/gcc static flag -static works... yes

checking if /usr/bin/gcc supports -c -o file.o... yes

checking if /usr/bin/gcc supports -c -o file.o... (cached) yes

checking whether the /usr/bin/gcc linker (/usr/bin/ld) supports shared libraries... yes

checking whether -lc should be explicitly linked in... no

checking dynamic linker characteristics... GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... no

checking how to run the C++ preprocessor... /usr/bin/g++ -E

checking for ld used by /usr/bin/g++... /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld... yes

checking whether the /usr/bin/g++ linker (/usr/bin/ld) supports shared libraries... yes

checking for /usr/bin/g++ option to produce PIC... -fPIC -DPIC

checking if /usr/bin/g++ PIC flag -fPIC -DPIC works... yes

checking if /usr/bin/g++ static flag -static works... yes

checking if /usr/bin/g++ supports -c -o file.o... yes

checking if /usr/bin/g++ supports -c -o file.o... (cached) yes

checking whether the /usr/bin/g++ linker (/usr/bin/ld) supports shared libraries... yes

checking dynamic linker characteristics... (cached) GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking dependency style of /usr/bin/gcc... gcc3

checking whether /usr/bin/gcc and cc understand -c and -o together... yes

checking for __uc_get_grs in -luca... no

checking for library containing dlopen... -ldl

checking atomic_ops.h usability... no

checking atomic_ops.h presence... no

checking for atomic_ops.h... no

checking for ANSI C header files... (cached) yes

checking asm/ptrace_offsets.h usability... no

checking asm/ptrace_offsets.h presence... no

checking for asm/ptrace_offsets.h... no

checking endian.h usability... yes

checking endian.h presence... yes

checking for endian.h... yes

checking sys/endian.h usability... no

checking sys/endian.h presence... no

checking for sys/endian.h... no

checking execinfo.h usability... yes

checking execinfo.h presence... yes

checking for execinfo.h... yes

checking ia64intrin.h usability... no

checking ia64intrin.h presence... no

checking for ia64intrin.h... no

checking sys/uc_access.h usability... no

checking sys/uc_access.h presence... no

checking for sys/uc_access.h... no

checking for unistd.h... (cached) yes

checking signal.h usability... yes

checking signal.h presence... yes

checking for signal.h... yes

checking for sys/types.h... (cached) yes

checking sys/procfs.h usability... yes

checking sys/procfs.h presence... yes

checking for sys/procfs.h... yes

checking sys/ptrace.h usability... yes

checking sys/ptrace.h presence... yes

checking for sys/ptrace.h... yes

checking byteswap.h usability... yes

checking byteswap.h presence... yes

checking for byteswap.h... yes

checking elf.h usability... yes

checking elf.h presence... yes

checking for elf.h... yes

checking sys/elf.h usability... yes

checking sys/elf.h presence... yes

checking for sys/elf.h... yes

checking link.h usability... yes

checking link.h presence... yes

checking for link.h... yes

checking sys/link.h usability... no

checking sys/link.h presence... no

checking for sys/link.h... no

checking for an ANSI C-conforming const... yes

checking for inline... inline

checking for size_t... yes

checking size of off_t... 8

checking for struct dl_phdr_info.dlpi_subs... yes

checking for struct elf_prstatus... yes

checking for struct prstatus... no

checking whether PTRACE_POKEUSER is declared... yes

checking whether PTRACE_POKEDATA is declared... yes

checking whether PTRACE_SETREGSET is declared... yes

checking whether PTRACE_TRACEME is declared... yes

checking whether PTRACE_CONT is declared... yes

checking whether PTRACE_SINGLESTEP is declared... yes

checking whether PTRACE_SYSCALL is declared... yes

checking whether PT_IO is declared... no

checking whether PT_GETREGS is declared... no

checking whether PT_GETFPREGS is declared... no

checking whether PT_CONTINUE is declared... yes

checking whether PT_TRACE_ME is declared... yes

checking whether PT_STEP is declared... yes

checking whether PT_SYSCALL is declared... yes

checking for dl_iterate_phdr... yes

checking for dl_phdr_removals_counter... no

checking for dlmodinfo... no

checking for getunwind... no

checking for ttrace... no

checking for mincore... yes

checking if building with AltiVec... no

checking for Android... no

checking if we should build libunwind-coredump... yes

checking for sys/ptrace.h... (cached) yes

checking if we should build libunwind-ptrace... yes

checking if we should build libunwind-setjmp... yes

checking for build architecture... aarch64

checking for host architecture... aarch64

checking for target architecture... aarch64

checking for target operating system... linux-gnu

checking for ELF helper width... 64

checking whether to include DWARF support... yes

checking whether to restrict build to remote support... no

checking whether to enable debug support...

checking whether to enable C++ exception support... no

checking whether to load .debug_frame sections... yes

checking whether to block signals during mutex ops... yes

checking whether to validate memory addresses before use... yes

checking whether to enable msabi support...

checking whether to support LZMA-compressed symbol tables... no

checking whether to support UNW_CACHE_PER_THREAD...

checking for Intel compiler... no

checking for QCC compiler... no

checking for __builtin___clear_cache... yes

checking for __builtin_unreachable... yes

checking for __sync atomics... yes

checking for library containing backtrace... none required

checking for latex2man... no

configure: WARNING: latex2man not found. Install latex2man. Disabling docs.

checking that generated files are newer than configure... done

configure: creating ./config.status

config.status: creating tests/Makefile

config.status: creating tests/check-namespace.sh

config.status: creating Makefile

config.status: creating src/Makefile

config.status: creating include/libunwind-common.h

config.status: creating include/libunwind.h

config.status: creating include/tdep/libunwind_i.h

config.status: creating src/unwind/libunwind.pc

config.status: creating src/coredump/libunwind-coredump.pc

config.status: creating src/ptrace/libunwind-ptrace.pc

config.status: creating src/setjmp/libunwind-setjmp.pc

config.status: creating src/libunwind-generic.pc

config.status: creating include/config.h

config.status: executing depfiles commands

config.status: executing libtool commands

cd ... && make

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]