Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test "buffered_atomic_test.BufferedAtomic.singleThreadUnguardedAccess" aborts with libc++ #2345

Open
sin-ack opened this issue Nov 23, 2024 · 0 comments

Comments

@sin-ack
Copy link

sin-ack commented Nov 23, 2024

Test output:

Start testing: Nov 23 20:53 -00
----------------------------------------------------------
2171/3355 Testing: buffered_atomic_test.BufferedAtomic.singleThreadUnguardedAccess
2171/3355 Test: buffered_atomic_test.BufferedAtomic.singleThreadUnguardedAccess
Command: "/var/tmp/portage/dev-cpp/folly-2024.11.04.00-r1/work/folly-2024.11.04.00_build/buffered_atomic_test" "--gtest_filter=BufferedAtomic.singleThreadUnguardedAccess"
Directory: /var/tmp/portage/dev-cpp/folly-2024.11.04.00-r1/work/folly-2024.11.04.00
"buffered_atomic_test.BufferedAtomic.singleThreadUnguardedAccess" start time: Nov 23 20:53 -00
Output:
----------------------------------------------------------
Note: Google Test filter = BufferedAtomic.singleThreadUnguardedAccess
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from BufferedAtomic
[ RUN      ] BufferedAtomic.singleThreadUnguardedAccess
F20241123 20:53:59.314814    46 BufferedAtomic.h:343] Check failed: prev == std::thread::id() || prev == std::this_thread::get_id() 
*** Check failure stack trace: ***
*** Aborted at 1732395239 (Unix time, try 'date -d @1732395239') ***
*** Signal 6 (SIGABRT) (0xfa0000002e) received by PID 46 (pthread TID 0x7f0a90ecd1c0) (linux TID 46) (maybe from PID 46, UID 250) (code: -6), stack trace: ***
/var/tmp/portage/dev-cpp/folly-2024.11.04.00-r1/work/folly-2024.11.04.00_build/libfolly.so.0.58.0-dev(_ZN5folly10symbolizer17getStackTraceSafeEPmm+0x40) [0x7f0a9155fc20]
/var/tmp/portage/dev-cpp/folly-2024.11.04.00-r1/work/folly-2024.11.04.00_build/libfolly.so.0.58.0-dev(_ZN5folly10symbolizer21SafeStackTracePrinter15printStackTraceEb+0x3f) [0x7f0a91562d1f]
/var/tmp/portage/dev-cpp/folly-2024.11.04.00-r1/work/folly-2024.11.04.00_build/libfolly.so.0.58.0-dev(+0x35f702) [0x7f0a9155f702]
/usr/lib64/libc.so.6(+0x3c2ef) [0x7f0a919492ef]
/usr/lib64/libc.so.6(+0x8c3ec) [0x7f0a919993ec]
/usr/lib64/libc.so.6(gsignal+0x15) [0x7f0a91949245]
/usr/lib64/libc.so.6(abort+0xd6) [0x7f0a919318f6]
/var/tmp/portage/dev-cpp/folly-2024.11.04.00-r1/work/folly-2024.11.04.00_build/libfolly.so.0.58.0-dev(+0x405649) [0x7f0a91605649]
/usr/lib64/libglog.so.1(_ZN6google10LogMessage9SendToLogEv+0x58b) [0x7f0a91c3fc8b]
/usr/lib64/libglog.so.1(_ZN6google10LogMessage5FlushEv+0xe9) [0x7f0a91c405a9]
/usr/lib64/libglog.so.1(_ZN6google15LogMessageFatalD2Ev+0x9) [0x7f0a91c44189]
/var/tmp/portage/dev-cpp/folly-2024.11.04.00-r1/work/folly-2024.11.04.00_build/buffered_atomic_test(_ZN5folly4test14BufferedAtomicIiE7doStoreEiNSt3__112memory_orderEb+0x1d6) [0x55b701e87ab6]
/var/tmp/portage/dev-cpp/folly-2024.11.04.00-r1/work/folly-2024.11.04.00_build/buffered_atomic_test(_ZN47BufferedAtomic_singleThreadUnguardedAccess_Test8TestBodyEv+0xa3) [0x55b701e83903]
/usr/lib64/libgtest.so.1.14.0(_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc+0x5e) [0x7f0a91cdcf2e]
/usr/lib64/libgtest.so.1.14.0(_ZN7testing4Test3RunEv+0xdb) [0x7f0a91cb859b]
/usr/lib64/libgtest.so.1.14.0(_ZN7testing8TestInfo3RunEv+0x130) [0x7f0a91cb9d10]
/usr/lib64/libgtest.so.1.14.0(_ZN7testing9TestSuite3RunEv+0x524) [0x7f0a91cbacd4]
/usr/lib64/libgtest.so.1.14.0(_ZN7testing8internal12UnitTestImpl11RunAllTestsEv+0x57c) [0x7f0a91cd280c]
/usr/lib64/libgtest.so.1.14.0(_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc+0x5e) [0x7f0a91cddeee]
/usr/lib64/libgtest.so.1.14.0(_ZN7testing8UnitTest3RunEv+0x7b) [0x7f0a91cd223b]
/var/tmp/portage/dev-cpp/folly-2024.11.04.00-r1/work/folly-2024.11.04.00_build/libfolly_test_support.so(main+0x5a) [0x7f0a91d1b27a]
/usr/lib64/libc.so.6(+0x261ff) [0x7f0a919331ff]
/usr/lib64/libc.so.6(__libc_start_main+0x88) [0x7f0a919332b8]
/var/tmp/portage/dev-cpp/folly-2024.11.04.00-r1/work/folly-2024.11.04.00_build/buffered_atomic_test(_start+0x24) [0x55b701e80fc4]
(safe mode, symbolizer not available)
<end of output>
Test time =   0.12 sec
----------------------------------------------------------
Test Failed.
"buffered_atomic_test.BufferedAtomic.singleThreadUnguardedAccess" end time: Nov 23 20:53 -00
"buffered_atomic_test.BufferedAtomic.singleThreadUnguardedAccess" time elapsed: 00:00:00
----------------------------------------------------------

System information

OS: Gentoo Linux amd64 (x86_64-pc-linux-gnu)
Compiler: clang version 18.1.8+libcxx
C++ stdlib implementation: libc++
Folly version: 2024.11.04.00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant