node-ibm_db: Driver Issue with MacOS Monterey (not fault of node-ibm_db)
Hi, I don’t know if this is an issue with node-ibm_db and Monterey or if it is a db2 driver issue. If it is a driver issue, do you know where can I report it?
Problem description
Whenever I execute the .open()
method with a connection string nodejs fails with the following message
node(8732,0x700006e3c000) malloc: *** error for object 0x7ffb4e817e00: pointer being freed was not allocated
node(8732,0x700006e3c000) malloc: *** set a breakpoint in malloc_error_break to debug
This happens even with the latest version of the package and freshly installed drivers.
Environment
- The node version used is
v14.18.1
(freshly installed from nvm) - Intel Macbook Pro 16
- MacOS 12.0.1
- GCC: Apple clang version 13.0.0 (clang-1300.0.29.3)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 29 (10 by maintainers)
@bimaljha
That did it 🥳 ! deleting the
libstdc++.6.dylib
library fromibm_db\installer\clidriver\lib
fixes the issue. Thanks a lot for your help@huineng @vuldin Removed
clidriver\lib\libstdc++.6.dylib
from clidriver. So, there should not be any issue for new installation now and below process should fix the issue for existing installation:ibm_db\installer\clidriver
; cd ibm_db; npm install Thanks.fyi i did a fresh install today (delete node_modules) and i still had to do the above…
Ok, this works, but does the mean we have to do this now each time ? or will there be some fix somewhere (in mac ? node ? or ibm_db ? ) thanks