[streaming] Re: VLC - DVB Memory leak?

Sean Lowry Sean.Lowry at keycom.co.uk
Wed Apr 19 14:12:38 CEST 2006


I have some more info if this helps anyone I've done some changes in the dvb
source but there still seems to be a leak. What I get from gdb is this


(gdb) info thread
  37 Thread -1210696800 (LWP 3561)  0x008e9410 in __kernel_vsyscall ()
  36 Thread -1221186656 (LWP 3562)  0x008e9410 in __kernel_vsyscall ()
  35 Thread -1231676512 (LWP 3563)  0x008e9410 in __kernel_vsyscall ()
  34 Thread -1242166368 (LWP 3564)  0x008e9410 in __kernel_vsyscall ()
  33 Thread -1252656224 (LWP 3565)  0x008e9410 in __kernel_vsyscall ()
  32 Thread -1263146080 (LWP 3566)  0x008e9410 in __kernel_vsyscall ()
  31 Thread -1273635936 (LWP 3567)  0x008e9410 in __kernel_vsyscall ()
  30 Thread -1284125792 (LWP 3568)  0x008e9410 in __kernel_vsyscall ()
  29 Thread -1294615648 (LWP 3569)  0x008e9410 in __kernel_vsyscall ()
  28 Thread -1305105504 (LWP 3570)  0x008e9410 in __kernel_vsyscall ()
  27 Thread -1315595360 (LWP 3571)  0x008e9410 in __kernel_vsyscall ()
  26 Thread -1326085216 (LWP 3572)  0x008e9410 in __kernel_vsyscall ()
  25 Thread -1337984096 (LWP 3573)  0x008e9410 in __kernel_vsyscall ()
  24 Thread -1348473952 (LWP 3574)  0x008e9410 in __kernel_vsyscall ()
  23 Thread -1379943520 (LWP 3579)  0x008e9410 in __kernel_vsyscall ()
  22 Thread -1390433376 (LWP 3580)  0x008e9410 in __kernel_vsyscall ()
  21 Thread -1400923232 (LWP 3581)  0x008e9410 in __kernel_vsyscall ()
  20 Thread -1411413088 (LWP 3582)  0x008e9410 in __kernel_vsyscall ()
  19 Thread -1421902944 (LWP 3583)  0x008e9410 in __kernel_vsyscall ()
  18 Thread -1432392800 (LWP 3584)  0x008e9410 in __kernel_vsyscall ()
  17 Thread -1442882656 (LWP 3585)  0x008e9410 in __kernel_vsyscall ()
  16 Thread -1453372512 (LWP 3586)  0x008e9410 in __kernel_vsyscall ()
  15 Thread -1463862368 (LWP 3587)  0x008e9410 in __kernel_vsyscall ()
  14 Thread -1474352224 (LWP 3588)  0x008e9410 in __kernel_vsyscall ()
  13 Thread -1484842080 (LWP 3589)  0x008e9410 in __kernel_vsyscall ()
  12 Thread -1495331936 (LWP 3590)  0x008e9410 in __kernel_vsyscall ()
  11 Thread -1505821792 (LWP 3591)  0x008e9410 in __kernel_vsyscall ()
  10 Thread -1516311648 (LWP 3592)  0x008e9410 in __kernel_vsyscall ()
  9 Thread -1526801504 (LWP 3593)  0x008e9410 in __kernel_vsyscall ()
  8 Thread -1537291360 (LWP 3594)  0x008e9410 in __kernel_vsyscall ()
  7 Thread -1547781216 (LWP 3595)  0x008e9410 in __kernel_vsyscall ()
  6 Thread -1558271072 (LWP 3596)  0x008e9410 in __kernel_vsyscall ()
  5 Thread -1568760928 (LWP 3597)  0x008e9410 in __kernel_vsyscall ()
  4 Thread -1579250784 (LWP 3598)  0x008e9410 in __kernel_vsyscall ()
  3 Thread -1369453664 (LWP 10387)  0x008e9410 in __kernel_vsyscall ()
  2 Thread -1358963808 (LWP 10388)  0x008e9410 in __kernel_vsyscall ()
  1 Thread -1208568144 (LWP 3559)  0x008e9410 in __kernel_vsyscall ()
(gdb) thread apply all bt

Thread 37 (Thread -1210696800 (LWP 3561)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808c47a in msleep ()
#3  0xb7d6339c in ?? ()
#4  0x00000000 in ?? ()

Thread 36 (Thread -1221186656 (LWP 3562)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808c47a in msleep ()
#3  0xb73623dc in ?? ()
#4  0x00000000 in ?? ()

Thread 35 (Thread -1231676512 (LWP 3563)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808c47a in msleep ()

Thread 34 (Thread -1242166368 (LWP 3564)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808c47a in msleep ()
#3  0xb5f6044c in ?? ()
#4  0x00000000 in ?? ()

Thread 33 (Thread -1252656224 (LWP 3565)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00b77571 in ___newselect_nocancel () from /lib/libc.so.6
#2  0x00f53856 in Block () from /usr/local/lib/vlc/access/libdvb_plugin.so
#3  0xb555f154 in ?? ()
#4  0x00b1a01c in _int_malloc () from /lib/libc.so.6
#5  0x00000000 in ?? ()

Thread 32 (Thread -1263146080 (LWP 3566)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808c52c in mwait ()
#3  0x00000000 in ?? ()

Thread 31 (Thread -1273635936 (LWP 3567)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808c47a in msleep ()
#3  0xb414d40c in ?? ()
#4  0x00000000 in ?? ()

Thread 30 (Thread -1284125792 (LWP 3568)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808c52c in mwait ()
---Type <return> to continue, or q <return> to quit---
#3  0x00000000 in ?? ()

Thread 29 (Thread -1294615648 (LWP 3569)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808c52c in mwait ()
#3  0x00000000 in ?? ()

Thread 28 (Thread -1305105504 (LWP 3570)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808c52c in mwait ()
#3  0x00000000 in ?? ()

Thread 27 (Thread -1315595360 (LWP 3571)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808c52c in mwait ()
#3  0x00000000 in ?? ()

Thread 26 (Thread -1326085216 (LWP 3572)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808c52c in mwait ()
#3  0x00000000 in ?? ()

Thread 25 (Thread -1337984096 (LWP 3573)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808c52c in mwait ()
#3  0x00000000 in ?? ()

Thread 24 (Thread -1348473952 (LWP 3574)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c94356 in __nanosleep_nocancel () from /lib/libpthread.so.0
#2  0x0808c52c in mwait ()
#3  0x00000000 in ?? ()

Thread 23 (Thread -1379943520 (LWP 3579)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 22 (Thread -1390433376 (LWP 3580)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 21 (Thread -1400923232 (LWP 3581)):
#0  0x008e9410 in __kernel_vsyscall ()
---Type <return> to continue, or q <return> to quit---
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 20 (Thread -1411413088 (LWP 3582)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 19 (Thread -1421902944 (LWP 3583)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 18 (Thread -1432392800 (LWP 3584)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 17 (Thread -1442882656 (LWP 3585)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 16 (Thread -1453372512 (LWP 3586)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 15 (Thread -1463862368 (LWP 3587)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 14 (Thread -1474352224 (LWP 3588)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 13 (Thread -1484842080 (LWP 3589)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

---Type <return> to continue, or q <return> to quit---
Thread 12 (Thread -1495331936 (LWP 3590)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 11 (Thread -1505821792 (LWP 3591)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 10 (Thread -1516311648 (LWP 3592)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 9 (Thread -1526801504 (LWP 3593)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 8 (Thread -1537291360 (LWP 3594)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 7 (Thread -1547781216 (LWP 3595)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 6 (Thread -1558271072 (LWP 3596)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 5 (Thread -1568760928 (LWP 3597)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x00000000 in ?? ()

Thread 4 (Thread -1579250784 (LWP 3598)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
---Type <return> to continue, or q <return> to quit---
#3  0x00000000 in ?? ()

Thread 3 (Thread -1369453664 (LWP 10387)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0x08c78880 in ?? ()
#4  0x00000000 in ?? ()

Thread 2 (Thread -1358963808 (LWP 10388)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00c91216 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x0808ce86 in block_FifoGet ()
#3  0xb7f74858 in ?? ()
#4  0xb7f6c8e0 in ?? ()
#5  0x00000001 in ?? ()
#6  0x00000001 in ?? ()
#7  0x00000000 in ?? ()

Thread 1 (Thread -1208568144 (LWP 3559)):
#0  0x008e9410 in __kernel_vsyscall ()
#1  0x00b77571 in ___newselect_nocancel () from /lib/libc.so.6
#2  0x08089fd9 in __net_ReadNonBlock ()
(gdb)

Does anyone have any idea's. or can confirm that the amount of threads and
the state they are in is normal..

Sean

-- 
This is the streaming mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the streaming mailing list