-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ORA-24550 SIGSEGV when reinstantiating oracledb and reconnecting #1345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@rodrigosalinas any updates on this? |
Hi @cjbj, I'm the same guy that created this issue. I had an auth problem with my older account so I had to create a new one. Regarding the issue, I did what you told me: I updated Node and Oracle client. That solved my problem apparently because it hasn't happened again.
Sometimes it even cropped the column name. I had to come back to 4.2 version so that wouldn't happen. Any thoughts on that? Thank you very very much in advance. |
I haven't seen any reports of this. Is the data like that immediately after being fetched, or is getting munged when it gets to the higher API? Have you got a simple test case (non koa; using async/await not promises) that can reproduce it - even if not consistently? |
The data is like that immediately after being fetched. It happens one of three times always. With 5.1 version, not with 4.2. |
I'm using Node 15.12.0 and Oracle Instantclient 19.8 over Centos 7. |
I'd to understand what's going on but have nothing else to add; we'd need a test case. The use of workers is an obvious investigation point that you could look at, and eliminate or confirm as a cause. |
@rodrigosalinas is there a runnable script you can share to show us the problem with node-oracledb 5.1? |
@rodrigosalinas similar to #1369, it would be interesting to know if you see your problem with 5.2.0-dev. |
I'll try. Thanks @cjbj |
@rodrigosalinas any news? |
I'm pre-emptively marking this as a duplicate of #1369. |
Now we have released node-oracledb 5.2, I'm expecting this to have been resolved. |
5.0.1 and 5.1.0
I have an api with koa.js. From the api I launch a Worker (node worker_thread) each time an endpoint is reached. That worker is a script that connects to an oracle database using oracledb. With the same connection it executes some queries. At the end the script closes the connection and sends a message back to the api so the api terminates the worker. Everything works just fine up to this point. The problem occurs when the next request arrives: the api instantiates a new Worker, the worker opens a new connection, and before any command is executed, the whole api program crashes and reboots (I use pm2 to run my api) with the following error that cannot be handled:
The
si_signo=11
meansSIGSEGV
, which means Invalid memory reference. Once the api reboots, the next request works just fine.When I use segfault-handler I get the following detail:
Please help. Why is this happening? Both the connection and the worker I close and terminate correctly before I try to reinstantiate the worker and reconnect to the database.
This is a simplified version of my function in my api where I instantiate the worker:
And this is a simplified version of my Worker:
Thank you very very much in advance.
The text was updated successfully, but these errors were encountered: