Closed sdshq closed 1 year ago
Thanks for the report. Some thoughts:
Thanks for the report. Some thoughts:
- 19.10 is 'old' in terms of SODA. It would be interesting to know if 19.10 has the same issue on Linux x64.
- OL9 hasn't been certified by the DB yet.
I forgot to mention, the DB is running on Oracle cloud, thus it should not be the problem. The most recent client version for aarch64 is 19.10, which is indeed somewhat out dated. I end up with switching to the SQL interface which works great.
Update: a quick study using the same samples/soda_basic.py
script suggests that client versions 19.16 and 18.5 on x64 Linux do not have the problem, though v18.5 encounters some encoding issues in the python-oracledb part.
@sdshq I was able to reproduce the crash only in that specific combination of versions. It is in the layers below python-oracledb so I'll close this issue and followup internally. (In fact I believe it is already fixed). Thanks for reporting it.
A crash: Segmentation fault (core dumped)
The example code
samples/soda_basic.py
crashes when reaching line 125:documents = collection.find().filter({'name': {'$like': 'Ma%'}}).getDocuments()
The virtual environment is clean:
The code also crashes in the same manner at line 136:
c = collection.find().filter({'address.city': {'$regex': '.*o.*'}}).remove()
, if I skip the lines 125~128.Yes. SODA API requires thick mode, and I'm quite sure that my credentials are correct.
The connection to the DB is also good, since the most part of
samples/soda_basic.py
works fine.Just the
samples/soda_basic.py
. I only changed theconfig_dir
fororacledb.init_oracle_client()
, and the DB credentialsuser
,password
, anddsn
fororacledb.connect()
.The same code works fine on AMD64 Linux and on Windows, with the corresponding versions of instant clients installed.
I suspect it is something related to the ARM64 version of the instant client.
As shown in the console snippet above, I ran the script on an OCI instance, on which Oracle products are supposed to be well-supported...