Skip to content

Instantly share code, notes, and snippets.

@agentzh
Created December 22, 2013 05:27
Show Gist options
  • Save agentzh/8078768 to your computer and use it in GitHub Desktop.
Save agentzh/8078768 to your computer and use it in GitHub Desktop.
==30789== Memcheck, a memory error detector
==30789== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==30789== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==30789== Command: /opt/luajit21sysm/bin/luajit-2.1.0-alpha test.lua
==30789==
==30789== Invalid read of size 1
==30789== at 0x42E514: lj_opt_fold (lj_opt_fold.c:2389)
==30789== by 0x436A68: lj_record_idx (lj_record.c:1343)
==30789== by 0x43A14A: lj_record_ins (lj_record.c:1368)
==30789== by 0x41856A: trace_state (lj_trace.c:589)
==30789== by 0x420763: lj_vm_cpcall (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x418FBC: lj_trace_ins (lj_trace.c:647)
==30789== by 0x40A0CF: lj_dispatch_ins (lj_dispatch.c:418)
==30789== by 0x421D1B: lj_vm_inshook (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F81C: lua_pcall (lj_api.c:1041)
==30789== by 0x404945: docall (luajit.c:121)
==30789== by 0x4054D5: pmain (luajit.c:288)
==30789== by 0x4203F4: lj_BC_FUNCC (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== Address 0x4d1606d is not stack'd, malloc'd or (recently) free'd
==30789==
==30789== Invalid read of size 8
==30789== at 0x42E51C: lj_opt_fold (lj_opt_fold.c:2390)
==30789== by 0x436A68: lj_record_idx (lj_record.c:1343)
==30789== by 0x43A14A: lj_record_ins (lj_record.c:1368)
==30789== by 0x41856A: trace_state (lj_trace.c:589)
==30789== by 0x420763: lj_vm_cpcall (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x418FBC: lj_trace_ins (lj_trace.c:647)
==30789== by 0x40A0CF: lj_dispatch_ins (lj_dispatch.c:418)
==30789== by 0x421D1B: lj_vm_inshook (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F81C: lua_pcall (lj_api.c:1041)
==30789== by 0x404945: docall (luajit.c:121)
==30789== by 0x4054D5: pmain (luajit.c:288)
==30789== by 0x4203F4: lj_BC_FUNCC (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== Address 0x4d16068 is not stack'd, malloc'd or (recently) free'd
==30789==
==30789== Invalid read of size 4
==30789== at 0x43A1CD: lj_record_ins (lj_record.c:1367)
==30789== by 0x41856A: trace_state (lj_trace.c:589)
==30789== by 0x420763: lj_vm_cpcall (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x418FBC: lj_trace_ins (lj_trace.c:647)
==30789== by 0x40A0CF: lj_dispatch_ins (lj_dispatch.c:418)
==30789== by 0x421D1B: lj_vm_inshook (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F81C: lua_pcall (lj_api.c:1041)
==30789== by 0x404945: docall (luajit.c:121)
==30789== by 0x4054D5: pmain (luajit.c:288)
==30789== by 0x4203F4: lj_BC_FUNCC (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F8EE: lua_cpcall (lj_api.c:1063)
==30789== by 0x404213: main (luajit.c:565)
==30789== Address 0x4c354d8 is 0 bytes after a block of size 5,272 alloc'd
==30789== at 0x4A0764C: malloc (vg_replace_malloc.c:270)
==30789== by 0x4A077C0: realloc (vg_replace_malloc.c:662)
==30789== by 0x4090CC: lua_newstate (lj_state.c:187)
==30789== by 0x41C1AF: luaL_newstate (lib_aux.c:323)
==30789== by 0x4041EE: main (luajit.c:558)
==30789==
==30789== Invalid write of size 4
==30789== at 0x4346E3: sload (lj_record.c:152)
==30789== by 0x43A1E2: lj_record_ins (lj_record.c:1367)
==30789== by 0x41856A: trace_state (lj_trace.c:589)
==30789== by 0x420763: lj_vm_cpcall (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x418FBC: lj_trace_ins (lj_trace.c:647)
==30789== by 0x40A0CF: lj_dispatch_ins (lj_dispatch.c:418)
==30789== by 0x421D1B: lj_vm_inshook (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F81C: lua_pcall (lj_api.c:1041)
==30789== by 0x404945: docall (luajit.c:121)
==30789== by 0x4054D5: pmain (luajit.c:288)
==30789== by 0x4203F4: lj_BC_FUNCC (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F8EE: lua_cpcall (lj_api.c:1063)
==30789== Address 0x4c354d8 is 0 bytes after a block of size 5,272 alloc'd
==30789== at 0x4A0764C: malloc (vg_replace_malloc.c:270)
==30789== by 0x4A077C0: realloc (vg_replace_malloc.c:662)
==30789== by 0x4090CC: lua_newstate (lj_state.c:187)
==30789== by 0x41C1AF: luaL_newstate (lib_aux.c:323)
==30789== by 0x4041EE: main (luajit.c:558)
==30789==
==30789== Use of uninitialised value of size 8
==30789== at 0x42E571: lj_opt_fold (lj_opt_fold.c:2400)
==30789== by 0x436A68: lj_record_idx (lj_record.c:1343)
==30789== by 0x43A14A: lj_record_ins (lj_record.c:1368)
==30789== by 0x41856A: trace_state (lj_trace.c:589)
==30789== by 0x420763: lj_vm_cpcall (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x418FBC: lj_trace_ins (lj_trace.c:647)
==30789== by 0x40A0CF: lj_dispatch_ins (lj_dispatch.c:418)
==30789== by 0x421D1B: lj_vm_inshook (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F81C: lua_pcall (lj_api.c:1041)
==30789== by 0x404945: docall (luajit.c:121)
==30789== by 0x4054D5: pmain (luajit.c:288)
==30789== by 0x4203F4: lj_BC_FUNCC (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789==
==30789== Conditional jump or move depends on uninitialised value(s)
==30789== at 0x42E582: lj_opt_fold (lj_opt_fold.c:2401)
==30789== by 0x436A68: lj_record_idx (lj_record.c:1343)
==30789== by 0x43A14A: lj_record_ins (lj_record.c:1368)
==30789== by 0x41856A: trace_state (lj_trace.c:589)
==30789== by 0x420763: lj_vm_cpcall (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x418FBC: lj_trace_ins (lj_trace.c:647)
==30789== by 0x40A0CF: lj_dispatch_ins (lj_dispatch.c:418)
==30789== by 0x421D1B: lj_vm_inshook (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F81C: lua_pcall (lj_api.c:1041)
==30789== by 0x404945: docall (luajit.c:121)
==30789== by 0x4054D5: pmain (luajit.c:288)
==30789== by 0x4203F4: lj_BC_FUNCC (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789==
==30789== Use of uninitialised value of size 8
==30789== at 0x42E587: lj_opt_fold (lj_opt_fold.c:2401)
==30789== by 0x436A68: lj_record_idx (lj_record.c:1343)
==30789== by 0x43A14A: lj_record_ins (lj_record.c:1368)
==30789== by 0x41856A: trace_state (lj_trace.c:589)
==30789== by 0x420763: lj_vm_cpcall (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x418FBC: lj_trace_ins (lj_trace.c:647)
==30789== by 0x40A0CF: lj_dispatch_ins (lj_dispatch.c:418)
==30789== by 0x421D1B: lj_vm_inshook (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F81C: lua_pcall (lj_api.c:1041)
==30789== by 0x404945: docall (luajit.c:121)
==30789== by 0x4054D5: pmain (luajit.c:288)
==30789== by 0x4203F4: lj_BC_FUNCC (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789==
==30789== Conditional jump or move depends on uninitialised value(s)
==30789== at 0x42E598: lj_opt_fold (lj_opt_fold.c:2401)
==30789== by 0x436A68: lj_record_idx (lj_record.c:1343)
==30789== by 0x43A14A: lj_record_ins (lj_record.c:1368)
==30789== by 0x41856A: trace_state (lj_trace.c:589)
==30789== by 0x420763: lj_vm_cpcall (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x418FBC: lj_trace_ins (lj_trace.c:647)
==30789== by 0x40A0CF: lj_dispatch_ins (lj_dispatch.c:418)
==30789== by 0x421D1B: lj_vm_inshook (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F81C: lua_pcall (lj_api.c:1041)
==30789== by 0x404945: docall (luajit.c:121)
==30789== by 0x4054D5: pmain (luajit.c:288)
==30789== by 0x4203F4: lj_BC_FUNCC (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789==
==30789== Conditional jump or move depends on uninitialised value(s)
==30789== at 0x43A1D2: lj_record_ins (lj_record.c:1367)
==30789== by 0x41856A: trace_state (lj_trace.c:589)
==30789== by 0x420763: lj_vm_cpcall (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x418FBC: lj_trace_ins (lj_trace.c:647)
==30789== by 0x40A0CF: lj_dispatch_ins (lj_dispatch.c:418)
==30789== by 0x421D1B: lj_vm_inshook (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F81C: lua_pcall (lj_api.c:1041)
==30789== by 0x404945: docall (luajit.c:121)
==30789== by 0x4054D5: pmain (luajit.c:288)
==30789== by 0x4203F4: lj_BC_FUNCC (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F8EE: lua_cpcall (lj_api.c:1063)
==30789== by 0x404213: main (luajit.c:565)
==30789==
==30789== Invalid write of size 4
==30789== at 0x418CD6: trace_state (lj_trace.c:552)
==30789== by 0x420763: lj_vm_cpcall (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x418FBC: lj_trace_ins (lj_trace.c:647)
==30789== by 0x40A0CF: lj_dispatch_ins (lj_dispatch.c:418)
==30789== by 0x421D1B: lj_vm_inshook (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F81C: lua_pcall (lj_api.c:1041)
==30789== by 0x404945: docall (luajit.c:121)
==30789== by 0x4054D5: pmain (luajit.c:288)
==30789== by 0x4203F4: lj_BC_FUNCC (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F8EE: lua_cpcall (lj_api.c:1063)
==30789== by 0x404213: main (luajit.c:565)
==30789== Address 0x8e008c828e008c7b is not stack'd, malloc'd or (recently) free'd
==30789==
==30789==
==30789== Process terminating with default action of signal 11 (SIGSEGV)
==30789== General Protection Fault
==30789== at 0x418CD6: trace_state (lj_trace.c:552)
==30789== by 0x420763: lj_vm_cpcall (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x418FBC: lj_trace_ins (lj_trace.c:647)
==30789== by 0x40A0CF: lj_dispatch_ins (lj_dispatch.c:418)
==30789== by 0x421D1B: lj_vm_inshook (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F81C: lua_pcall (lj_api.c:1041)
==30789== by 0x404945: docall (luajit.c:121)
==30789== by 0x4054D5: pmain (luajit.c:288)
==30789== by 0x4203F4: lj_BC_FUNCC (in /opt/luajit21sysm/bin/luajit-2.1.0-alpha)
==30789== by 0x40F8EE: lua_cpcall (lj_api.c:1063)
==30789== by 0x404213: main (luajit.c:565)
==30789==
==30789== HEAP SUMMARY:
==30789== in use at exit: 414,151 bytes in 658 blocks
==30789== total heap usage: 921 allocs, 263 frees, 1,100,970 bytes allocated
==30789==
==30789== LEAK SUMMARY:
==30789== definitely lost: 369,987 bytes in 582 blocks
==30789== indirectly lost: 16,450 bytes in 3 blocks
==30789== possibly lost: 14,080 bytes in 1 blocks
==30789== still reachable: 13,634 bytes in 72 blocks
==30789== suppressed: 0 bytes in 0 blocks
==30789== Rerun with --leak-check=full to see details of leaked memory
==30789==
==30789== For counts of detected and suppressed errors, rerun with: -v
==30789== Use --track-origins=yes to see where uninitialised values come from
==30789== ERROR SUMMARY: 614 errors from 10 contexts (suppressed: 2 from 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment