Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Node Process crashed/aborted by SIG6 #3366

Closed
rohit12sh opened this issue Oct 14, 2015 · 14 comments
Closed

Node Process crashed/aborted by SIG6 #3366

rohit12sh opened this issue Oct 14, 2015 · 14 comments
Labels
memory Issues and PRs related to the memory management or memory footprint.

Comments

@rohit12sh
Copy link

Node process is getting killed/aborted by server after 30-40min of running:

OS: Red Hat Enterprise Linux Server release 6.5
Arch: x86_64
Kernel: 2.6.32-431.20.3.el6.x86_64

Process /bin/node was killed by signal 6 (SIGABRT)
Program terminated with signal 6, Aborted.
#0 0x000000396c00f5db in raise () from /lib64/libpthread.so.0

Not sure where and why the program is getting aborted by SIG6. I am using strong-oracle module and doing long running data migration.

@mscdex
Copy link
Contributor

mscdex commented Oct 14, 2015

Are you able to reproduce it without using third party modules? Also what node version is this?

@rohit12sh
Copy link
Author

Haven't seen this issue before with Nodejs. Seeing it since using third-party module. I understand it could be nothing to do with Nodejs, but wanted to confirm it.

Node version: v0.10.36

@cjihrig
Copy link
Contributor

cjihrig commented Oct 14, 2015

Does the same thing happen with a newer version of Node by any chance?

@rohit12sh
Copy link
Author

@cjihrig:
strong-oracle module doesn't work with latest version of Node - v4.x. Any other version you would recommend to try?

@cjihrig
Copy link
Contributor

cjihrig commented Oct 14, 2015

Sorry, I don't really know enough about strong-oracle. Does it work with 0.12?

@mscdex
Copy link
Contributor

mscdex commented Oct 14, 2015

@rohit12sh As a general debugging thing, you might try executing your script using the debug version of node under gdb. When it crashes, get a backtrace and that may help pinpoint the source of the error.

@rohit12sh
Copy link
Author

@cjihrig : getting 'Module did not self-register.' for Strong-Oracle when trying to run process with node-v0.12.7-linux-x64

@mscdex
Copy link
Contributor

mscdex commented Oct 14, 2015

@rohit12sh You have to rebuild/reinstall the module after you upgrade between "major versions" like 0.10, 0.12, and 4.0 because of C++ API changes. strong-oracle seems to be using nan though, so it should work for all of those versions after rebuilding/reinstalling.

@rohit12sh
Copy link
Author

I have rebuilt the module, npm rebuild, rm -rf node_modules/. I keep getting Error: Module did not self-register.

I ran these:
node-v0.12.7-linux-x64/bin/npm install
node-v0.12.7-linux-x64/bin/node script.js

any ideas?

@cjihrig
Copy link
Contributor

cjihrig commented Oct 14, 2015

When you say rm -rf node_modules/ do you mean you wiped out the directory and ran npm install again?

@rohit12sh
Copy link
Author

@cjihrig
yes. wiped and reinstalled.

one thing I tried was running node with more memory. This time it didn't crash.
node --max-old-space-size=6000

@seishun
Copy link
Contributor

seishun commented Oct 15, 2015

Probably strong-oracle is leaking memory? You should probably submit your issue there.

@rohit12sh
Copy link
Author

@seishun: That's what I am coming down to. I have submitted the issue there already. Currently using memwatch to collect some stats on memory leak.

For now I am tweaking my program to not load large data in memory or increase memory of Node when running the process (node -max-old-space-size=4096).

Can some confirm if it true that I can't have 4G heap memory assigned to Node on 64-bit. Does it change with Node v4.x?

@Trott Trott added the memory Issues and PRs related to the memory management or memory footprint. label Feb 3, 2016
@bnoordhuis
Copy link
Member

Closing, inactive for > 1 year.

Can some confirm if it true that I can't have 4G heap memory assigned to Node on 64-bit.

That was a bug in older versions of V8, yes, but has since been fixed.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
memory Issues and PRs related to the memory management or memory footprint.
Projects
None yet
Development

No branches or pull requests

6 participants