Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109973 - ivtv-detect Problem with Hauppauge 150
Summary: ivtv-detect Problem with Hauppauge 150
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Television related Applications in Gentoo's Portage
URL: http://gentoo-wiki.com/HOWTO_Setup_My...
Whiteboard:
Keywords:
: 110204 116431 116939 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-20 17:55 UTC by David Libby
Modified: 2005-12-29 20:49 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New ebuild for that includes patch for this bug (digest-ivtv-0.4.0-r3,135 bytes, patch)
2005-12-03 13:43 UTC, Roalt
Details | Diff
Actual patch to ivtv-0.4.0 to solve this bug (ivtv-0.4.0-maxdev.patch,320 bytes, patch)
2005-12-03 13:44 UTC, Roalt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Libby 2005-10-20 17:55:42 UTC
Following Gentoo Wiki was given the following advice if it failed.




Reproducible: Always
Steps to Reproduce:
# emerge ivtv
# modprobe ivtv
# ivtv-detect
# dmesg

Actual Results:  
localhost ~ # ivtv-detect
Segmentation fault




localhost ~ # dmesg
Linux version 2.6.12-gentoo-r6 (root@localhost) (gcc version 3.3.5-20050130
(Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)) #1 SMP Sun Oct 16
20:40:11 Local time zone must be set--see zic 
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000000fed0000 (usable)
 BIOS-e820: 000000000fed0000 - 000000000fef0000 (ACPI NVS)
 BIOS-e820: 000000000fef0000 - 000000000ff00000 (usable)
 BIOS-e820: 00000000feea0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
255MB LOWMEM available.
found SMP MP-table at 000f9bf0
On node 0 totalpages: 65280
  DMA zone: 4096 pages, LIFO batch:1
  Normal zone: 61184 pages, LIFO batch:31
  HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI: RSDP (v000 COMPAQ                                ) @ 0x000e0010
