Skip to content

Some tests fail with LTO #813

Open
Open
@kloczek

Description

Looks like old issue with logging unit has been resolved (#709) howe new two units are now failing:

+ cd glog-0.6.0
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 -C x86_64-redhat-linux-gnu test ARGS=--output-on-failure
make: Entering directory '/home/tkloczko/rpmbuild/BUILD/glog-0.6.0/x86_64-redhat-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process --output-on-failure
Test project /home/tkloczko/rpmbuild/BUILD/glog-0.6.0/x86_64-redhat-linux-gnu
      Start  1: logging_custom_prefix
 1/16 Test  #1: logging_custom_prefix ............   Passed    1.36 sec
      Start  2: demangle
 2/16 Test  #2: demangle .........................   Passed    0.01 sec
      Start  3: logging
 3/16 Test  #3: logging ..........................   Passed    1.74 sec
      Start  4: signalhandler
 4/16 Test  #4: signalhandler ....................   Passed    0.01 sec
      Start  5: stacktrace
 5/16 Test  #5: stacktrace .......................Subprocess aborted***Exception:   0.21 sec
Obtained 10 stack frames.
Obtained 10 stack frames.
/home/tkloczko/rpmbuild/BUILD/glog-0.6.0/x86_64-redhat-linux-gnu/stacktrace_unittest(+0x11755) [0x7f2235859755] 0x7f2235859755
/home/tkloczko/rpmbuild/BUILD/glog-0.6.0/x86_64-redhat-linux-gnu/stacktrace_unittest(+0x118f7) [0x7f22358598f7] 0x7f22358598f7
/home/tkloczko/rpmbuild/BUILD/glog-0.6.0/x86_64-redhat-linux-gnu/stacktrace_unittest(+0x11a97) [0x7f2235859a97] 0x7f2235859a97
/home/tkloczko/rpmbuild/BUILD/glog-0.6.0/x86_64-redhat-linux-gnu/stacktrace_unittest(+0x11c37) [0x7f2235859c37] 0x7f2235859c37
/home/tkloczko/rpmbuild/BUILD/glog-0.6.0/x86_64-redhat-linux-gnu/stacktrace_unittest(+0x11da7) [0x7f2235859da7] 0x7f2235859da7
/home/tkloczko/rpmbuild/BUILD/glog-0.6.0/x86_64-redhat-linux-gnu/stacktrace_unittest(+0x66d1) [0x7f223584e6d1] 0x7f223584e6d1
/lib64/libc.so.6(+0x2d550) [0x7f22353af550] 0x7f22353af550
/lib64/libc.so.6(__libc_start_main+0x89) [0x7f22353af609] 0x7f22353af609
/home/tkloczko/rpmbuild/BUILD/glog-0.6.0/x86_64-redhat-linux-gnu/stacktrace_unittest(+0x78c5) [0x7f223584f8c5] 0x7f223584f8c5
[(nil)] (nil)
CheckStackTrace() addr: 0x7f2235859d50
Backtrace 0: expected: 0x7f22358592ca..0x7f22358594bb  actual: 0x7f2235859755 ... F20220405 14:41:51.741753 2249583 stacktrace_unittest.cc:109] Check failed: ret_addr <= range.end (0x7f2235859755 vs. 0x7f22358594bb)
*** Check failure stack trace: ***
    @     0x7f2235857e26  google::LogMessage::SendToLog()
    @     0x7f2235851be9  google::LogMessage::Flush()
    @     0x7f22358595ad  CheckStackTraceLeaf()
    @     0x7f2235859755  CheckStackTrace4()
    @     0x7f22358598f7  CheckStackTrace3()
    @     0x7f2235859a97  CheckStackTrace2()
    @     0x7f2235859c37  CheckStackTrace1()
    @     0x7f2235859da7  CheckStackTrace()
    @     0x7f223584e6d1  google::thread_msg_data
    @     0x7f22353af550  __libc_start_call_main
    @     0x7f22353af609  __libc_start_main_alias_2
    @     0x7f223584f8c5  _start
    @              (nil)  (unknown)

      Start  6: stl_logging
 6/16 Test  #6: stl_logging ......................   Passed    0.01 sec
      Start  7: symbolize
 7/16 Test  #7: symbolize ........................Subprocess aborted***Exception:   0.17 sec
