Skip to content

Instantly share code, notes, and snippets.

@danluu
Created November 16, 2016 20:21
Show Gist options
  • Save danluu/2aa77c4da2a6ced3f28c4a3ac8971b46 to your computer and use it in GitHub Desktop.
Save danluu/2aa77c4da2a6ced3f28c4a3ac8971b46 to your computer and use it in GitHub Desktop.
NativeCode.AndRowJzDelta0
Thread 1 "PlanTest" received signal SIGSEGV, Segmentation fault.
0x00000000004ac958 in BitFunnel::MatchTreeCompiler::Run(unsigned long, void* const*, unsigned long, long const*, BitFunnel::ResultsBuffer&) ()
(gdb) bt
#0 0x00000000004ac958 in BitFunnel::MatchTreeCompiler::Run(unsigned long, void* const*, unsigned long, long const*, BitFunnel::ResultsBuffer&) ()
#1 0x0000000000499ac9 in BitFunnel::NativeCodeVerifier::Verify(char const*) ()
#2 0x0000000000499fb5 in BitFunnel::NativeCode_AndRowJzDelta0_Test::TestBody() ()
#3 0x000000000050f2dd in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) ()
#4 0x00000000004f36c9 in testing::Test::Run() ()
#5 0x00000000004f4710 in testing::TestInfo::Run() ()
#6 0x00000000004f4e33 in testing::TestCase::Run() ()
#7 0x00000000004fda09 in testing::internal::UnitTestImpl::RunAllTests() ()
#8 0x000000000050fdaf in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) ()
#9 0x00000000004fd510 in testing::UnitTest::Run() ()
#10 0x00000000005179d0 in main ()
@danluu
Copy link
Author

danluu commented Nov 16, 2016

The function being called is:

->  0x1002d60d3: subq   $0x18, %rsp
    0x1002d60d7: movq   %rbp, (%rsp)
    0x1002d60db: leaq   0x18(%rsp), %rbp
    0x1002d60e0: movq   0x18(%rdi), %rsi
    0x1002d60e4: movq   (%rsi), %r8
    0x1002d60e7: movq   0x8(%rsi), %r9
    0x1002d60eb: movq   (%rdi), %rax
    0x1002d60ee: orq    %rax, %rax

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