make check failed

17 views
Skip to first unread message

Athena Cai

unread,
Aug 13, 2024, 1:36:52 AM8/13/24
to gperf...@googlegroups.com
$ cat ./test-suite.log
=======================================
   gperftools 2.15: ./test-suite.log
=======================================

# TOTAL: 52
# PASS:  51
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: profile_handler_unittest
==============================

Check failed: callback_count_ > 0: Invalid callback count
FAIL profile_handler_unittest (exit status: 134)

Aliaksey Kandratsenka

unread,
Aug 13, 2024, 2:41:18 PM8/13/24
to Athena Cai, gperf...@googlegroups.com
Hi and thanks for the report. So this is quite an odd failure. Are you able to reproduce it easily? Which platform are you testing on?

Also if this is reproducible, can you please turn on core dumps and do a backtrace of the crashing location. I am hoping to see at least which test caused this failure.

--
You received this message because you are subscribed to the Google Groups "gperftools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gperftools+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gperftools/CAPDOCcOGMRYJ7f4d-7qDYXCnoXNjq9MkM-3TQxB0L9uS-3uSVQ%40mail.gmail.com.

Aliaksey Kandratsenka

unread,
Aug 13, 2024, 3:03:10 PM8/13/24
to Athena Cai, gperf...@googlegroups.com
BTW after some extensive golang-stress running (it continuously runs given binary on all cores; with intention to catch rare unit test failures) I am seeing this one rare failure (on master):

/tmp/go-stress-20240813T144758-1630906525
Running main() from vendor/googletest/googletest/src/gtest_main.cc
[==========] Running 4 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 4 tests from ProfileHandlerTest
[ RUN      ] ProfileHandlerTest.RegisterUnregisterCallback
[       OK ] ProfileHandlerTest.RegisterUnregisterCallback (886 ms)
[ RUN      ] ProfileHandlerTest.MultipleCallbacks
[       OK ] ProfileHandlerTest.MultipleCallbacks (1709 ms)
[ RUN      ] ProfileHandlerTest.Reset
[       OK ] ProfileHandlerTest.Reset (1679 ms)
[ RUN      ] ProfileHandlerTest.RegisterCallbackBeforeThread
src/tests/profile-handler_unittest.cc:279: Failure
Expected: (new_tick_count) > (old_tick_count), actual: 0 vs 0

src/tests/profile-handler_unittest.cc:280: Failure
Expected: (interrupts_after) > (interrupts_before), actual: 71 vs 71

[  FAILED  ] ProfileHandlerTest.RegisterCallbackBeforeThread (1066 ms)
[----------] 4 tests from ProfileHandlerTest (5343 ms total)

[----------] Global test environment tear-down
[==========] 4 tests from 1 test suite ran. (5343 ms total)
[  PASSED  ] 3 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] ProfileHandlerTest.RegisterCallbackBeforeThread

 1 FAILED TEST


ERROR: exit status 1

But this looks distinct from your failure. (Still I'll have a look at fixing it as well)
Reply all
Reply to author
Forward
0 new messages