Test case TestWithPCInsideNonInlineFunction passed.
F20220405 14:41:51.964082 2249587 symbolize_unittest.cc:373] CHECK_STREQ failed: symbol == "main" (google::thread_msg_data vs. main)
*** Check failure stack trace: ***
    @     0x7fed5e2abf06  google::LogMessage::SendToLog()
    @     0x7fed5e2a43d9  google::LogMessage::Flush()
    @     0x7fed5e2a474b  google::LogMessageFatal::~LogMessageFatal()
    @     0x7fed5e2adae5  TestWithReturnAddress()
    @     0x7fed5e2a09e3  google::thread_msg_data
    @     0x7fed5de01550  __libc_start_call_main
    @     0x7fed5de01609  __libc_start_main_alias_2
    @     0x7fed5e2a2085  _start
    @              (nil)  (unknown)

      Start  8: cmake_package_config_init
 8/16 Test  #8: cmake_package_config_init ........   Passed    0.04 sec
      Start  9: cmake_package_config_generate
 9/16 Test  #9: cmake_package_config_generate ....   Passed    0.71 sec
      Start 10: cmake_package_config_build
10/16 Test #10: cmake_package_config_build .......   Passed    1.04 sec
      Start 11: cmake_package_config_cleanup
11/16 Test #11: cmake_package_config_cleanup .....   Passed    0.02 sec
      Start 12: cleanup_init
12/16 Test #12: cleanup_init .....................   Passed    0.02 sec
      Start 14: cleanup_immediately
13/16 Test #14: cleanup_immediately ..............   Passed    3.14 sec
      Start 15: cleanup_with_absolute_prefix
14/16 Test #15: cleanup_with_absolute_prefix .....   Passed    3.14 sec
      Start 16: cleanup_with_relative_prefix
15/16 Test #16: cleanup_with_relative_prefix .....   Passed    6.14 sec
      Start 13: cleanup_logdir
16/16 Test #13: cleanup_logdir ...................   Passed    0.02 sec

88% tests passed, 2 tests failed out of 16

Total Test time (real) =  17.82 sec

The following tests FAILED:
          5 - stacktrace (Subprocess aborted)
          7 - symbolize (Subprocess aborted)
Errors while running CTest
make: *** [Makefile:94: test] Error 8
make: Leaving directory '/home/tkloczko/rpmbuild/BUILD/glog-0.6.0/x86_64-redhat-linux-gnu'
[tkloczko@devel-g2v x86_64-redhat-linux-gnu]$ cmake -L
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


CMake Error: The source directory "/home/tkloczko/rpmbuild/BUILD/glog-0.6.0/x86_64-redhat-linux-gnu" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
-- Cache values
BUILD_SHARED_LIBS:BOOL=ON
BUILD_TESTING:BOOL=ON
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
CMAKE_INSTALL_PREFIX:PATH=/usr
GTest_DIR:PATH=GTest_DIR-NOTFOUND
PRINT_UNSYMBOLIZED_STACK_TRACES:BOOL=OFF
WITH_CUSTOM_PREFIX:BOOL=ON
WITH_GFLAGS:BOOL=ON
WITH_GMOCK:BOOL=ON
WITH_GTEST:BOOL=ON
WITH_PKGCONFIG:BOOL=ON
WITH_SYMBOLIZE:BOOL=ON
WITH_THREADS:BOOL=ON
WITH_TLS:BOOL=ON
WITH_UNWIND:BOOL=ON
gflags_DIR:PATH=/usr/lib64/cmake/gflags

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions