Skip to content
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

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

Open
auscompgeek opened this issue Mar 25, 2022 · 0 comments
Open

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

auscompgeek opened this issue Mar 25, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@auscompgeek
Copy link
Member

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...

@auscompgeek auscompgeek added the bug Something isn't working label Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant