namewr / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

The demo binary gtest_stress_test hits coredump with the option --gtest_list_tests #453

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
# repro
root@debian:/home/hqi/build_gtest# ./gtest_stress_test --gtest_list_tests

[ FATAL ] /home/hqi/gtest-1.7.0/test/gtest_stress_test.cc:241:: Condition 
result == 1 failed. RUN_ALL_TESTS() did not fail as expected
Aborted (core dumped)

#issue

(gdb) bt
#0  0xb7fde424 in __kernel_vsyscall ()
#1  0xb7cf280f in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#2  0xb7cf5cc3 in __GI_abort () at abort.c:90
#3  0x08092ab7 in testing::internal::posix::Abort ()
    at /home/hqi/gtest-1.7.0/include/gtest/internal/gtest-port.h:1816
#4  0x0808fa9d in testing::internal::GTestLog::~GTestLog (this=0xbffff718, 
__in_chrg=<optimized out>)
    at /home/hqi/gtest-1.7.0/src/gtest-port.cc:500
#5  0x08079c10 in main (argc=1, argv=0xbffff7c4) at 
/home/hqi/gtest-1.7.0/test/gtest_stress_test.cc:241

PS: Looks like it's a generic Linux issue, it happens on Linux debian 3.2 and 
CentOS6.4

root@debian:/home/hqi/build_gtest# uname -a
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux

Original issue reported on code.google.com by qihu...@gmail.com on 25 Jan 2014 at 5:44