Skip to content

[BUG]: OffsetTracker::UpdateHistory can segfault in tests #21

Open
@auscompgeek

Description

@auscompgeek

Running pyfrc robot tests, I sometimes get these segfaults on Linux:

(gdb) bt
#0  0x00007ffff140ff10 in OffsetTracker::UpdateHistory(float) () from ~/.local/share/virtualenvs/rpy/lib/python3.10/site-packages/navx/_navx.cpython-310-x86_64-linux-gnu.so
#1  0x00007ffff140eef1 in AHRSInternal::SetAHRSPosData(AHRSProtocol::AHRSPosUpdate&, long) ()
   from ~/.local/share/virtualenvs/rpy/lib/python3.10/site-packages/navx/_navx.cpython-310-x86_64-linux-gnu.so
#2  0x00007ffff1414b34 in SimIO::UpdatePeriodicFromSimVariables(long) () from /home/seedbox/.local/share/virtualenvs/rpy/lib/python3.10/site-packages/navx/_navx.cpython-310-x86_64-linux-gnu.so
#3  0x00007ffff1414c99 in SimIO::Run() () from ~/.local/share/virtualenvs/rpy/lib/python3.10/site-packages/navx/_navx.cpython-310-x86_64-linux-gnu.so
#4  0x00007ffff140c6aa in AHRS::ThreadFunc(IIOProvider*) () from ~/.local/share/virtualenvs/rpy/lib/python3.10/site-packages/navx/_navx.cpython-310-x86_64-linux-gnu.so
#5  0x00007ffff6caf4d4 in std::execute_native_thread_routine (__p=0x7fff9801e020) at /usr/src/debug/gcc/libstdc++-v3/src/c++11/thread.cc:82
#6  0x00007ffff7a415c2 in start_thread () from /usr/lib/libc.so.6
#7  0x00007ffff7ac6584 in clone () from /usr/lib/libc.so.6

An interesting note: I seem to only be able to reproduce the segfault with my team's code if I let the operator control and disabled tests run...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions