Skip to content

Instantly share code, notes, and snippets.

@rigid
Created January 25, 2013 04:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rigid/4631801 to your computer and use it in GitHub Desktop.
Save rigid/4631801 to your computer and use it in GitHub Desktop.
# valgrind lv-tool -i alsa -a blursk
==17249== Memcheck, a memory error detector
==17249== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==17249== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==17249== Command: lv-tool -i alsa -a blursk
==17249==
lv-tool v0.1
Loading actor 'blursk'...
Loading input 'alsa'...
==17249== Syscall param ioctl(arg) contains uninitialised byte(s)
==17249== at 0x4561C99: ioctl (syscall-template.S:82)
==17249== by 0x409396A: visual_plugin_realize (lv_plugin.cpp:199)
==17249== by 0x4091752: visual_input_realize (lv_input.cpp:127)
==17249== by 0x4086B39: LV::Bin::realize() (lv_bin.cpp:159)
==17249== by 0x8058753: main (lv-tool.cpp:447)
==17249==
---------------------------------------------------------------------------
# gdb --args lv-tool -i alsa -a blursk
GNU gdb (Gentoo 7.5 p1) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/local/bin/lv-tool...done.
(gdb) r
Starting program: /usr/local/bin/lv-tool -i alsa -a blursk
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
/usr/local/bin/lv-tool v0.1
Loading actor 'blursk'...
Loading input 'alsa'...
*** glibc detected *** /usr/local/bin/lv-tool: corrupted double-linked list: 0x0810ce00 ***
^C
Program received signal SIGINT, Interrupt.
0xb7ffd424 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7ffd424 in __kernel_vsyscall ()
#1 0xb7ad9fe3 in __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:95
#2 0xb7a610ae in _L_lock_10574 () at malloc.c:5210
#3 0xb7a5f6cc in __GI___libc_malloc (bytes=28) at malloc.c:2921
#4 0xb7feaecd in _dl_map_object_deps (map=0xb7bcf2c0, preloads=<optimized out>, npreloads=3082305100, trace_mode=0, open_mode=-2147483648) at dl-deps.c:517
#5 0xb7ff0286 in dl_open_worker (a=0xbfffd5f0) at dl-open.c:262
#6 0xb7fec484 in _dl_catch_error (objname=0xbfffd614, errstring=0xbfffd618, mallocedp=0xbfffd61f, operate=0xb7ff00f4 <dl_open_worker>, args=0xbfffd5f0)
at dl-error.c:178
#7 0xb7fefcdd in _dl_open (file=0xb7b39445 "libgcc_s.so.1", mode=-2147483647, caller_dlopen=0xb7adeed9 <init+41>, nsid=-2, argc=5, argv=0xbfffe864, env=0xbfffe87c)
at dl-open.c:639
#8 0xb7b019d8 in do_dlopen (ptr=0xbfffd7a0) at dl-libc.c:89
#9 0xb7fec484 in _dl_catch_error (objname=0xbfffd774, errstring=0xbfffd778, mallocedp=0xbfffd77f, operate=0xb7b0197c <do_dlopen>, args=0xbfffd7a0) at dl-error.c:178
#10 0xb7b01aa8 in dlerror_run (operate=<optimized out>, args=<optimized out>) at dl-libc.c:48
#11 0xb7b01b21 in __GI___libc_dlopen_mode (name=0xb7b39445 "libgcc_s.so.1", mode=-2147483647) at dl-libc.c:165
#12 0xb7adeed9 in init () at ../sysdeps/i386/backtrace.c:44
#13 0xb7e84790 in pthread_once () at ../nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S:122
#14 0xb7adf13d in __GI___backtrace (array=0xbfffddf0, size=64) at ../sysdeps/i386/backtrace.c:121
#15 0xb7a55f05 in __libc_message (do_abort=2, fmt=0xb7b3e60c "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:178
#16 0xb7a5baf5 in malloc_printerr (action=<optimized out>, str=<optimized out>, ptr=0x810ce00) at malloc.c:5007
---Type <return> to continue, or q <return> to quit---
#17 0xb7a5ca84 in _int_free (av=0xb7b84440 <main_arena>, p=0x810c5f8, have_lock=0) at malloc.c:4085
#18 0xb7f70f22 in visual_mem_free (ptr=0x810c600) at /storage/code/libvisual/libvisual.git/libvisual/libvisual/lv_mem.c:151
#19 0xb7f839c0 in LV::Buffer::Impl::free (this=0x8102d80) at /storage/code/libvisual/libvisual.git/libvisual/libvisual/lv_buffer.cpp:74
#20 0xb7f838eb in LV::Buffer::Impl::~Impl (this=0x8102d80, __in_chrg=<optimized out>) at /storage/code/libvisual/libvisual.git/libvisual/libvisual/lv_buffer.cpp:46
#21 0xb7f83c4a in std::default_delete<LV::Buffer::Impl>::operator() (this=0x8102ef0, __ptr=0x8102d80)
at /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/include/g++-v4/bits/unique_ptr.h:63
#22 0xb7f83b08 in std::unique_ptr<LV::Buffer::Impl, std::default_delete<LV::Buffer::Impl> >::reset (this=0x8102ef0, __p=0x8102d80)
at /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/include/g++-v4/bits/unique_ptr.h:245
#23 0xb7f83a47 in std::unique_ptr<LV::Buffer::Impl, std::default_delete<LV::Buffer::Impl> >::~unique_ptr (this=0x8102ef0, __in_chrg=<optimized out>)
at /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/include/g++-v4/bits/unique_ptr.h:169
#24 0xb7f832dd in LV::Buffer::~Buffer (this=0x8102ef0, __in_chrg=<optimized out>) at /storage/code/libvisual/libvisual.git/libvisual/libvisual/lv_buffer.cpp:112
#25 0xb7f8389c in LV::Buffer::unref (this=0x8102ef0) at /storage/code/libvisual/libvisual.git/libvisual/libvisual/lv_buffer.cpp:214
#26 0xb7f7b5bf in LV::intrusive_ptr_release (buffer=0x8102ef0) at /storage/code/libvisual/libvisual.git/libvisual/libvisual/lv_buffer.h:207
#27 0xb7f7bd94 in LV::IntrusivePtr<LV::Buffer>::~IntrusivePtr (this=0xbfffe154, __in_chrg=<optimized out>)
at /storage/code/libvisual/libvisual.git/libvisual/libvisual/lv_intrusive_ptr.hpp:52
#28 0xb7f7aadb in LV::Audio::get_sample_mixed_simple (this=0x809b620, buffer=..., channels=2, args=0xbfffe1d4 "I\377\261")
at /storage/code/libvisual/libvisual.git/libvisual/libvisual/lv_audio.cpp:266
#29 0xb7f9b005 in visual_audio_get_sample_mixed_simple (self=0x809b620, buffer=0x80e01e0, channels=2)
at /storage/code/libvisual/libvisual.git/libvisual/libvisual/lv_audio_c.cpp:56
#30 0xb7f09d99 in act_blursk_render (plugin=0x809b4a8, video=0x80dfe08, audio=0x809b620)
at /storage/code/libvisual/libvisual.git/libvisual-plugins/plugins/actor/blursk/actor_blursk.c:308
#31 0xb7f79f91 in visual_actor_run (actor=0x809b428, audio=0x809b620) at /storage/code/libvisual/libvisual.git/libvisual/libvisual/lv_actor.cpp:501
#32 0xb7f827c2 in LV::Bin::run (this=0xbfffe718) at /storage/code/libvisual/libvisual.git/libvisual/libvisual/lv_bin.cpp:783
#33 0x08058b21 in main (argc=5, argv=0xbfffe864) at /storage/code/libvisual/libvisual.git/libvisual/tools/lv-tool/lv-tool.cpp:590
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment