[issue34840] dlopen() error with no error message from dlerror()

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-

[issue34840] dlopen() error with no error message from dlerror()

2018-10-05 Thread Eryk Sun
Eryk Sun added the comment: > FWIW, the method does not exist on Windows In Windows it's FreeLibrary, for which the implementation in NT calls loader and runtime library functions such as LdrUnloadDll and RtlImageNtHeaderEx. These OS functions internally use structured exception handling (SE

[issue34840] dlopen() error with no error message from dlerror()

2018-10-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: FWIW, the method does not exist on Windows >>> _ctypes.dlclose(3) Traceback (most recent call last): File "", line 1, in AttributeError: module '_ctypes' has no attribute 'dlclose' -- nosy: +terry.reedy ___ Pyth

[issue34840] dlopen() error with no error message from dlerror()

2018-09-28 Thread shuoz
New submission from shuoz : python _ctypes.dlclose(arg). Never check the arg so we get a Segmentation fault (core dumped) poc.py ``` import _ctypes _ctypes.dlclose(3) # 3-4294967296 ``` python poc.py gdb info ``` --registers-