intersystems-community / embedded-python-bugreports

Please submit bugs you found in Embedded Python here
0 stars 1 forks source link

<INVALID OREF> when exit Python session #9

Open daimor opened 1 year ago

daimor commented 1 year ago

Describe the bug error <INVALID OREF> thrown right after exit from python

iris version/image intersystemsdc/iris-community:latest IRIS for UNIX (Ubuntu Server LTS for ARM64 Containers) 2023.2 (Build 227U) Mon Jul 31 2023 17:43:25 EDT

python version iris python IRIS

To Reproduce Steps to reproduce the behavior:

irisowner@6726e6941bf4:/opt/irisapp$ iris python iris

Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type quit() or Ctrl-D to exit this shell.
>>> import iris
>>> iris.sql.exec('select 1')
<iris.%SYS.Python.SQLResultSet object at 0xfffdd8f23fc0>
>>>quit()

<INVALID OREF>%QRS0c+5^%sqlcq.USER.cls2.1irisowner@6726e6941bf4:/opt/irisapp$

does not happen, this way, with using variable

rs=iris.sql.exec('select 1')
daimor commented 1 year ago

no idea what's happening here, and how to reproduce it, but here it is, caught another error

USER>:py

Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type quit() or Ctrl-D to exit this shell.
>>> import iris
>>> iris.sql.exec('select 1')
Traceback (most recent call last):
  File "<input>", line 1, in <module>
irisbuiltins.SQLError: Unexpected error occurred:  <MAXSTRING>%QRS0o+3^%sqlcq.USER.cls28.1
grongierisc commented 1 year ago

It can be a known bug that will be fix in 2023.3+.

I will check with dev team and let you know.

grongierisc commented 1 year ago

Bug confirmed, it's in the back log. I will update it when we will have a release target