Receiving Error in `node': free(): invalid pointer: 0x00000000039d5760
fenngineering opened this issue · 0 comments
fenngineering commented
I'm creating a noddy nodejs app in node v8 using the below code:-
var util = require('util');
var krb5 = require('krb5');
var exec = require('child_process').exec;
var config = {
principal: '*******@*******',
password: '*******',
fqdn: '*******'
}
var k = krb5({
principal: config.principal,
password: config.password,
service_fqdn: config.fqdn
});
var do_klist = function(err){
if(err){
return process.stderr.write('ERROR: ' + err.message + '\n');
}
process.stderr.write('----------------------- klist:\n\n');
exec('klist', function(err, stdout, stderr){
if(err){
return process.stderr.write('ERROR: ' + err.message + '\n');
}
process.stderr.write(stdout + '\n');
do_spnego();
});
};
var do_kinit = function(){
process.stderr.write('----------------------- kinit:\n\n');
k.kinit(do_klist);
};
var do_kdestroy = function(){
process.stderr.write('-------------------- kdestroy:\n\n');
k.kdestroy(function(err){
if(err){
return process.stderr.write('ERROR: ' + err.message + '\n');
}
});
};
var do_spnego = function(){
if(config.fqdn){
process.stderr.write('---------------------- spnego:\n\n');
k.token(function(err,token){
if(err){
return process.stderr.write('ERROR: ' + err.message + '\n');
}
process.stderr.write('TOKEN:' + token + '\n\n');
do_kdestroy();
});
}
};
do_kinit();
And i'm getting this crash dump, any suggestions?
----------------------- kinit:
*** Error in `node': free(): invalid pointer: 0x00000000039d5760 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fef517527e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7fef5175b37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7fef5175f53c]
/data/spike/Node-Docker/jdbcspike/node_modules/krb5/build/Release/krb5.node(_ZN6WorkerD1Ev+0x57)[0x7fef4f4d3257]
/data/spike/Node-Docker/jdbcspike/node_modules/krb5/build/Release/krb5.node(_ZN3Nan11AsyncWorker7DestroyEv+0x29)[0x7fef4f4d3bc9]
/data/spike/Node-Docker/jdbcspike/node_modules/krb5/build/Release/krb5.node(_ZN3Nan20AsyncExecuteCompleteEP9uv_work_s+0x1c4)[0x7fef4f4d2d24]
node[0x14104e5]
node[0x14125fb]
node[0x14246b8]
node(uv_run+0x156)[0x1412f86]
node(_ZN4node5StartEP9uv_loop_siPKPKciS5_+0x4ad)[0x8d443d]
node(_ZN4node5StartEiPPc+0x16d)[0x8cc8fd]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fef516fb830]
node[0x89b1b1]
======= Memory map: ========
00400000-01f4b000 r-xp 00000000 fc:00 46296 /usr/bin/node
0214a000-02165000 rw-p 01b4a000 fc:00 46296 /usr/bin/node
02165000-0217c000 rw-p 00000000 00:00 0
03916000-03a65000 rw-p 00000000 00:00 0 [heap]
27889c00000-27889c80000 rw-p 00000000 00:00 0
174f79b00000-174f79b80000 rw-p 00000000 00:00 0
1cbb4ae00000-1cbb4ae80000 rw-p 00000000 00:00 0
1d4a40800000-1d4a40880000 rw-p 00000000 00:00 0
2035df780000-2035df800000 rw-p 00000000 00:00 0
2493dbf00000-2493dbf80000 rw-p 00000000 00:00 0
253f8f000000-253f8f080000 rw-p 00000000 00:00 0
290c11c80000-290c11d00000 rw-p 00000000 00:00 0
2c4d07400000-2c4d0744f000 rw-p 00000000 00:00 0
30d03e200000-30d03e205000 rw-p 00000000 00:00 0
30dbe931f000-30dbe9320000 ---p 00000000 00:00 0
30dbe9320000-30dbe9328000 rw-p 00000000 00:00 0
30dbe9328000-30dbe932b000 ---p 00000000 00:00 0
3927d0980000-3927d0a00000 rw-p 00000000 00:00 0
39fb1334c000-39fb13380000 ---p 00000000 00:00 0
39fb13380000-39fb13383000 rw-p 00000000 00:00 0
39fb13383000-39fb13384000 ---p 00000000 00:00 0
39fb13384000-39fb13385000 rwxp 00000000 00:00 0
39fb13385000-39fb13400000 ---p 00000000 00:00 0
39fb13400000-39fb13403000 rw-p 00000000 00:00 0
39fb13403000-39fb13404000 ---p 00000000 00:00 0
39fb13404000-39fb13405000 rwxp 00000000 00:00 0
39fb13405000-39fb13480000 ---p 00000000 00:00 0
39fb13480000-39fb13483000 rw-p 00000000 00:00 0
39fb13483000-39fb13484000 ---p 00000000 00:00 0
39fb13484000-39fb13485000 rwxp 00000000 00:00 0
39fb13485000-39fb13500000 ---p 00000000 00:00 0
39fb13500000-39fb13503000 rw-p 00000000 00:00 0
39fb13503000-39fb13504000 ---p 00000000 00:00 0
39fb13504000-39fb1357f000 rwxp 00000000 00:00 0
39fb1357f000-39fb13580000 ---p 00000000 00:00 0
39fb13580000-39fb13583000 rw-p 00000000 00:00 0
39fb13583000-39fb13584000 ---p 00000000 00:00 0
39fb13584000-39fb135ff000 rwxp 00000000 00:00 0
39fb135ff000-39fb13600000 ---p 00000000 00:00 0
39fb13600000-39fb13603000 rw-p 00000000 00:00 0
39fb13603000-39fb13604000 ---p 00000000 00:00 0
39fb13604000-39fb1367f000 rwxp 00000000 00:00 0
39fb1367f000-39fb13680000 ---p 00000000 00:00 0
39fb13680000-39fb13683000 rw-p 00000000 00:00 0
39fb13683000-39fb13684000 ---p 00000000 00:00 0
39fb13684000-39fb136ff000 rwxp 00000000 00:00 0
39fb136ff000-39fb3334c000 ---p 00000000 00:00 0
3d1895c00000-3d1895c80000 rw-p 00000000 00:00 0
7fef30000000-7fef30021000 rw-p 00000000 00:00 0
7fef30021000-7fef34000000 ---p 00000000 00:00 0
7fef34000000-7fef34021000 rw-p 00000000 00:00 0
7fef34021000-7fef38000000 ---p 00000000 00:00 0
7fef38000000-7fef38021000 rw-p 00000000 00:00 0
7fef38021000-7fef3c000000 ---p 00000000 00:00 0
7fef3c000000-7fef3c021000 rw-p 00000000 00:00 0
7fef3c021000-7fef40000000 ---p 00000000 00:00 0
7fef40000000-7fef40021000 rw-p 00000000 00:00 0
7fef40021000-7fef44000000 ---p 00000000 00:00 0
7fef44000000-7fef44021000 rw-p 00000000 00:00 0
7fef44021000-7fef48000000 ---p 00000000 00:00 0
7fef48000000-7fef48021000 rw-p 00000000 00:00 0
7fef48021000-7fef4c000000 ---p 00000000 00:00 0
7fef4c34a000-7fef4c34d000 r-xp 00000000 fc:00 130629 /usr/lib/x86_64-linux-gnu/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.so
7fef4c34d000-7fef4c54c000 ---p 00003000 fc:00 130629 /usr/lib/x86_64-linux-gnu/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.so
7fef4c54c000-7fef4c54d000 r--p 00002000 fc:00 130629 /usr/lib/x86_64-linux-gnu/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.so
7fef4c54d000-7fef4c54e000 rw-p 00003000 fc:00 130629 /usr/lib/x86_64-linux-gnu/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.so
7fef4c54e000-7fef4c54f000 ---p 00000000 00:00 0
7fef4c54f000-7fef4cd4f000 rw-p 00000000 00:00 0
7fef4cd4f000-7fef4cd50000 ---p 00000000 00:00 0
7fef4cd50000-7fef4d550000 rw-p 00000000 00:00 0
7fef4d550000-7fef4d551000 ---p 00000000 00:00 0
7fef4d551000-7fef4dd51000 rw-p 00000000 00:00 0
7fef4dd51000-7fef4dd52000 ---p 00000000 00:00 0
7fef4dd52000-7fef4e552000 rw-p 00000000 00:00 0
7fef4e552000-7fef4e569000 r-xp 00000000 fc:00 1383 /lib/x86_64-linux-gnu/libresolv-2.23.so
7fef4e569000-7fef4e769000 ---p 00017000 fc:00 1383 /lib/x86_64-linux-gnu/libresolv-2.23.so
7fef4e769000-7fef4e76a000 r--p 00017000 fc:00 1383 /lib/x86_64-linux-gnu/libresolv-2.23.so
7fef4e76a000-7fef4e76b000 rw-p 00018000 fc:00 1383 /lib/x86_64-linux-gnu/libresolv-2.23.so
7fef4e76b000-7fef4e76d000 rw-p 00000000 00:00 0
7fef4e76d000-7fef4e770000 r-xp 00000000 fc:00 52533 /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7fef4e770000-7fef4e96f000 ---p 00003000 fc:00 52533 /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7fef4e96f000-7fef4e970000 r--p 00002000 fc:00 52533 /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7fef4e970000-7fef4e971000 rw-p 00003000 fc:00 52533 /lib/x86_64-linux-gnu/libkeyutils.so.1.5
7fef4e971000-7fef4e97b000 r-xp 00000000 fc:00 52508 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7fef4e97b000-7fef4eb7a000 ---p 0000a000 fc:00 52508 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7fef4eb7a000-7fef4eb7b000 r--p 00009000 fc:00 52508 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7fef4eb7b000-7fef4eb7c000 rw-p 0000a000 fc:00 52508 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7fef4eb7c000-7fef4eb7f000 r-xp 00000000 fc:00 1068 /lib/x86_64-linux-gnu/libcom_err.so.2.1
7fef4eb7f000-7fef4ed7e000 ---p 00003000 fc:00 1068 /lib/x86_64-linux-gnu/libcom_err.so.2.1
7fef4ed7e000-7fef4ed7f000 r--p 00002000 fc:00 1068 /lib/x86_64-linux-gnu/libcom_err.so.2.1
7fef4ed7f000-7fef4ed80000 rw-p 00003000 fc:00 1068 /lib/x86_64-linux-gnu/libcom_err.so.2.1
7fef4ed80000-7fef4edac000 r-xp 00000000 fc:00 52519 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7fef4edac000-7fef4efab000 ---p 0002c000 fc:00 52519 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7fef4efab000-7fef4efad000 r--p 0002b000 fc:00 52519 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7fef4efad000-7fef4efae000 rw-p 0002d000 fc:00 52519 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7fef4efae000-7fef4efaf000 rw-p 00000000 00:00 0
7fef4efaf000-7fef4eff6000 r-xp 00000000 fc:00 52563 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7fef4eff6000-7fef4f1f5000 ---p 00047000 fc:00 52563 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7fef4f1f5000-7fef4f1f7000 r--p 00046000 fc:00 52563 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7fef4f1f7000-7fef4f1f9000 rw-p 00048000 fc:00 52563 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7fef4f1f9000-7fef4f2bc000 r-xp 00000000 fc:00 52547 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7fef4f2bc000-7fef4f4bc000 ---p 000c3000 fc:00 52547 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7fef4f4bc000-7fef4f4c9000 r--p 000c3000 fc:00 52547 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7fef4f4c9000-7fef4f4cb000 rw-p 000d0000 fc:00 52547 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7fef4f4cb000-7fef4f4d6000 r-xp 00000000 fc:01 391596 /data/spike/Node-Docker/jdbcspike/node_modules/krb5/build/Release/krb5.node
7fef4f4d6000-7fef4f6d5000 ---p 0000b000 fc:01 391596 /data/spike/Node-Docker/jdbcspike/node_modules/krb5/build/Release/krb5.node
7fef4f6d5000-7fef4f6d6000 r--p 0000a000 fc:01 391596 /data/spike/Node-Docker/jdbcspike/node_modules/krb5/build/Release/krb5.node
7fef4f6d6000-7fef4f6d7000 rw-p 0000b000 fc:01 391596 /data/spike/Node-Docker/jdbcspike/node_modules/krb5/build/Release/krb5.node
7fef4f6d7000-7fef4f6d8000 ---p 00000000 00:00 0
7fef4f6d8000-7fef4fed8000 rw-p 00000000 00:00 0
7fef4fed8000-7fef4fed9000 ---p 00000000 00:00 0
7fef4fed9000-7fef506d9000 rw-p 00000000 00:00 0
7fef506d9000-7fef506da000 ---p 00000000 00:00 0
7fef506da000-7fef50eda000 rw-p 00000000 00:00 0
7fef50eda000-7fef50edb000 ---p 00000000 00:00 0
7fef50edb000-7fef516db000 rw-p 00000000 00:00 0
7fef516db000-7fef5189b000 r-xp 00000000 fc:00 1367 /lib/x86_64-linux-gnu/libc-2.23.so
7fef5189b000-7fef51a9b000 ---p 001c0000 fc:00 1367 /lib/x86_64-linux-gnu/libc-2.23.so
7fef51a9b000-7fef51a9f000 r--p 001c0000 fc:00 1367 /lib/x86_64-linux-gnu/libc-2.23.so
7fef51a9f000-7fef51aa1000 rw-p 001c4000 fc:00 1367 /lib/x86_64-linux-gnu/libc-2.23.so
7fef51aa1000-7fef51aa5000 rw-p 00000000 00:00 0
7fef51aa5000-7fef51abd000 r-xp 00000000 fc:00 1363 /lib/x86_64-linux-gnu/libpthread-2.23.so
7fef51abd000-7fef51cbc000 ---p 00018000 fc:00 1363 /lib/x86_64-linux-gnu/libpthread-2.23.so
7fef51cbc000-7fef51cbd000 r--p 00017000 fc:00 1363 /lib/x86_64-linux-gnu/libpthread-2.23.so
7fef51cbd000-7fef51cbe000 rw-p 00018000 fc:00 1363 /lib/x86_64-linux-gnu/libpthread-2.23.so
7fef51cbe000-7fef51cc2000 rw-p 00000000 00:00 0
7fef51cc2000-7fef51cd8000 r-xp 00000000 fc:00 1227 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fef51cd8000-7fef51ed7000 ---p 00016000 fc:00 1227 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fef51ed7000-7fef51ed8000 rw-p 00015000 fc:00 1227 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fef51ed8000-7fef51fe0000 r-xp 00000000 fc:00 1305 /lib/x86_64-linux-gnu/libm-2.23.so
7fef51fe0000-7fef521df000 ---p 00108000 fc:00 1305 /lib/x86_64-linux-gnu/libm-2.23.so
7fef521df000-7fef521e0000 r--p 00107000 fc:00 1305 /lib/x86_64-linux-gnu/libm-2.23.so
7fef521e0000-7fef521e1000 rw-p 00108000 fc:00 1305 /lib/x86_64-linux-gnu/libm-2.23.so
7fef521e1000-7fef52353000 r-xp 00000000 fc:00 2591 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fef52353000-7fef52553000 ---p 00172000 fc:00 2591 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fef52553000-7fef5255d000 r--p 00172000 fc:00 2591 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fef5255d000-7fef5255f000 rw-p 0017c000 fc:00 2591 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fef5255f000-7fef52563000 rw-p 00000000 00:00 0
7fef52563000-7fef5256a000 r-xp 00000000 fc:00 1529 /lib/x86_64-linux-gnu/librt-2.23.so
7fef5256a000-7fef52769000 ---p 00007000 fc:00 1529 /lib/x86_64-linux-gnu/librt-2.23.so
7fef52769000-7fef5276a000 r--p 00006000 fc:00 1529 /lib/x86_64-linux-gnu/librt-2.23.so
7fef5276a000-7fef5276b000 rw-p 00007000 fc:00 1529 /lib/x86_64-linux-gnu/librt-2.23.so
7fef5276b000-7fef5276e000 r-xp 00000000 fc:00 1378 /lib/x86_64-linux-gnu/libdl-2.23.so
7fef5276e000-7fef5296d000 ---p 00003000 fc:00 1378 /lib/x86_64-linux-gnu/libdl-2.23.so
7fef5296d000-7fef5296e000 r--p 00002000 fc:00 1378 /lib/x86_64-linux-gnu/libdl-2.23.so
7fef5296e000-7fef5296f000 rw-p 00003000 fc:00 1378 /lib/x86_64-linux-gnu/libdl-2.23.so
7fef5296f000-7fef52995000 r-xp 00000000 fc:00 1354 /lib/x86_64-linux-gnu/ld-2.23.so
7fef52b83000-7fef52b8a000 rw-p 00000000 00:00 0
7fef52b8f000-7fef52b90000 rw-p 00000000 00:00 0
7fef52b90000-7fef52b91000 ---p 00000000 00:00 0
7fef52b91000-7fef52b94000 rw-p 00000000 00:00 0
7fef52b94000-7fef52b95000 r--p 00025000 fc:00 1354 /lib/x86_64-linux-gnu/ld-2.23.so
7fef52b95000-7fef52b96000 rw-p 00026000 fc:00 1354 /lib/x86_64-linux-gnu/ld-2.23.so
7fef52b96000-7fef52b97000 rw-p 00000000 00:00 0
7ffc65d4d000-7ffc65d6e000 rw-p 00000000 00:00 0 [stack]
7ffc65dcc000-7ffc65dcf000 r--p 00000000 00:00 0 [vvar]
7ffc65dcf000-7ffc65dd1000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted