[vlc-devel] Possible DVB-s Bug in VLC and a big memory leak

Ivo Steinmann ivo_steinmann at gmx.net
Thu Sep 29 14:06:05 CEST 2005


Hello all

Im using gentoo amd64 kernel-2.6.13 with a Hauppauge DVB-s Nova CI with 
vlc-0.8.2. The first time I start vlc for dvb-s streaming, I get this 
message (in dmesg). vlc is working, as long as the stream is 
unencrypted. Encrypted streams dont work, because the ca0 device crash.

dvb_ca adapter 0: DVB CAM detected and initialised successfully
general protection fault: 0000 [1]
CPU 0
Modules linked in: budget_ci budget_core dvb_core saa7146 ttpci_eeprom 
stv0299 tda1004x i2c_core usb_storage via_rhine sk98lin
Pid: 8434, comm: vlc Not tainted 2.6.13
RIP: 0010:[<ffffffff8027593b>] <ffffffff8027593b>{__up_read+11}
RSP: 0018:ffff81001ad17ea8  EFLAGS: 00210082
RAX: 0000000000000068 RBX: ffff810000000000 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffc200005fc005 RDI: f000ea21f000ea91
RBP: 0000000000000000 R08: 0000000000000009 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: ffff810021cc4cc0
R13: 0000000000000001 R14: ffff810038459280 R15: 0000000000000001
FS:  0000000000722500(0063) GS:ffffffff80549800(0000) 
knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 00000000013ae188 CR3: 000000002b50c000 CR4: 00000000000006e0
Process vlc (pid: 8434, threadinfo ffff81001ad16000, task ffff81001ad15900)
Stack: 0000000000000000 0000000000200282 ffff810000000000 ffffffff8805c8eb
      0000000000000000 0000000000000145 ffff810021cc4cc0 ffff81003845928c
      0000000000000000 ffffffff80182479
Call Trace:<ffffffff8805c8eb>{:dvb_core:dvb_ca_en50221_io_poll+187}
      <ffffffff80182479>{sys_poll+489} <ffffffff80181930>{__pollwait+0}
      <ffffffff8016f39f>{sys_write+111} <ffffffff8010e8f6>{system_call+126}


Code: 8b 07 ff c8 75 5f 48 8b 4f 08 48 8d 47 08 48 39 c1 74 56 c7
RIP <ffffffff8027593b>{__up_read+11} RSP <ffff81001ad17ea8>
oom-killer: gfp_mask=0xd0, order=0

This looks very bad to me! the /dev/dvb/adapter0/ca0 is locked now, even 
if I terminate vlc.
It's even unpossible to rmmod the budget-ci module.

any hints?

I also get a lot of other messages in dmesg that are related to vlc. I 
restart vlc now every hour by a cronjob, else I run into out of memory. 
after 2 hours, vlc is consuming about 2-3gb of memory.

