-
Notifications
You must be signed in to change notification settings - Fork 35
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
wsl ubuntu环境下mock 类成员函数 出现段错误 #38
Comments
环境 |
commit 55db580 |
ubuntu 22.04 gcc 12.1.0 |
代码: class MyUsing class MyRunner int add_stub(int a, int b) class MyRunnerTest : public testing::Test { TEST_F(MyRunnerTest, TestRun) { int main(int argc, char *argv[]) { return RUN_ALL_TESTS(); |
查了一下, |
我也遇到同样的问题,根本不能用啊,这个还没有解决吗? |
Program received signal SIGSEGV, Segmentation fault.
__memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:312
312 ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.
(gdb) bt
#0 __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:312
#1 0x000000000812ffae in emock::JmpOnlyApiHook::JmpOnlyApiHook(void const*, void const*, void const*) ()
#2 0x000000000812c5b6 in emock::ApiHook::ApiHook(void const*, void const*, void const*) ()
#3 0x000000000812c287 in emock::ApiHookKey::ApiHookKey(void const*, emock::ApiHookHolder*, bool) ()
#4 0x000000000812be27 in emock::HookMockObjectImpl::addMethod(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, void const*, emock::ApiHookHolder*, emock::InvocationMockerNamespace*, bool) ()
#5 0x000000000812c005 in emock::HookMockObject::method(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, void const*, emock::ApiHookHolder*, bool) ()
#6 0x00000000080aaa81 in emock::InvocationMockBuilderGetter emock::mockAPI<void, Foo, int>(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, void (Foo::)(int)) ()
#7 0x00000000080a95f6 in member_func_ut_member_func_Test::TestBody() ()
#8 0x00000000080f85b6 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test, void (testing::Test::)(), char const) ()
#9 0x00000000080f0349 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::)(), char const) ()
#10 0x00000000080ca286 in testing::Test::Run() ()
#11 0x00000000080cad55 in testing::TestInfo::Run() ()
#12 0x00000000080cb72b in testing::TestSuite::Run() ()
#13 0x00000000080db6b6 in testing::internal::UnitTestImpl::RunAllTests() ()
#14 0x00000000080f9beb in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::)(), char const) ()
#15 0x00000000080f1657 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::)(), char const) ()
#16 0x00000000080d9cb0 in testing::UnitTest::Run() ()
#17 0x00000000080a9e70 in RUN_ALL_TESTS() ()
#18 0x00000000080a9754 in main ()
(gdb)
The text was updated successfully, but these errors were encountered: