Skip to content

version 1.4.1 is broken on s390x #711

@gladk

Description

@gladk

Almost all unit tests are failing on s390x with the new 1.4.1 version of benchmark. I executed the basic_test in gdb. And backtrace after the throwing an exception is here:

Catchpoint 1 (exception thrown), 0x000003fffdc27860 in __cxxabiv1::__cxa_throw (obj=obj@entry=0x10001a7c8, tinfo=0x3fffdd2e920 <typeinfo for std::invalid_argument>, dest=0x3fffdc3e8e0 <std::invalid_argument::~invalid_argument()>) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:78 78 ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc: No such file or directory. #0 0x000003fffdc27860 in __cxxabiv1::__cxa_throw (obj=obj@entry=0x10001a7c8, tinfo=0x3fffdd2e920 <typeinfo for std::invalid_argument>, dest=0x3fffdc3e8e0 <std::invalid_argument::~invalid_argument()>) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:78 #1 0x000003fffdc548cc in std::__throw_invalid_argument (__s=__s@entry=0x3fffdf4bf9e "stoi") at ../../../../../src/libstdc++-v3/src/c++11/functexcept.cc:74 #2 0x000003fffdf47d34 in __gnu_cxx::__stoa<long, int, char, int> (__idx=0x0, __str=0x10001a650 " version = FF, identification = 01F467, machine = 2964", __name=0x3fffdf4bf9e "stoi", __convf=<optimized out>) at /usr/include/c++/8/bits/char_traits.h:320 #3 std::__cxx11::stoi (__base=10, __idx=0x0, __str=" version = FF, identification = 01F467, machine = 2964") at /usr/include/c++/8/bits/basic_string.h:6402 #4 benchmark::(anonymous namespace)::GetNumCPUs () at ./src/sysinfo.cc:411 #5 0x000003fffdf4883e in benchmark::CPUInfo::CPUInfo (this=0x1000183d0) at ./src/sysinfo.cc:581 #6 0x000003fffdf488f8 in benchmark::CPUInfo::Get () at ./src/sysinfo.cc:577 #7 0x000003fffdf2006e in benchmark::internal::Benchmark::ThreadPerCpu (this=0x100018250) at ./src/benchmark_register.cc:435 #8 0x0000000100001510 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at ./include/benchmark/benchmark.h:940 #9 _GLOBAL__sub_I__Z8BM_emptyRN9benchmark5StateE () at ./test/basic_test.cc:136 #10 0x0000000100002508 in __libc_csu_init () #11 0x000003fffd823ac8 in __libc_start_main (main=0x100001428 <main(int, char**)>, argc=<optimized out>, argv=0x3fffffff588, init=0x1000024b0 <__libc_csu_init>, fini=0x100002520 <__libc_csu_fini>, rtld_fini=0x3fffdf90428 <_dl_fini>, stack_end=0x3fffffff4d0) at libc-start.c:266 #12 0x0000000100001b74 in _start () at ./include/benchmark/benchmark.h:940

The full backtrace is attached.

Thanks
gdb.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions