Closed rscd27p closed 1 year ago
I was able to identify and fix issue with get_installed_software_components
#40. The fix is available for download with nisyscfg 0.0.5. With 0.0.5, the sample code provided in the original post worked for me on a Ubuntu 20.04 system.
However, the free(): invalid pointer
seems to be an issue with python 3.8 overflowing its stack. I'd recommend using Python 3.9 on Ubuntu 20.04. I was about to reproduce the crash by creating a session and trying to access a non-existent property:
Python 3.8
> python
Python 3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nisyscfg
>>> session = nisyscfg.Session()
>>> session.not_a_property
free(): invalid pointer
Aborted (core dumped)
Python 3.9
> python3.9
Python 3.9.5 (default, Nov 23 2021, 15:27:38)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nisyscfg
>>> session = nisyscfg.Session()
>>> session.not_a_property
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Session' object has no attribute 'not_a_property'
I assume the work-around was sufficient. If this continues to be an issue, we can re-open it.
I @tkrebes, I was unable to fix it with 3.9. Thanks for your help!
@rscd27p, do you see the same error on with Python 3.9?
free(): invalid pointer
Aborted (core dumped)
Or, do you get a different error message?
By the way, the free(): invalid pointer
issue in Python 3.8 seems to be fixed when using the latest software:
Hello tkrebes, thanks a lot for the work that you have put into this. I have tried using the nisyscfg-python both in Windows 10 and Ubuntu 20.04 with the kernel 5.13. However, some of the functions I have written have caused crashes in Ubuntu.
I am trying the function below on a cRIO-9049
I get this response on Windows:
However, I am getting some errors in Ubuntu when using the same code:
Any ideas? Thanks in advance for your help!