-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libjninode crush #23
Comments
I think the line crushed at(org_meshpoint_anode_RuntimeNative.cpp#90, when call 'node::Initialize'):
Any ideas to fix this? |
Hi, EDIT: finally found out about the addr2line tool, looks like my problems are unrelated. sorry for almost hijacking this issue. I have recently had several crashes with similar dumps showing up. F/libc ( 4332): Fatal signal 4 (SIGILL) at 0x5d4fc210 (code=1) do I have to recompile node with some debug specific compiler/linker flags to get more info? cheers |
I had a similar problem, the program got crushed when I execute a node.js program with options such as '-e'. I noticed that it crushed at org_meshpoint_anode_RuntimeNative.cpp#132, when it calls freeNativeArgs(argc, argv);. In node.cc in paddybyers/node/src, So I modified codes in freeNativeArgs() like static void freeNativeArgs(jint argc, char **argv) {
for(int i = 0; i < argc; i++) {
if(strcmp(argv[i], "") == 0) continue; //added
delete[] argv[i]; //changed from "delete[] argv[i + 1];"
}
delete[] argv;
} and it fixed. If you have a better idea, please share it. I hope that this will be helpful to you. |
When I run anode with "-e cmdline /sdcard/webrtc/app.js", libjninode.so crushed:
may be it's a memory leak.
The text was updated successfully, but these errors were encountered: