Describe the bug
When trying to run a PSID revert using the sample_cli.py program and passing in the incorrect PSID the program exits with a core dump from boost python.
To Reproduce
Steps to reproduce the behavior:
Built and ran in the provided docker container for CentOS7
Run using the python3 sample_cli.py script
Python script and CLI command that's being used: python3 sample_cli.py /dev/sda revert 030303
Type of drive interface that's being used: SAS.
Product type: Seagate drive
Expected behavior
The program should return an error that the PSID was incorrect. Not core dump.
Screenshots
The program terminates and core dumps.
[root@892b0cc279ad samples]# python3 sample_cli.py /dev/sda revert 030303
Drive Certificate chain verified from drive to root
Drive signature verified successfully
Device identification successfull, drive being tested is a Seagate drive
terminate called after throwing an instance of 'boost::python::error_already_set'
Aborted (core dumped)
The sedcfg.log file shows that the appropriate Failed to authenticate as PSID error. But this isn't returned back to the program to exit gracefully
Desktop (please complete the following information):
OS: CentOS 7.8
Python version: 3.6.8
Additional context
This is happening on the python3 code. This does not happen on the python2.7 code, so the change to python3 seems to be the issue here.
Describe the bug When trying to run a PSID revert using the sample_cli.py program and passing in the incorrect PSID the program exits with a core dump from boost python.
To Reproduce Steps to reproduce the behavior:
Expected behavior The program should return an error that the PSID was incorrect. Not core dump.
Screenshots
The program terminates and core dumps.
The sedcfg.log file shows that the appropriate Failed to authenticate as PSID error. But this isn't returned back to the program to exit gracefully
Desktop (please complete the following information):
Additional context This is happening on the python3 code. This does not happen on the python2.7 code, so the change to python3 seems to be the issue here.