-
Notifications
You must be signed in to change notification settings - Fork 21
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
PyMem_Realloc, PyObject_Free, and other "Invalid read" valgrind errors in example sims #1312
Comments
@ddj116 I followed your steps exactly and I am not getting an invalid read. Can I please see the output of your ./configure step? |
Sure, here's the output of
And here's how the virtual environment manages the python3 version:
|
I've got some more information since y'all are having trouble reproducing this. In the Trick lab the machine In FSL, the system swig is 2.0.10 which #!/bin/bash
mkdir trick_issue_1312/ && cd trick_issue_1312 # Create a workspace
python3 -m venv .venv && source .venv/bin/activate # Create python3 venv
git clone https://github.com/nasa/trick.git # Get trick
cd trick && git checkout 19.4.0 # Checkout to latest
./configure --with-swig=/software/x86_64/swig/3.0.12/bin/ && make >& trick_build.txt # Build trick
cd trick_sims/Ball/SIM_ball_L1 && ../../../bin/trick-CP # Build sim
valgrind ./S_main_Linux*.exe RUN_test/input.py >& valgrind_out.txt |
The errors
Error signature looks like this, about 126 instances with
SIM_ball_L1
:How to replicate
This little script will replicate the issue. I ran this on FSL (CentOS 7.9) with
gcc
4.8.5 but have also observed it withgcc
8.3.0 in my Gateway simulation andgcc
4.8.5 in my Ramtares simulation.This appears to be related to use of
python3
-- withpython2
I don't see any of these errors in my Ramtares project.FYI @spfennell @jmpenn @jdeans289 -- If you have trouble replicating or other questions please let me know.
The text was updated successfully, but these errors were encountered: