Closed CaselIT closed 12 months ago
Thanks for logging it; we will do some code reviews etc and see if we can identify what's going on.
Ok, a colleague of mine had an unrelated crash of python and mentioned that windows logs an event if an application crashes. I've checked on the machine where I encountered this crash and sure enough there's a log in there, reported below.
seems that KERNELBASE.dll
module crashed. Not sure if it can be of any help.
Faulting application name: python.exe, version: 3.10.4150.1013, time stamp: 0x62445d6c
Faulting module name: KERNELBASE.dll, version: 10.0.19041.1706, time stamp: 0x458acb5b
Exception code: 0xc0000005
Fault offset: 0x0000000000034fd9
Faulting process id: 0x61ec
Faulting application start time: 0x01d877760a6b901c
Faulting application path: C:\Users\my_user\miniconda3\envs\sa\python.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: 21a4f758-4c54-45e1-b886-deeb98f11563
Faulting package full name:
Faulting package-relative application ID:
just fyi I've never reproduced it again (but I've not used oracledb much after adding support for it in sqlalchemy)
I believe this issue was resolved in the 1.4.2 release. We had another report that was not intermittent and were able to get to the bottom of it, thankfully!
Thanks for following up. Glad you had a reproducible report
I'm using oracle 21.3.0.0, with client version
(21, 3, 0, 0, 0)
Is it an error or a hang or a crash? A crash of the python interpreter
What error(s) or behavior you are seeing?
yes
Sadly I cannot reproduce it. I've tried multiple times re-running the same command but it does not reproduce. The crash happened while implementing support for the
oracledb
driver in sqlalchemy, runningpytest --dburi oracle+oracledb://scott:tiger@127.0.0.1:1521/?service_name=XEPDB1 .\test\engine\
and momentarily enabling the thick mode.The interpreter crashed while executing this test:
test/engine/test_reconnect.py::RealReconnectTest_oracle+oracledb_21_3_0_0_0::test_rollback_on_invalid_twophase
https://github.com/sqlalchemy/sqlalchemy/blob/ad86d32f7fbd1c6deda8ff3bebe0595c0f2986cc/test/engine/test_reconnect.py#L1108-L1112I know it's not much to work on, but it's all I have. I've reported since from the stack trace it seems to be a double free or similar since it happened in the
close
method, so maybe something useful can be gathered from it event with this few information.Let me know if I can be of further help