-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Description
On an AIX environment, when running a Node.js program using the ibm_db module, the DB connection and disconnection processes complete successfully, but a core dump always occurs when the program exits.
This issue is reproducible across multiple AIX servers and Node.js versions.
Test Environment
| OS | Node.js | ibm_db |
|---|---|---|
| AIX 7.2.0.0 | v18.12.1 | 3.1.0 |
| AIX 7.3.0.0 | v20.18.2 | 3.1.0 |
Test Code (ibmdbtest.js)
const ibmdb = require('ibm_db');
const connStr = "DRIVER={DB2};DATABASE=xxx;HOSTNAME=xxx.xxx.ibm.com;UID=xxx;PWD=xxx;PORT=xxx";
ibmdb.open(connStr, (err, conn) => {
if (err) {
return console.error('connect error!!:', err);
}
console.log('connect success!!');
conn.close((err) => {
if (err) {
return console.error('close error!!:', err);
}
console.log('close success!!');
});
});Execution Result
- After running
node ibmdbtest.js > db_test.log 2>&1, a core dump is generated. - DB connection and disconnection complete successfully (confirmed via console logs).
Core Dump Stack Trace (dbx where output)
.() at 0x0
internal error: unexpected value 120 at line 5201 in file stabstring.c
unnamed block in __cxa_finalize(??), line 69 in "cxa_finalize.c"
__cxa_finalize(??), line 69 in "cxa_finalize.c"
crtcxa.__init_aix_libgcc_cxa_atexit() at 0x10214db54
_GLOBAL__FD_node() at 0x10214dccc
mod_fini1(??, ??) at 0x9fffffff000b410
usl_fini_mods@AF15_11(??, ??, ??, ??, ??) at 0x9fffffff000c82c
usl_exit_fini(??, ??, ??) at 0x9fffffff000b328
usl_exit_fini_mods(??) at 0x9fffffff000c2e8
__modfini64() at 0x900000000001450
exit(??) at 0x90000000005f7d4
Notes
- Changing the version of ibm_db does not resolve the issue.
- This does not occur on non-AIX environments (e.g., Linux).
Metadata
Metadata
Assignees
Labels
No labels