valgrind --leak-check=full --error-exitcode=5 --track-origins=yes --malloc-fill=0xea --expensive-definedness-checks=yes /home/tosyu/Projects/iotjs.base/build/x86_64-linux/debug/bin/iotjs /home/tosyu/Projects/iotjs.base/test/run_pass/test_iotjs_promise.js
==32572== Memcheck, a memory error detector
==32572== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==32572== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==32572== Command: /home/tosyu/Projects/iotjs.base/build/x86_64-linux/debug/bin/iotjs /home/tosyu/Projects/iotjs.base/test/run_pass/test_iotjs_promise.js
==32572==
uncaughtException: AssertionError: {"expected":"Resolved","operator":"=="}
==32572==
==32572== HEAP SUMMARY:
==32572== in use at exit: 104 bytes in 1 blocks
==32572== total heap usage: 128 allocs, 127 frees, 13,572 bytes allocated
==32572==
==32572== 104 bytes in 1 blocks are definitely lost in loss record 1 of 1
==32572== at 0x4C2FB45: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32572== by 0x13482E: iotjs_buffer_allocate (iotjs_util.c:68)
==32572== by 0x155BF6: iotjs_timerwrap_create (iotjs_module_timer.c:27)
==32572== by 0x156867: Timer (iotjs_module_timer.c:156)
==32572== by 0x130D1F: iotjs_native_dispatch_function (iotjs_binding.c:810)
==32572== by 0x17F261: ecma_op_function_call (ecma-function-object.c:371)
==32572== by 0x17F682: ecma_op_function_construct_simple_or_external (ecma-function-object.c:496)
==32572== by 0x17F845: ecma_op_function_construct (ecma-function-object.c:564)
==32572== by 0x194289: opfunc_construct (vm.c:466)
==32572== by 0x198DFD: vm_execute (vm.c:2748)
==32572== by 0x199043: vm_run (vm.c:2823)
==32572== by 0x17F1E9: ecma_op_function_call (ecma-function-object.c:352)
==32572==
==32572== LEAK SUMMARY:
==32572== definitely lost: 104 bytes in 1 blocks
==32572== indirectly lost: 0 bytes in 0 blocks
==32572== possibly lost: 0 bytes in 0 blocks
==32572== still reachable: 0 bytes in 0 blocks
==32572== suppressed: 0 bytes in 0 blocks
==32572==
==32572== For counts of detected and suppressed errors, rerun with: -v
==32572== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
valgrind --leak-check=full --error-exitcode=5 --track-origins=yes --malloc-fill=0xea --expensive-definedness-checks=yes /home/tosyu/Projects/iotjs.base/build/x86_64-linux/debug/bin/iotjs /home/tosyu/Projects/iotjs.base/test/run_pass/test_iotjs_promise.js ==32572== Memcheck, a memory error detector ==32572== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==32572== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info ==32572== Command: /home/tosyu/Projects/iotjs.base/build/x86_64-linux/debug/bin/iotjs /home/tosyu/Projects/iotjs.base/test/run_pass/test_iotjs_promise.js ==32572== uncaughtException: AssertionError: {"expected":"Resolved","operator":"=="} ==32572== ==32572== HEAP SUMMARY: ==32572== in use at exit: 104 bytes in 1 blocks ==32572== total heap usage: 128 allocs, 127 frees, 13,572 bytes allocated ==32572== ==32572== 104 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==32572== at 0x4C2FB45: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32572== by 0x13482E: iotjs_buffer_allocate (iotjs_util.c:68) ==32572== by 0x155BF6: iotjs_timerwrap_create (iotjs_module_timer.c:27) ==32572== by 0x156867: Timer (iotjs_module_timer.c:156) ==32572== by 0x130D1F: iotjs_native_dispatch_function (iotjs_binding.c:810) ==32572== by 0x17F261: ecma_op_function_call (ecma-function-object.c:371) ==32572== by 0x17F682: ecma_op_function_construct_simple_or_external (ecma-function-object.c:496) ==32572== by 0x17F845: ecma_op_function_construct (ecma-function-object.c:564) ==32572== by 0x194289: opfunc_construct (vm.c:466) ==32572== by 0x198DFD: vm_execute (vm.c:2748) ==32572== by 0x199043: vm_run (vm.c:2823) ==32572== by 0x17F1E9: ecma_op_function_call (ecma-function-object.c:352) ==32572== ==32572== LEAK SUMMARY: ==32572== definitely lost: 104 bytes in 1 blocks ==32572== indirectly lost: 0 bytes in 0 blocks ==32572== possibly lost: 0 bytes in 0 blocks ==32572== still reachable: 0 bytes in 0 blocks ==32572== suppressed: 0 bytes in 0 blocks ==32572== ==32572== For counts of detected and suppressed errors, rerun with: -v ==32572== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)