This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: libc_ver() runtime error when sys.executable is empty
Type: crash Stage:
Components: Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: allie.hammond, lemburg
Priority: normal Keywords:

Created on 2022-01-10 22:01 by allie.hammond, last changed 2022-04-11 14:59 by admin.

Messages (3)
msg410261 - (view) Author: Allie Hammond (allie.hammond) Date: 2022-01-10 22:01
libc_ver() in platform.py (called from platform()) causes a runtime error if sys.executable returns null. In my case, FreeRADIUS offers a module rlm_python3 which allows you to run python code from the C based FreeRADIUS server - since this module doesn't use a python binary to execute sys.executable returns null trigering this error.
msg410283 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2022-01-11 09:49
On 10.01.2022 23:01, Allie Hammond wrote:
> 
> libc_ver() in platform.py (called from platform()) causes a runtime error if sys.executable returns null. In my case, FreeRADIUS offers a module rlm_python3 which allows you to run python code from the C based FreeRADIUS server - since this module doesn't use a python binary to execute sys.executable returns null trigering this error.

Interesting. I guess rlm_python3 embeds Python. Is sys.executable an
empty string or None ?
msg410372 - (view) Author: Allie Hammond (allie.hammond) Date: 2022-01-12 00:56
Thanks for getting back to me so quickly! It's an empty string
History
Date User Action Args
2022-04-11 14:59:54adminsetgithub: 90496
2022-01-12 00:56:44allie.hammondsetmessages: + msg410372
2022-01-11 09:49:35lemburgsetmessages: + msg410283
2022-01-10 22:01:51allie.hammondcreate