Mem-info:
DMA per-cpu:
cpu 0 hot: low 2, high 6, batch 1 used:5
cpu 0 cold: low 0, high 2, batch 1 used:1
Normal per-cpu:
cpu 0 hot: low 62, high 186, batch 31 used:82
cpu 0 cold: low 0, high 62, batch 31 used:46
HighMem per-cpu: empty
Free pages:        8180kB (0kB HighMem)
Active:114123 inactive:111895 dirty:0 writeback:0 unstable:0 free:2045 slab:4894 mapped:223591 pagetables:1811
DMA free:3852kB min:64kB low:80kB high:96kB active:3864kB inactive:3616kB present:15996kB pages_scanned:17365 all_unreclaimable? no
lowmem_reserve[]: 0 943 943
Normal free:4328kB min:3896kB low:4868kB high:5844kB active:452628kB inactive:443964kB present:966592kB pages_scanned:2116548 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 5*4kB 1*8kB 1*16kB 1*32kB 1*64kB 3*128kB 3*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 3852kB
Normal: 116*4kB 7*8kB 8*16kB 1*32kB 7*64kB 11*128kB 3*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 4328kB
HighMem: empty
Swap cache: add 2640329, delete 2640067, find 376411/669853, race 0+0
Free swap  = 0kB
Total swap = 1048568kB
Free swap:            0kB
Total swap = 1048568kB
Free swap:            0kB
245744 pages of RAM
5057 reserved pages
9103 pages shared
262 pages swap cached
Out of Memory: Killed process 11930 (vlc).
Out of Memory: Killed process 11943 (vlc).
Out of Memory: Killed process 11944 (vlc).
Out of Memory: Killed process 11945 (vlc).
Out of Memory: Killed process 11946 (vlc).
Out of Memory: Killed process 11947 (vlc).
Out of Memory: Killed process 11962 (vlc).
Out of Memory: Killed process 11963 (vlc).
Out of Memory: Killed process 11964 (vlc).
Out of Memory: Killed process 11965 (vlc).
Out of Memory: Killed process 11966 (vlc).
Out of Memory: Killed process 11990 (vlc).
Out of Memory: Killed process 11991 (vlc).
Out of Memory: Killed process 11992 (vlc).
Out of Memory: Killed process 11993 (vlc).
Out of Memory: Killed process 11994 (vlc).
Out of Memory: Killed process 11995 (vlc).
Out of Memory: Killed process 11996 (vlc).
Out of Memory: Killed process 11997 (vlc).
Out of Memory: Killed process 11998 (vlc).
Out of Memory: Killed process 11999 (vlc).
Out of Memory: Killed process 12000 (vlc).
Out of Memory: Killed process 12023 (vlc).
Out of Memory: Killed process 12024 (vlc).
Out of Memory: Killed process 12025 (vlc).
Out of Memory: Killed process 12036 (vlc).
Out of Memory: Killed process 12037 (vlc).
Out of Memory: Killed process 12038 (vlc).
Out of Memory: Killed process 12039 (vlc).
Out of Memory: Killed process 12047 (vlc).
Out of Memory: Killed process 12048 (vlc).
Out of Memory: Killed process 12049 (vlc).
Out of Memory: Killed process 12050 (vlc).
Out of Memory: Killed process 12051 (vlc).
Out of Memory: Killed process 12052 (vlc).
Out of Memory: Killed process 12053 (vlc).
Out of Memory: Killed process 12054 (vlc).
oom-killer: gfp_mask=0xd0, order=0
Mem-info:
DMA per-cpu:
cpu 0 hot: low 2, high 6, batch 1 used:5
cpu 0 cold: low 0, high 2, batch 1 used:1
Normal per-cpu:
cpu 0 hot: low 62, high 186, batch 31 used:78
cpu 0 cold: low 0, high 62, batch 31 used:46
HighMem per-cpu: empty
Free pages:        8180kB (0kB HighMem)
Active:114472 inactive:111554 dirty:0 writeback:2 unstable:0 free:2045 slab:4894 mapped:223591 pagetables:1811
DMA free:3852kB min:64kB low:80kB high:96kB active:3864kB inactive:3616kB present:15996kB pages_scanned:17365 all_unreclaimable? no
lowmem_reserve[]: 0 943 943
Normal free:4328kB min:3896kB low:4868kB high:5844kB active:454024kB inactive:442600kB present:966592kB pages_scanned:2179248 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 5*4kB 1*8kB 1*16kB 1*32kB 1*64kB 3*128kB 3*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 3852kB
Normal: 116*4kB 7*8kB 8*16kB 1*32kB 7*64kB 11*128kB 3*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 4328kB
HighMem: empty
Swap cache: add 2640339, delete 2640069, find 376411/669854, race 0+0
Free swap  = 0kB
Total swap = 1048568kB
Free swap:            0kB
245744 pages of RAM
5057 reserved pages
9101 pages shared
270 pages swap cached
oom-killer: gfp_mask=0xd0, order=0
Mem-info:
DMA per-cpu:
cpu 0 hot: low 2, high 6, batch 1 used:5
cpu 0 cold: low 0, high 2, batch 1 used:1
Normal per-cpu:
cpu 0 hot: low 62, high 186, batch 31 used:76
cpu 0 cold: low 0, high 62, batch 31 used:47
HighMem per-cpu: empty
Free pages:        8164kB (0kB HighMem)
Active:114910 inactive:111084 dirty:0 writeback:2 unstable:0 free:2041 slab:4894 mapped:223591 pagetables:1811
DMA free:3852kB min:64kB low:80kB high:96kB active:3736kB inactive:3744kB present:15996kB pages_scanned:19320 all_unreclaimable? no
lowmem_reserve[]: 0 943 943
Normal free:4312kB min:3896kB low:4868kB high:5844kB active:455904kB inactive:440592kB present:966592kB pages_scanned:2219585 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 5*4kB 1*8kB 1*16kB 1*32kB 1*64kB 3*128kB 3*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 3852kB
Normal: 116*4kB 5*8kB 8*16kB 1*32kB 7*64kB 11*128kB 3*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 4312kB
HighMem: empty
Swap cache: add 2640339, delete 2640069, find 376411/669854, race 0+0
Free swap  = 0kB
Total swap = 1048568kB
Free swap:            0kB
245744 pages of RAM
5057 reserved pages
9134 pages shared
270 pages swap cached
oom-killer: gfp_mask=0xd0, order=0
Mem-info:
DMA per-cpu:
cpu 0 hot: low 2, high 6, batch 1 used:5
cpu 0 cold: low 0, high 2, batch 1 used:1
Normal per-cpu:
cpu 0 hot: low 62, high 186, batch 31 used:76
cpu 0 cold: low 0, high 62, batch 31 used:35
HighMem per-cpu: empty
Free pages:        8288kB (0kB HighMem)
Active:113796 inactive:112307 dirty:0 writeback:1 unstable:0 free:2072 slab:4894 mapped:223591 pagetables:1811
DMA free:3852kB min:64kB low:80kB high:96kB active:3992kB inactive:3488kB present:15996kB pages_scanned:23983 all_unreclaimable? no
lowmem_reserve[]: 0 943 943
Normal free:4436kB min:3896kB low:4868kB high:5844kB active:451192kB inactive:445740kB present:966592kB pages_scanned:192292 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 5*4kB 1*8kB 1*16kB 1*32kB 1*64kB 3*128kB 3*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 3852kB
Normal: 147*4kB 5*8kB 8*16kB 1*32kB 7*64kB 11*128kB 3*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 4436kB
HighMem: empty
Swap cache: add 2640339, delete 2640069, find 376411/669854, race 0+0
Free swap  = 0kB
Total swap = 1048568kB
Free swap:            0kB
245744 pages of RAM
5057 reserved pages
9008 pages shared
270 pages swap cached
oom-killer: gfp_mask=0xd0, order=0
Mem-info:
DMA per-cpu:
cpu 0 hot: low 2, high 6, batch 1 used:5
cpu 0 cold: low 0, high 2, batch 1 used:1
Normal per-cpu:
cpu 0 hot: low 62, high 186, batch 31 used:76
cpu 0 cold: low 0, high 62, batch 31 used:35
HighMem per-cpu: empty
Free pages:        8288kB (0kB HighMem)
Active:113796 inactive:112307 dirty:0 writeback:0 unstable:0 free:2072 slab:4894 mapped:223591 pagetables:1811
DMA free:3852kB min:64kB low:80kB high:96kB active:3992kB inactive:3488kB present:15996kB pages_scanned:23983 all_unreclaimable? no
lowmem_reserve[]: 0 943 943
Normal free:4436kB min:3896kB low:4868kB high:5844kB active:451192kB inactive:445740kB present:966592kB pages_scanned:192292 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 5*4kB 1*8kB 1*16kB 1*32kB 1*64kB 3*128kB 3*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 3852kB
Normal: 147*4kB 5*8kB 8*16kB 1*32kB 7*64kB 11*128kB 3*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 4436kB
HighMem: empty
Swap cache: add 2640339, delete 2640069, find 376411/669854, race 0+0
Free swap  = 0kB
Total swap = 1048568kB
Free swap:            0kB
245744 pages of RAM
5057 reserved pages
9008 pages shared
270 pages swap cached
oom-killer: gfp_mask=0xd2, order=0
Mem-info:
DMA per-cpu:
cpu 0 hot: low 2, high 6, batch 1 used:5
cpu 0 cold: low 0, high 2, batch 1 used:1
HighMem per-cpu: empty
Free pages:        8288kB (0kB HighMem)
Active:115877 inactive:110196 dirty:0 writeback:0 unstable:0 free:2072 slab:4894 mapped:223587 pagetables:1811
DMA free:3852kB min:64kB low:80kB high:96kB active:3608kB inactive:3872kB present:15996kB pages_scanned:28391 all_unreclaimable? no
lowmem_reserve[]: 0 943 943
Normal free:4436kB min:3896kB low:4868kB high:5844kB active:459900kB inactive:436912kB present:966592kB pages_scanned:867879 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 5*4kB 1*8kB 1*16kB 1*32kB 1*64kB 3*128kB 3*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 3852kB
Normal: 147*4kB 5*8kB 8*16kB 1*32kB 7*64kB 11*128kB 3*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 4436kB
HighMem: empty
Swap cache: add 2640339, delete 2640085, find 376411/669854, race 0+0
Free swap  = 0kB
Total swap = 1048568kB
Free swap:            0kB
245744 pages of RAM
5057 reserved pages
9035 pages shared
254 pages swap cached
oom-killer: gfp_mask=0xd2, order=0
Mem-info:
DMA per-cpu:
cpu 0 hot: low 2, high 6, batch 1 used:5
cpu 0 cold: low 0, high 2, batch 1 used:1
Normal per-cpu:
cpu 0 hot: low 62, high 186, batch 31 used:67
cpu 0 cold: low 0, high 62, batch 31 used:33
HighMem per-cpu: empty
Free pages:        8288kB (0kB HighMem)
Active:115529 inactive:110584 dirty:0 writeback:1 unstable:0 free:2072 slab:4894 mapped:223587 pagetables:1811
DMA free:3852kB min:64kB low:80kB high:96kB active:3992kB inactive:3488kB present:15996kB pages_scanned:30346 all_unreclaimable? no
lowmem_reserve[]: 0 943 943
Normal free:4436kB min:3896kB low:4868kB high:5844kB active:458124kB inactive:438848kB present:966592kB pages_scanned:891571 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 5*4kB 1*8kB 1*16kB 1*32kB 1*64kB 3*128kB 3*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 3852kB
Normal: 147*4kB 5*8kB 8*16kB 1*32kB 7*64kB 11*128kB 3*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 4436kB
HighMem: empty
Swap cache: add 2640348, delete 2640086, find 376411/669854, race 0+0
Free swap  = 0kB
Total swap = 1048568kB
Free swap:            0kB
245744 pages of RAM
5057 reserved pages
9002 pages shared
262 pages swap cached



-Ivo Steinmann

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



More information about the vlc-devel mailing list