Skip to content

Instantly share code, notes, and snippets.

@kaixiong
Created April 7, 2012 02:07
Show Gist options
  • Save kaixiong/2324491 to your computer and use it in GitHub Desktop.
Save kaixiong/2324491 to your computer and use it in GitHub Desktop.
kaixiong@dreamerbox:~/installs/libvisual-0.5/bin$ valgrind ./lv-tool
==6977== Memcheck, a memory error detector
==6977== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==6977== Using Valgrind-3.6.1-Debian and LibVEX; rerun with -h for copyright info
==6977== Command: ./lv-tool
==6977==
./lv-tool v0.1
DEBUG CPU: Number of CPUs: 2
DEBUG CPU: type 3
DEBUG CPU: X86 type 6
DEBUG CPU: cacheline 64
DEBUG CPU: MMX 1
DEBUG CPU: MMX2 1
DEBUG CPU: SSE 1
DEBUG CPU: SSE2 1
DEBUG CPU: 3DNow 0
DEBUG CPU: 3DNowExt 0
DEBUG Initializing plugin registry
INFO Adding to plugin search path: /home/kaixiong/installs/libvisual-0.5/lib/libvisual-0.5/actor
INFO Adding to plugin search path: /home/kaixiong/installs/libvisual-0.5/lib/libvisual-0.5/input
INFO Adding to plugin search path: /home/kaixiong/installs/libvisual-0.5/lib/libvisual-0.5/morph
INFO Adding to plugin search path: /home/kaixiong/installs/libvisual-0.5/lib/libvisual-0.5/transform
INFO Adding to plugin search path: /home/kaixiong/.libvisual/actor
INFO Adding to plugin search path: /home/kaixiong/.libvisual/input
INFO Adding to plugin search path: /home/kaixiong/.libvisual/morph
INFO Adding to plugin search path: /home/kaixiong/.libvisual/transform
Loading actor "lv_analyzer"...
Loading input "debug"...
DEBUG old: 0 new: 1
WARNING Assertion `video != NULL' failed
==6977== Conditional jump or move depends on uninitialised value(s)
==6977== at 0x40624F: native_create(SADisplay*, VisVideoDepth, _VisVideoAttributeOptions*, int, int, int) (in /home/kaixiong/installs/libvisual-0.5/bin/lv-tool)
==6977== by 0x405869: display_create(SADisplay*, VisVideoDepth, _VisVideoAttributeOptions*, int, int, int) (in /home/kaixiong/installs/libvisual-0.5/bin/lv-tool)
==6977== by 0x4049A5: main (in /home/kaixiong/installs/libvisual-0.5/bin/lv-tool)
==6977==
DEBUG Activating plugin 'lv_analyzer'
DEBUG Activating plugin 'debug'
DEBUG starting sync
DEBUG setting new video from actvideo 1 1
DEBUG one last video pitch check 320 depth old 0 forcedmain 1 noevent 0
INFO negotiating plugin libvisual analyzer
DEBUG pitch after main actor negotiate 320
DEBUG end sync function
==6977== Conditional jump or move depends on uninitialised value(s)
==6977== at 0x406B81: native_drainevents(SADisplay*, _VisEventQueue*) (in /home/kaixiong/installs/libvisual-0.5/bin/lv-tool)
==6977== by 0x405B1D: display_drain_events(SADisplay*, _VisEventQueue*) (in /home/kaixiong/installs/libvisual-0.5/bin/lv-tool)
==6977== by 0x404A83: main (in /home/kaixiong/installs/libvisual-0.5/bin/lv-tool)
==6977==
==6977== Conditional jump or move depends on uninitialised value(s)
==6977== at 0x4E77D71: visual_actor_run (in /home/kaixiong/installs/libvisual-0.5/lib/libvisual-0.5.so.0.5.0)
==6977== by 0x4E5637B: visual_bin_run (in /home/kaixiong/installs/libvisual-0.5/lib/libvisual-0.5.so.0.5.0)
==6977== by 0x404EA7: main (in /home/kaixiong/installs/libvisual-0.5/bin/lv-tool)
==6977==
==6977== Invalid read of size 8
==6977== at 0xC0A2727: lv_analyzer_render (actor_lv_analyzer.c:319)
==6977== by 0x4E77F5E: visual_actor_run (in /home/kaixiong/installs/libvisual-0.5/lib/libvisual-0.5.so.0.5.0)
==6977== by 0x4E5637B: visual_bin_run (in /home/kaixiong/installs/libvisual-0.5/lib/libvisual-0.5.so.0.5.0)
==6977== by 0x404EA7: main (in /home/kaixiong/installs/libvisual-0.5/bin/lv-tool)
==6977== Address 0xbdb1a00 is 0 bytes after a block of size 1,600 alloc'd
==6977== at 0x4C28F9F: malloc (vg_replace_malloc.c:236)
==6977== by 0x4E5E3DF: visual_mem_malloc (in /home/kaixiong/installs/libvisual-0.5/lib/libvisual-0.5.so.0.5.0)
==6977== by 0x4E5E4B2: visual_mem_malloc0 (in /home/kaixiong/installs/libvisual-0.5/lib/libvisual-0.5.so.0.5.0)
==6977== by 0x4E56A14: visual_video_set_buffer (in /home/kaixiong/installs/libvisual-0.5/lib/libvisual-0.5.so.0.5.0)
==6977== by 0x40690D: native_getvideo(SADisplay*, _VisVideo*) (in /home/kaixiong/installs/libvisual-0.5/bin/lv-tool)
==6977== by 0x40594D: display_get_video(SADisplay*) (in /home/kaixiong/installs/libvisual-0.5/bin/lv-tool)
==6977== by 0x4049B4: main (in /home/kaixiong/installs/libvisual-0.5/bin/lv-tool)
==6977==
==6977==
==6977== HEAP SUMMARY:
==6977== in use at exit: 1,669,122 bytes in 2,512 blocks
==6977== total heap usage: 5,292 allocs, 2,780 frees, 2,500,696 bytes allocated
==6977==
==6977== LEAK SUMMARY:
==6977== definitely lost: 2,212 bytes in 36 blocks
==6977== indirectly lost: 1,404,608 bytes in 1,211 blocks
==6977== possibly lost: 0 bytes in 0 blocks
==6977== still reachable: 262,302 bytes in 1,265 blocks
==6977== suppressed: 0 bytes in 0 blocks
==6977== Rerun with --leak-check=full to see details of leaked memory
==6977==
==6977== For counts of detected and suppressed errors, rerun with: -v
==6977== Use --track-origins=yes to see where uninitialised values come from
==6977== ERROR SUMMARY: 1402 errors from 4 contexts (suppressed: 119 from 7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment