Skip to content

initOracleClient libDir Segmentation fault core dumped #1741

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

Closed
alberthastings opened this issue Jun 16, 2025 · 1 comment
Closed

initOracleClient libDir Segmentation fault core dumped #1741

alberthastings opened this issue Jun 16, 2025 · 1 comment
Labels

Comments

@alberthastings
Copy link

  • Client:
    -Operating system: Ubuntu 24.04.2 LTS
    -node-oracledb: 6.8.0
    -NodeJs: 22.14.0
    -Oracle Instant Client for Linux x86-64 (64-bit): 11.2.0.4.0 or 12.2.0.1.0
  • Server:
    -Oracle Database: 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

test11.js:

import oracledb from 'oracledb';
oracledb.initOracleClient({libDir: '/opt/instantclient-basic-linux.x64-11.2.0.4.0'});

test12.js:

import oracledb from 'oracledb';
oracledb.initOracleClient({libDir: '/opt/instantclient-basic-linux.x64-12.2.0.1.0'});
$ node test11.js
Segmentation fault (core dumped)
$ node test12.js
Segmentation fault (core dumped)
@alberthastings
Copy link
Author

I have done the following:

  1. Downgrade to oracledb version 5.5.0
  2. Run the script (Thick mode):
import oracledb from 'oracledb';
oracledb.initOracleClient();   

Iit produces the following:

Error: DPI-1047: Cannot locate a 64-bit Oracle Client library: 
"libaio.so.1: cannot open shared object file: No such file or directory".
  1. Because Ubuntu 24.04 has replaced the "libaio1" package with "libaio1t64", to resolve this, I create a symlink from "libaio.so.1t64" to "libaio.so.1" using the command:
 sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1
  1. Upgrade to oracledb version 6.8.0.
  2. Run again the scripts without any problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant