node-ibm_db: malloc error when using library
- Operating System Name: latest version of MacOS Monterey, M1 chip
- db2level output from clidriver if in use: unsure
- Target Db2 Server Version: unsure, some version of Db2 on Cloud that was working prior to this issue
- ibm_db version: 3.1.0
- For non-Windows, output of below commands:
uname -
Darwin
uname -m -arm64
- Value of below environment variables if set:
IBM_DB_HOME: nothing/blank
PATH:
/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
DYLD_LIBRARY_PATH:/usr/local/lib/gcc/8:
When database code is executed with the library, I get the same error as this user: https://github.com/ibmdb/node-ibm_db/issues/888.
This was a known issue to our team previously, and we were able to get around this error, even on newly setup laptops by running rm node_modules/ibm_db/installer/clidriver/lib/libstdc++.6.dylib
after running the npm install commands. However after a fresh npm install
on my computer, in which this library on the same version was working previously, the file node_modules/ibm_db/installer/clidriver/lib/libstdc++.6.dylib
did not exist, and I ran into this error again.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 17 (6 by maintainers)
The issue has been resolved. A summary of steps taken to reach resolution
In the ~/.zshrc file:
Doing a fresh reinstall of ibm_db may have helped too, as opposed to doing
rm -rf node_modules
thanks again @bimalkjha