ACPI: RSDT (v001 COMPAQ CPQ0004  0x20020913  0x00000000) @ 0x000e0080
ACPI: FADT (v001 COMPAQ SOLANO   0x00000001  0x00000000) @ 0x000e0130
ACPI: SSDT (v001 COMPAQ CORE_UTL 0x00000001 MSFT 0x0100000d) @ 0x000e14f9
ACPI: SSDT (v001 COMPAQ VILLTBL1 0x00000001 MSFT 0x0100000d) @ 0x000e166d
ACPI: SSDT (v001 COMPAQ     FHUB 0x00000001 MSFT 0x0100000d) @ 0x000e33b3
ACPI: MADT (v001 COMPAQ SOLANO   0x00000001  0x00000000) @ 0x000e01a4
ACPI: SSDT (v001 COMPAQ     APIC 0x00000001 MSFT 0x0100000d) @ 0x000e333d
ACPI: SSDT (v001 COMPAQ PNP_PRSS 0x00000001 MSFT 0x0100000d) @ 0x000e2389
ACPI: SSDT (v001 COMPAQ       S3 0x00000001 MSFT 0x0100000d) @ 0x000e2a94
ACPI: SSDT (v001 COMPAQ   PIDETM 0x00000001 MSFT 0x0100000d) @ 0x000e2c38
ACPI: SSDT (v001 COMPAQ     GTF0 0x00000001 MSFT 0x0100000d) @ 0x000e2eed
ACPI: SSDT (v001 COMPAQ   SIDETM 0x00000001 MSFT 0x0100000d) @ 0x000e2d90
ACPI: SSDT (v001 COMPAQ     GTF2 0x00000001 MSFT 0x0100000d) @ 0x000e310f
ACPI: SSDT (v001 COMPAQ    FINIS 0x00000001 MSFT 0x0100000d) @ 0x000e349b
ACPI: DSDT (v001 COMPAQ     DSDT 0x00000001 MSFT 0x0100000d) @ 0x00000000
ACPI: PM-Timer IO Port: 0xf808
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
Processor #0 6:8 APIC version 17
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
ACPI: IOAPIC (id[0x08] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 0ff00000 (gap: 0ff00000:eefa0000)
Built 1 zonelists
Kernel command line: root=/dev/ram0 init=/linuxrc real_root=/dev/hda3 udev
video=vesafb:mtrr,ywrap,1024x768-32@85
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
Initializing CPU#0
CPU 0 irqstacks, hard=c04d2000 soft=c04ca000
PID hash table entries: 1024 (order: 10, 16384 bytes)
Detected 864.174 MHz processor.
Using pmtmr for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 251932k/261120k available (2852k kernel code, 8456k reserved, 762k data,
240k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 1712.12 BogoMIPS (lpj=856064)
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 0383fbff 00000000 00000000 00000000 00000000
00000000 00000000
CPU: After vendor identify, caps: 0383fbff 00000000 00000000 00000000 00000000
00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After all inits, caps: 0383fbff 00000000 00000000 00000040 00000000
00000000 00000000
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
CPU0: Intel Pentium III (Coppermine) stepping 06
Total of 1 processors activated (1712.12 BogoMIPS).
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 pin1=2 pin2=-1
Brought up 1 CPUs
CPU0 attaching sched-domain:
 domain 0: span 01
  groups: 01
  domain 1: span 01
   groups: 01
checking if image is initramfs... it is
Freeing initrd memory: 1765k freed
NET: Registered protocol family 16
EISA bus registered
PCI: PCI BIOS revision 2.10 entry at 0xe838d, last bus=2
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20050309
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 *11 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 *5 6 7 10 11 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 10 11 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 10 11 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 *5 6 7 10 11 14 15)
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 *10 11 14 15)
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 10 11 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 *10 11 14 15)
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
Boot video device is 0000:00:02.0
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB_._PRT]
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 15 devices
SCSI subsystem initialized
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
pnp: 00:0c: ioport range 0x4d0-0x4d1 has been reserved
pnp: 00:0d: ioport range 0x400-0x41f has been reserved
pnp: 00:0d: ioport range 0x420-0x43f has been reserved
pnp: 00:0d: ioport range 0x440-0x45f has been reserved
pnp: 00:0d: ioport range 0x460-0x47f could not be reserved
pnp: 00:0d: ioport range 0xf800-0xf81f could not be reserved
pnp: 00:0d: ioport range 0xf820-0xf83f could not be reserved
pnp: 00:0d: ioport range 0xf840-0xf85f has been reserved
pnp: 00:0d: ioport range 0xf860-0xf87f has been reserved
inotify device minor=63
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SGI XFS with ACLs, security attributes, realtime, large block numbers, no debug
enabled
SGI XFS Quota Management subsystem
Initializing Cryptographic API
vesafb: Intel Corporation, Intel(R) 810, Intel(R) 815 Chipset, Hardware Version
0.0 (OEM: Intel(R) 810, Intel(R) 815 Chipset Video BIOS)
vesafb: VBE version: 3.0
vesafb: protected mode interface info at c000:73f0
vesafb: pmi: set display start = c00c7436, set palette = c00c745a
vesafb: pmi: ports = 3c0 3c4 3c5 3c7 3c8 3c9 3ce 3cf 3d4 3d5 3d6 3d7 3d8 3d9 3da 
vesafb: hardware doesn't support DDC transfers
vesafb: monitor limits: vf = 0 Hz, hf = 0 kHz, clk = 0 MHz
vesafb: scrolling: ywrap using protected mode interface, yres_virtual=1024
vesafb: cannot reserve video memory at 0x0
vesafb: abort, cannot ioremap video memory 0x100000 @ 0x0
Trying to free nonexistent resource <00000000-000fffff>
vesafb: probe of vesafb.0 failed with error -5
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
PNP: PS/2 Controller [PNP0303:KBD,PNP0f0e:PS2M] at 0x60,0x64 irq 1,12
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 48 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
mice: PS/2 mouse device common for all mice
io scheduler noop registered
io scheduler deadline registered
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH2: IDE controller at PCI slot 0000:00:1f.1
ICH2: chipset revision 1
ICH2: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x2460-0x2467, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x2468-0x246f, BIOS settings: hdc:DMA, hdd:pio
Probing IDE interface ide0...
input: AT Translated Set 2 keyboard on isa0060/serio0
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
hda: IBM-DJNA-371350, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: COMPAQ SC-148F, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide2...
Probing IDE interface ide3...
Probing IDE interface ide4...
Probing IDE interface ide5...
hda: max request size: 128KiB
hda: 26520480 sectors (13578 MB) w/1966KiB Cache, CHS=26310/16/63, UDMA(66)
hda: cache flushes not supported
 hda: hda1 hda2 hda3
