'Malloc error when trying to run node js server due to ibm_db module
I have a nodejs application, and configured to run on port 5001. When I try to run the node server using node server.js, it throws me an malloc error like below
node(6080,0x1067aa600) malloc: *** error for object 0x7ffb503d2670: pointer being freed was not allocated
node(6080,0x1067aa600) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort node server.js
My machine configs are Processor - 2.4 GHz 8-Core Intel Core i9 Memory - 32 GB 2667 MHz DDR4
When I try to run this server, I do not run any other node server. I also checked all the processes running but nothing clashes with it. Maybe I am missing something. I tried running it on different ports as well, but i get the same error
My node js version is v14.16.1
npm version is 6.14.12
Xcode version is 13.4.0.0.1.1651278267
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
