Skip to content

Instantly share code, notes, and snippets.

@ng420
Created June 4, 2016 13:30
Show Gist options
  • Save ng420/d6ad7c7eed2525aa1c9032ec3ff937c3 to your computer and use it in GitHub Desktop.
Save ng420/d6ad7c7eed2525aa1c9032ec3ff937c3 to your computer and use it in GitHub Desktop.
make[1]: Entering directory `/home/nishant/swig-hhvm/Source'
make all-am
make[2]: Entering directory `/home/nishant/swig-hhvm/Source'
depbase=`echo Modules/perl5.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I../Source/Include -I../Source/CParse -I../Source/Include -I../Source/DOH -I../Source/CParse -I../Source/Preprocessor -I../Source/Swig -I../Source/Modules -g -O2 -Wall -W -ansi -pedantic -MT Modules/perl5.o -MD -MP -MF $depbase.Tpo -c -o Modules/perl5.o Modules/perl5.cxx &&\
mv -f $depbase.Tpo $depbase.Po
g++ -g -O2 -Wall -W -ansi -pedantic -o eswig CParse/cscanner.o CParse/parser.o CParse/templ.o CParse/util.o DOH/base.o DOH/file.o DOH/fio.o DOH/hash.o DOH/list.o DOH/memory.o DOH/string.o DOH/void.o Modules/allegrocl.o Modules/allocate.o Modules/browser.o Modules/cffi.o Modules/chicken.o Modules/clisp.o Modules/contract.o Modules/csharp.o Modules/d.o Modules/directors.o Modules/emit.o Modules/go.o Modules/guile.o Modules/hhvm.o Modules/interface.o Modules/java.o Modules/javascript.o Modules/lang.o Modules/lua.o Modules/main.o Modules/modula3.o Modules/module.o Modules/mzscheme.o Modules/nested.o Modules/ocaml.o Modules/octave.o Modules/overload.o Modules/perl5.o Modules/php.o Modules/pike.o Modules/python.o Modules/r.o Modules/ruby.o Modules/s-exp.o Modules/scilab.o Modules/swigmain.o Modules/tcl8.o Modules/typepass.o Modules/uffi.o Modules/utils.o Modules/xml.o Preprocessor/cpp.o Preprocessor/expr.o Swig/cwrap.o Swig/deprecate.o Swig/error.o Swig/extend.o Swig/fragment.o Swig/getopt.o Swig/include.o Swig/misc.o Swig/naming.o Swig/parms.o Swig/scanner.o Swig/stype.o Swig/symbol.o Swig/tree.o Swig/typeobj.o Swig/typemap.o Swig/typesys.o Swig/wrapfunc.o -ldl -lpcre
cp -f ../Source/eswig ../swig
make[2]: Leaving directory `/home/nishant/swig-hhvm/Source'
make[1]: Leaving directory `/home/nishant/swig-hhvm/Source'
test -z "1" || (cd CCache && make)
make[1]: Entering directory `/home/nishant/swig-hhvm/CCache'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/nishant/swig-hhvm/CCache'
==21750== Memcheck, a memory error detector
==21750== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==21750== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==21750== Command: ./swig -hhvm -c++ sample/example.i
==21750==
==21750== Invalid read of size 4
==21750== at 0x41ED1A: DohvPrintf (fio.c:323)
==21750== by 0x41F106: DohPrintf (fio.c:435)
==21750== by 0x48E5C6: Language::insertDirective(void*) (lang.cxx:669)
==21750== by 0x48AB65: Dispatcher::emit_one(void*) (lang.cxx:167)
==21750== by 0x48E1FE: Language::emit_one(void*) (lang.cxx:399)
==21750== by 0x48AC2C: Dispatcher::emit_children(void*) (lang.cxx:211)
==21750== by 0x48A419: Language::includeDirective(void*) (lang.cxx:649)
==21750== by 0x48AB77: Dispatcher::emit_one(void*) (lang.cxx:165)
==21750== by 0x48E1FE: Language::emit_one(void*) (lang.cxx:399)
==21750== by 0x48AC2C: Dispatcher::emit_children(void*) (lang.cxx:211)
==21750== by 0x4724BD: HHVM::top(void*) (hhvm.cxx:90)
==21750== by 0x49CC6E: SWIG_main(int, char**, Language*) (main.cxx:1303)
==21750== Address 0x5f21364 is 740 bytes inside a block of size 743 alloc'd
==21750== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==21750== by 0x41F014: DohvPrintf (fio.c:316)
==21750== by 0x41F106: DohPrintf (fio.c:435)
==21750== by 0x48E5C6: Language::insertDirective(void*) (lang.cxx:669)
==21750== by 0x48AB65: Dispatcher::emit_one(void*) (lang.cxx:167)
==21750== by 0x48E1FE: Language::emit_one(void*) (lang.cxx:399)
==21750== by 0x48AC2C: Dispatcher::emit_children(void*) (lang.cxx:211)
==21750== by 0x48A419: Language::includeDirective(void*) (lang.cxx:649)
==21750== by 0x48AB77: Dispatcher::emit_one(void*) (lang.cxx:165)
==21750== by 0x48E1FE: Language::emit_one(void*) (lang.cxx:399)
==21750== by 0x48AC2C: Dispatcher::emit_children(void*) (lang.cxx:211)
==21750== by 0x4724BD: HHVM::top(void*) (hhvm.cxx:90)
==21750==
==21750== Invalid read of size 4
==21750== at 0x41ED2F: DohvPrintf (fio.c:323)
==21750== by 0x41F106: DohPrintf (fio.c:435)
==21750== by 0x48E5C6: Language::insertDirective(void*) (lang.cxx:669)
==21750== by 0x48AB65: Dispatcher::emit_one(void*) (lang.cxx:167)
==21750== by 0x48E1FE: Language::emit_one(void*) (lang.cxx:399)
==21750== by 0x48AC2C: Dispatcher::emit_children(void*) (lang.cxx:211)
==21750== by 0x48A419: Language::includeDirective(void*) (lang.cxx:649)
==21750== by 0x48AB77: Dispatcher::emit_one(void*) (lang.cxx:165)
==21750== by 0x48E1FE: Language::emit_one(void*) (lang.cxx:399)
==21750== by 0x48AC2C: Dispatcher::emit_children(void*) (lang.cxx:211)
==21750== by 0x4724BD: HHVM::top(void*) (hhvm.cxx:90)
==21750== by 0x49CC6E: SWIG_main(int, char**, Language*) (main.cxx:1303)
==21750== Address 0x5f22bc8 is 3,800 bytes inside a block of size 3,802 alloc'd
==21750== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==21750== by 0x41F014: DohvPrintf (fio.c:316)
==21750== by 0x41F106: DohPrintf (fio.c:435)
==21750== by 0x48E5C6: Language::insertDirective(void*) (lang.cxx:669)
==21750== by 0x48AB65: Dispatcher::emit_one(void*) (lang.cxx:167)
==21750== by 0x48E1FE: Language::emit_one(void*) (lang.cxx:399)
==21750== by 0x48AC2C: Dispatcher::emit_children(void*) (lang.cxx:211)
==21750== by 0x48A419: Language::includeDirective(void*) (lang.cxx:649)
==21750== by 0x48AB77: Dispatcher::emit_one(void*) (lang.cxx:165)
==21750== by 0x48E1FE: Language::emit_one(void*) (lang.cxx:399)
==21750== by 0x48AC2C: Dispatcher::emit_children(void*) (lang.cxx:211)
==21750== by 0x4724BD: HHVM::top(void*) (hhvm.cxx:90)
==21750==
==21750== Invalid read of size 4
==21750== at 0x41ED2F: DohvPrintf (fio.c:323)
==21750== by 0x41F106: DohPrintf (fio.c:435)
==21750== by 0x528DEA: Wrapper_print (wrapfunc.c:395)
==21750== by 0x471ED0: dispatchFunction (hhvm.cxx:363)
==21750== by 0x471ED0: HHVM::functionWrapper(void*) (hhvm.cxx:480)
==21750== by 0x48BEC9: Language::globalfunctionHandler(void*) (lang.cxx:1153)
==21750== by 0x48BD4F: Language::functionHandler(void*) (lang.cxx:1077)
==21750== by 0x492824: Language::cDeclaration(void*) (lang.cxx:1013)
==21750== by 0x48A95F: Dispatcher::emit_one(void*) (lang.cxx:119)
==21750== by 0x48E1FE: Language::emit_one(void*) (lang.cxx:399)
==21750== by 0x48AC2C: Dispatcher::emit_children(void*) (lang.cxx:211)
==21750== by 0x48A419: Language::includeDirective(void*) (lang.cxx:649)
==21750== by 0x48AB77: Dispatcher::emit_one(void*) (lang.cxx:165)
==21750== Address 0x6060910 is 752 bytes inside a block of size 754 alloc'd
==21750== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==21750== by 0x41F014: DohvPrintf (fio.c:316)
==21750== by 0x41F106: DohPrintf (fio.c:435)
==21750== by 0x528DEA: Wrapper_print (wrapfunc.c:395)
==21750== by 0x471ED0: dispatchFunction (hhvm.cxx:363)
==21750== by 0x471ED0: HHVM::functionWrapper(void*) (hhvm.cxx:480)
==21750== by 0x48BEC9: Language::globalfunctionHandler(void*) (lang.cxx:1153)
==21750== by 0x48BD4F: Language::functionHandler(void*) (lang.cxx:1077)
==21750== by 0x492824: Language::cDeclaration(void*) (lang.cxx:1013)
==21750== by 0x48A95F: Dispatcher::emit_one(void*) (lang.cxx:119)
==21750== by 0x48E1FE: Language::emit_one(void*) (lang.cxx:399)
==21750== by 0x48AC2C: Dispatcher::emit_children(void*) (lang.cxx:211)
==21750== by 0x48A419: Language::includeDirective(void*) (lang.cxx:649)
==21750==
==21750== Invalid read of size 4
==21750== at 0x41ED1A: DohvPrintf (fio.c:323)
==21750== by 0x41F106: DohPrintf (fio.c:435)
==21750== by 0x528DEA: Wrapper_print (wrapfunc.c:395)
==21750== by 0x471ED0: dispatchFunction (hhvm.cxx:363)
==21750== by 0x471ED0: HHVM::functionWrapper(void*) (hhvm.cxx:480)
==21750== by 0x48BEC9: Language::globalfunctionHandler(void*) (lang.cxx:1153)
==21750== by 0x48BD4F: Language::functionHandler(void*) (lang.cxx:1077)
==21750== by 0x492824: Language::cDeclaration(void*) (lang.cxx:1013)
==21750== by 0x48A95F: Dispatcher::emit_one(void*) (lang.cxx:119)
==21750== by 0x48E1FE: Language::emit_one(void*) (lang.cxx:399)
==21750== by 0x48AC2C: Dispatcher::emit_children(void*) (lang.cxx:211)
==21750== by 0x48A419: Language::includeDirective(void*) (lang.cxx:649)
==21750== by 0x48AB77: Dispatcher::emit_one(void*) (lang.cxx:165)
==21750== Address 0x61240fc is 524 bytes inside a block of size 527 alloc'd
==21750== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==21750== by 0x41F014: DohvPrintf (fio.c:316)
==21750== by 0x41F106: DohPrintf (fio.c:435)
==21750== by 0x528DEA: Wrapper_print (wrapfunc.c:395)
==21750== by 0x471ED0: dispatchFunction (hhvm.cxx:363)
==21750== by 0x471ED0: HHVM::functionWrapper(void*) (hhvm.cxx:480)
==21750== by 0x48BEC9: Language::globalfunctionHandler(void*) (lang.cxx:1153)
==21750== by 0x48BD4F: Language::functionHandler(void*) (lang.cxx:1077)
==21750== by 0x492824: Language::cDeclaration(void*) (lang.cxx:1013)
==21750== by 0x48A95F: Dispatcher::emit_one(void*) (lang.cxx:119)
==21750== by 0x48E1FE: Language::emit_one(void*) (lang.cxx:399)
==21750== by 0x48AC2C: Dispatcher::emit_children(void*) (lang.cxx:211)
==21750== by 0x48A419: Language::includeDirective(void*) (lang.cxx:649)
==21750==
==21750==
==21750== HEAP SUMMARY:
==21750== in use at exit: 863,553 bytes in 9,899 blocks
==21750== total heap usage: 40,862 allocs, 30,963 frees, 2,208,631 bytes allocated
==21750==
==21750== LEAK SUMMARY:
==21750== definitely lost: 1,998 bytes in 150 blocks
==21750== indirectly lost: 0 bytes in 0 blocks
==21750== possibly lost: 0 bytes in 0 blocks
==21750== still reachable: 861,555 bytes in 9,749 blocks
==21750== suppressed: 0 bytes in 0 blocks
==21750== Rerun with --leak-check=full to see details of leaked memory
==21750==
==21750== For counts of detected and suppressed errors, rerun with: -v
==21750== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment