numba: BUG: segfault in pandas rolling test

xref https://github.com/pandas-dev/pandas/issues/40454

lldb -- python3 -m pytest pandas/tests/window/test_numba.py::TestTableMethod::test_table_method_rolling_methods
run

pandas/tests/window/test_numba.py 0  lldb                     0x00000001072bf575 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  lldb                     0x00000001072beb55 llvm::sys::RunSignalHandlers() + 85
2  lldb                     0x00000001072bfdd6 SignalHandler(int) + 262
3  libsystem_platform.dylib 0x00007fff2035bd7d _sigtramp + 29
4  libsystem_platform.dylib 0x00007ffcf96b9c30 _sigtramp + 18446744064468836048
5  LLDB                     0x00000001076a7d31 lldb_private::AssertFrameRecognizer::RecognizeFrame(std::__1::shared_ptr<lldb_private::StackFrame>) + 689
6  LLDB                     0x00000001076e78c3 StackFrameRecognizerManagerImpl::RecognizeFrame(std::__1::shared_ptr<lldb_private::StackFrame>) + 147
7  LLDB                     0x00000001076e7777 lldb_private::StackFrameRecognizerManager::RecognizeFrame(std::__1::shared_ptr<lldb_private::StackFrame>) + 71
8  LLDB                     0x00000001076e210f lldb_private::StackFrame::GetRecognizedFrame() + 63
9  LLDB                     0x000000010773aed8 lldb_private::Thread::SelectMostRelevantFrame() + 72
10 LLDB                     0x000000010773b169 lldb_private::Thread::WillStop() + 89
11 LLDB                     0x00000001077443d4 lldb_private::ThreadList::ShouldStop(lldb_private::Event*) + 1716
12 LLDB                     0x00000001076cbab4 lldb_private::Process::ShouldBroadcastEvent(lldb_private::Event*) + 436
13 LLDB                     0x00000001076c81c9 lldb_private::Process::HandlePrivateEvent(std::__1::shared_ptr<lldb_private::Event>&) + 265
14 LLDB                     0x00000001076cc81d lldb_private::Process::RunPrivateStateThread(bool) + 1293
15 LLDB                     0x00000001076cbee5 lldb_private::Process::PrivateStateThread(void*) + 21
16 LLDB                     0x00000001075db11f lldb_private::HostNativeThreadBase::ThreadCreateTrampoline(void*) + 111
17 libsystem_pthread.dylib  0x00007fff20317950 _pthread_start + 224
18 libsystem_pthread.dylib  0x00007fff2031347b thread_start + 15
zsh: segmentation fault  lldb -- python3 -m pytest 

Tried using gdb following https://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#basic-gdb-support, but thats apparently linux-only, and ive only gotten this segfault on mac.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 28 (15 by maintainers)

Most upvoted comments

@guilhermeleobas, my “problem” was coming from running it in valgrind; something like:

DYLD_PRINT_LIBRARIES=1 valgrind -- python3 -m pytest -s -v pandas/tests/window/test_numba.py::TestTableMethod::test_table_method_rolling_methods

but, i’m now certain it is not related to the issue reported here.