hdc: ATAPI 48X CD-ROM drive, 128kB Cache, DMA
Uniform CD-ROM driver Revision: 3.20
EISA: Probing bus 0 at eisa.0
Cannot allocate resource for EISA slot 1
Cannot allocate resource for EISA slot 2
EISA: Detected 0 cards.
NET: Registered protocol family 2
IP: routing cache hash table of 1024 buckets, 16Kbytes
TCP established hash table entries: 8192 (order: 5, 131072 bytes)
TCP bind hash table entries: 8192 (order: 4, 98304 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
NET: Registered protocol family 1
NET: Registered protocol family 17
Freeing unused kernel memory: 240k freed
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.01:USB HID core driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
USB Universal Host Controller Interface driver v2.2
ACPI: PCI Interrupt 0000:00:1f.4[C] -> GSI 23 (level, low) -> IRQ 23
PCI: Setting latency timer of device 0000:00:1f.4 to 64
uhci_hcd 0000:00:1f.4: UHCI Host Controller
uhci_hcd 0000:00:1f.4: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:1f.4: irq 23, io base 0x00002440
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
sl811: driver sl811-hcd, 19 May 2005
ieee1394: Initialized config rom entry `ip1394'
sbp2: $Rev: 1219 $ Ben Collins <bcollins@debian.org>
libata version 1.11 loaded.
device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-devel@redhat.com
ReiserFS: hda3: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on hda3
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 243928k swap on /dev/hda2.  Priority:-1 extents:1
EXT3 FS on hda3, internal journal
Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected an Intel i815 Chipset.
agpgart: detected 4MB dedicated video ram.
agpgart: AGP aperture is 64M @ 0x48000000
i810_smbus 0000:00:02.0: i810/i815 i2c device found.
ACPI: PCI Interrupt 0000:00:1f.5[B] -> GSI 17 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1f.5 to 64
intel8x0_measure_ac97_clock: measured 49714 usecs
intel8x0: clocking to 41142
e100: Intel(R) PRO/100 Network Driver, 3.4.8-k2-NAPI
e100: Copyright(c) 1999-2005 Intel Corporation
ACPI: PCI Interrupt 0000:02:08.0[A] -> GSI 20 (level, low) -> IRQ 20
e100: eth0: e100_probe: addr 0x40000000, irq 20, MAC addr 00:50:8B:F4:AA:62
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Real Time Clock Driver v1.12
input: PC Speaker
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
hda: set_drive_speed_status: status=0x58 { DriveReady SeekComplete DataRequest }

cdrom: open failed.
NET: Registered protocol family 10
Disabled Privacy Extensions on device c04485a0(lo)
IPv6 over IPv4 tunneling driver
eth0: no IPv6 routers present
Linux video capture interface: v1.00
ivtv:  ==================== START INIT IVTV ====================
ivtv:  version 0.4.0 (tagged release) loading
ivtv:  Linux version: 2.6.12-gentoo-r6 SMP preempt PENTIUMIII 4KSTACKS gcc-3.3
ivtv:  In case of problems please include the debug info
ivtv:  between the START INIT IVTV and END INIT IVTV lines when
ivtv:  mailing the ivtv-devel mailinglist.
ivtv0: Autodetected WinTV PVR 150 card (iTVC16 based)
ACPI: PCI Interrupt 0000:02:0a.0[A] -> GSI 21 (level, low) -> IRQ 21
tveeprom: ivtv version
tveeprom: Hauppauge: model = 26032, rev = C199, serial# = 8164401
tveeprom: tuner = TCL 2002N 5H (idx = 99, type = 50)
tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
tveeprom: audio processor = CX25841 (type = 23)
tveeprom: decoder processor = CX25841 (type = 1c)
ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
tuner (ivtv): chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
cx25840 2-0044: cx25841-23 found @ 0x88 (ivtv i2c driver #0)
cx25840 2-0044: loaded /lib/modules/HcwMakoA.ROM firmware (14264 bytes)
ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44]
wm8775 2-001b: chip found @ 0x36 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b]
ivtv0: loading /lib/modules/ivtv-fw-enc.bin
ivtv0: Encoder revision: 0x02050032
ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
tuner: type set to 50 (TCL 2002N) by ivtv i2c driver #0
ivtv0: Initialized WinTV PVR 150, card #0
ivtv:  ====================  END INIT IVTV  ====================


Expected Results:  
Not sure it should have dumped some Card Info.
Comment 1 Joshua Kinard gentoo-dev 2005-10-20 18:55:14 UTC
Not related to Release Engineering, throwing back to Wranglers.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2005-10-21 07:54:28 UTC
so the issue is ivtv-detect is segfaulting. However, honestly at this point I
would need you to include emerge info just like every other bug report requires.
Also I need the output of

ls -l /lib/modules/`uname -r`/kernel/drivers/media/video/
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2005-10-21 08:52:35 UTC
Also run it through gdb and include a backtrace
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2005-10-23 10:13:42 UTC
*** Bug 110204 has been marked as a duplicate of this bug. ***
Comment 5 David Grant 2005-11-02 11:31:36 UTC
I'm also getting a segmentation fault:

Linux video capture interface: v1.00
ivtv:  ==================== START INIT IVTV ====================
ivtv:  version 0.4.0 (tagged release) loading
ivtv:  Linux version: 2.6.13-gentoo-r5 preempt K7 gcc-3.3
ivtv:  In case of problems please include the debug info
ivtv:  between the START INIT IVTV and END INIT IVTV lines when
ivtv:  mailing the ivtv-devel mailinglist.
ivtv0: Autodetected WinTV PVR 350 card (iTVC15 based)
PCI: Found IRQ 12 for device 0000:00:0a.0
ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
tveeprom: Hauppauge: model = 48132, rev = K268, serial# = 8065760
tveeprom: tuner = LG TAPE H001F MK3 (idx = 68, type = 47)
tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
tveeprom: audio_processor = MSP3440 (type = 11)
 : chip found @ 0xc2 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
saa7115 0-0021: saa7115 found @ 0x42 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=saa7115, addr=21]
saa7127 0-0044: saa7129 found @ 0x88 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=saa7127, addr=44]
msp34xx: init: chip=MSP3448W-A2 +nicam +simple +simpler +radio mode=simpler
msp34xxg: daemon started
ivtv0: i2c attach to card #0 ok [client=MSP3448W-A2, addr=40]
tda9885/6/7: chip found @ 0x86
ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43]
ivtv0: loading /lib/modules/ivtv-fw-enc.bin
ivtv0: loading /lib/modules/ivtv-fw-dec.bin
ivtv0: Encoder revision: 0x02050032
ivtv0: Decoder revision: 0x02020023
ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
ivtv0: Create encoder radio stream
ivtv0: Allocate DMA decoder MPEG stream: 16 x 65536 buffers (1024KB total)
ivtv0: Allocate DMA decoder VBI stream: 512 x 2048 buffers (1024KB total)
ivtv0: Create decoder VOUT stream
ivtv0: Allocate DMA decoder YUV stream: 24 x 43200 buffers (1024KB total)
modprobe: page allocation failure. order:4, mode:0xd0
 [<c013eb52>] __alloc_pages+0x2b2/0x470
 [<c0141aff>] kmem_getpages+0x2f/0xa0
 [<c01425b5>] alloc_slabmgmt+0x55/0x60
 [<c0142756>] cache_grow+0xb6/0x170
 [<c014296e>] cache_alloc_refill+0x15e/0x220
 [<c0142ce5>] __kmalloc+0x65/0x70
 [<ddb53dd0>] ivtv_init_buffer+0x40/0x170 [ivtv]
 [<ddb53f3a>] ivtv_init_queue_nolock+0x3a/0x90 [ivtv]
 [<ddb53fe1>] ivtv_init_queues_nolock+0x51/0x80 [ivtv]
 [<ddb55a06>] ivtv_stream_alloc+0xb6/0x270 [ivtv]
 [<ddb5ca78>] ivtv_streams_setup+0x118/0x1a0 [ivtv]
 [<ddb57646>] ivtv_probe+0x356/0xf30 [ivtv]
 [<c0127d76>] call_usermodehelper_keys+0xc6/0xd0
 [<c0127c40>] __call_usermodehelper+0x0/0x70
 [<c02dcaee>] pci_match_device+0x1e/0x100
 [<c02dcc28>] __pci_device_probe+0x58/0x70
 [<c02dcc6f>] pci_device_probe+0x2f/0x50
 [<c03358a8>] driver_probe_device+0x38/0xb0
 [<c03359a0>] __driver_attach+0x0/0x50
 [<c03359e7>] __driver_attach+0x47/0x50
 [<c0334ed9>] bus_for_each_dev+0x69/0x80
 [<c0335a16>] driver_attach+0x26/0x30
 [<c03359a0>] __driver_attach+0x0/0x50
 [<c03353b3>] bus_add_driver+0x83/0xe0
 [<c02dcf0d>] pci_register_driver+0x6d/0x90
 [<ddb58814>] module_start+0x94/0x110 [ivtv]
 [<c013372a>] sys_init_module+0x14a/0x1f0
 [<c0102e75>] syscall_call+0x7/0xb
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:103
cpu 0 cold: low 0, high 62, batch 31 used:39
HighMem per-cpu: empty
Free pages:      149972kB (0kB HighMem)
Active:28846 inactive:17437 dirty:3610 writeback:90 unstable:0 free:37493
slab:11073 mapped:4632 pagetables:94
DMA free:7892kB min:104kB low:128kB high:156kB active:0kB inactive:4kB
present:16384kB pages_scanned:33 all_unreclaimable? yes
lowmem_reserve[]: 0 367 367
Normal free:142080kB min:2400kB low:3000kB high:3600kB active:115384kB
inactive:69744kB present:376752kB pages_scanned:0 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: 233*4kB 208*8kB 171*16kB 78*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB
0*2048kB 0*4096kB = 7892kB
Normal: 14764*4kB 6610*8kB 1650*16kB 111*32kB 1*64kB 1*128kB 0*256kB 0*512kB
0*1024kB 0*2048kB 0*4096kB = 142080kB
HighMem: empty
Swap cache: add 628, delete 628, find 0/0, race 0+0
Free swap  = 779184kB
Total swap = 781696kB
Free swap:       779184kB
98284 pages of RAM
0 pages of HIGHMEM
2145 reserved pages
30646 pages shared
0 pages swap cached
3610 pages dirty
89 pages writeback
4632 pages mapped
11056 pages slab
94 pages pagetables
ivtv0 warning: No memory on buffer alloc!
ivtv0 warning: Buffer alloc failed!
ivtv0: Couldn't allocate buffers for decoder YUV stream
Unable to handle kernel NULL pointer dereference at virtual address 00000000
 printing eip:
c016364f
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: tda9887 msp3400 saa7127 saa7115 tuner tveeprom ivtv
i2c_algo_bit i2c_core videodev
CPU:    0
EIP:    0060:[<c016364f>]    Not tainted VLI
EFLAGS: 00010246   (2.6.13-gentoo-r5)
EIP is at flush_old_exec+0x16f/0x870
eax: cc4cb800   ebx: 00000000   ecx: 00000000   edx: 00000000
esi: c1fb0000   edi: d7138aa0   ebp: c7b207c0   esp: c1fb1e44
ds: 007b   es: 007b   ss: 0068
Process khelper (pid: 23680, threadinfo=c1fb0000 task=d4c99a40)
Stack: d7138aa0 00000080 c0158279 d7a0acd8 00000001 00000000 00000000 c1fb0000
       c0000000 c045a5e0 d56fe580 c01632c0 c409b1a0 cc4cb800 00000080 c1fb1e84
       cc4cb800 c7b207f8 00000000 c7b207c0 c0185ccf cc4cb800 00000000 cc4cb800
Call Trace:
 [<c0158279>] vfs_read+0x119/0x180
 [<c01632c0>] kernel_read+0x50/0x60
 [<c0185ccf>] load_elf_binary+0x32f/0xcf0
 [<c013eb87>] __alloc_pages+0x2e7/0x470
 [<c0162d78>] copy_strings+0x188/0x200
 [<c01859a0>] load_elf_binary+0x0/0xcf0
 [<c01640a4>] search_binary_handler+0x174/0x2a0
 [<c0164358>] do_execve+0x188/0x210
 [<c0101a06>] sys_execve+0x46/0x90
 [<c0102e75>] syscall_call+0x7/0xb
 [<c0127b6a>] ____call_usermodehelper+0x7a/0xa0
 [<c0127af0>] ____call_usermodehelper+0x0/0xa0
 [<c0100fc1>] kernel_thread_helper+0x5/0x14
Code: 08 59 c0 21 e0 8b 00 8b 48 78 83 e2 03 0f b6 81 40 01 00 00 83 e0 fc 09 d0
88 81 40 01 00 00 8b 44 24 54 31 c9 8b 90 30 01 00 00 <0f> be 02 42 85 c0 74 1b
83 f8 2f 0f 84 89 01 00 00 83 f9 0e 77
 <3>ivtv0: Error -12 setting up streams
ivtv0: Error -12 on initialization
ivtv-iTVC15_16_mpg2_encoder_card: probe of 0000:00:0a.0 failed with error -12
ivtv:  ====================  END INIT IVTV  ====================

Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.13-gentoo-r5 i686)
=================================================================
System uname: 2.6.13-gentoo-r5 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apache2 apm avi berkdb bitmap-fonts crypt dvb dvd eds
emboss encode foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib
ipv6 joystick jpeg kde libg++ libwww lirc mad mikmod mmx motif mp3 mpeg mysql
ncurses nls nptl nvidia ogg oggvorbis opengl pam pdflib perl png python qt
quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts udev
usb userlocales vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

Comment 6 David Grant 2005-11-02 11:57:58 UTC
Sorry, ignore that last comment's dmesg output... it doesn't have that error
anymore. Now it looks better. I think all I did was remove the module and
re-load it. Can you change the summary to PVR-150/350?

ivtv:  ==================== START INIT IVTV ====================
ivtv:  version 0.4.0 (tagged release) loading
ivtv:  Linux version: 2.6.13-gentoo-r5 preempt K7 gcc-3.3
ivtv:  In case of problems please include the debug info
ivtv:  between the START INIT IVTV and END INIT IVTV lines when
ivtv:  mailing the ivtv-devel mailinglist.
ivtv0: Autodetected WinTV PVR 350 card (iTVC15 based)
PCI: Found IRQ 12 for device 0000:00:0a.0
ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
 : chip found @ 0xc2 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
saa7115 0-0021: saa7115 found @ 0x42 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=saa7115, addr=21]
saa7127 0-0044: saa7129 found @ 0x88 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=saa7127, addr=44]
msp34xx: init: chip=MSP3448W-A2 +nicam +simple +simpler +radio mode=simpler
msp34xxg: daemon started
ivtv0: i2c attach to card #0 ok [client=MSP3448W-A2, addr=40]
tda9885/6/7: chip found @ 0x86
ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43]
tveeprom: Hauppauge: model = 48132, rev = K268, serial# = 8065760
tveeprom: tuner = LG TAPE H001F MK3 (idx = 68, type = 47)
tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
tveeprom: audio_processor = MSP3440 (type = 11)
ivtv0: loading /lib/modules/ivtv-fw-enc.bin
ivtv0: loading /lib/modules/ivtv-fw-dec.bin
ivtv0: Encoder revision: 0x02050032
ivtv0: Decoder revision: 0x02020023
ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
ivtv0: Create encoder radio stream
ivtv0: Allocate DMA decoder MPEG stream: 16 x 65536 buffers (1024KB total)
ivtv0: Allocate DMA decoder VBI stream: 512 x 2048 buffers (1024KB total)
ivtv0: Create decoder VOUT stream
ivtv0: Allocate DMA decoder YUV stream: 24 x 43200 buffers (1024KB total)
ivtv0: loading /lib/modules/ivtv_init_mpeg.bin
tuner 0-0061: type set to 47 (LG NTSC (TAPE series))
ivtv0: Initialized WinTV PVR 350, card #0
ivtv:  ====================  END INIT IVTV  ====================
Comment 7 David Grant 2005-11-02 12:49:49 UTC
Found a link to this problem. Have to use google cache since ivtv's trac is down.
http://64.233.167.104/search?q=cache:cG3t88TBYz0J:ivtvdriver.org/trac/ticket/47+ivtv-detect+segmentation+fault&hl=en

An IRC chat revealed this:
[12:38] <jd86> now, why does ivtv-detect seg fault.
[12:40] <jd86> oh my alot of things are seg faulting
[12:41] <laga> that's not a good sign
[12:43] <jd86> nope
[12:43] <laga> probably broken memory, you could try memtest86 to check it

Could be a possiblity in my case. I'm using a bunch of scrap parts I found
laying around. I'll run memtest86 and let you know what happpens.
Comment 8 David Grant 2005-11-02 12:52:43 UTC
Could be a solution here!

http://www.livejournal.com/community/gentoo/252562.html

See the very bottom of the page:

"I had the same problem and tracked it down to an assumption in ivtv-detect.c
that there would only be 15 devices. In /dev I actually has 64 video devices, so
ivtv-detect was getting an array overrun. On line 35 in
ivtv-detect,c it says:"

#define MAXDEV 15

"I increased it to 64, recompiled, and it worked. An alternative to this is to
install udev, but that may not be such a good thing because udev doesn't
automatically create the /dev/video* devices."

"I hope this helps."
Comment 9 David Grant 2005-11-02 23:09:24 UTC
Solution described in Comment #8 works for me. ivtv-detect works perfect now.
Comment 10 Roalt 2005-12-03 13:43:39 UTC
Created attachment 74011 [details, diff]
New ebuild for that includes patch for this bug
Comment 11 Roalt 2005-12-03 13:44:18 UTC
Created attachment 74012 [details, diff]
Actual patch to ivtv-0.4.0 to solve this bug
Comment 12 Roalt 2005-12-03 13:47:51 UTC
Hi All,

I -also- encountered this bug, so i made a local patch to solve it. This is my
first try to make a new ebuild and I have no clue what's the best way to proceed
(I made the new version number,0.4.0-r3, up myself) but it works after storing
these files in media-tv/ivtv (and media-tv/ivtv/files) and doing a ebuild ...
digest.

So maybe someone with more gentoo-karma can put this into portage for others and
close this bug?
Comment 13 Doug Goldstein (RETIRED) gentoo-dev 2005-12-27 22:56:38 UTC
*** Bug 116939 has been marked as a duplicate of this bug. ***
Comment 14 Doug Goldstein (RETIRED) gentoo-dev 2005-12-27 22:56:55 UTC
*** Bug 116431 has been marked as a duplicate of this bug. ***
Comment 15 Doug Goldstein (RETIRED) gentoo-dev 2005-12-29 20:49:41 UTC
Fixed.