Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Sementation fault in bttv



From a fresh reboot of a vanilla 2.4.23 kernel, with a Nebula DigiTV
card, using the dvb-nebula script for starting/stopping the drivers,
on a RedHat 7.2 system with devfs, I get a segfault:

[root@posh dvtv]# sh -x ./dvb-nebula  start
+ echo -n -e 'Inserting DVB modules into kernel'
Inserting DVB modules into kernel+ modprobe videodev
+ modprobe bttv
../dvb-nebula: line 41:  1936 Segmentation fault      modprobe bttv
+ modprobe dvb-core dvb_shutdown_timeout=0
+ modprobe v4l1-compat
+ modprobe v4l2-common
+ modprobe video-buf
+ modprobe nxt6000
+ modprobe bt878

---------------This is dvb-nebula ------------------
#!/bin/sh

#depmod -ae

case "$1" in

    start)
        echo -n -e "Inserting DVB modules into kernel"
        # Linux video
        modprobe videodev
        # bttv is required for bt878 and dvb-bt8xx
        modprobe bttv
        # core DVB
        modprobe dvb-core dvb_shutdown_timeout=0;
        modprobe v4l1-compat
        modprobe v4l2-common
        modprobe video-buf
        # Nebula DVB-T card
        modprobe nxt6000
        modprobe bt878
        modprobe dvb-bt8xx
        ;;
    stop)
        echo -n -e "Removing DVB modules from kernel"
        # Nebula DVB-T card
        rmmod dvb-bt8xx bt878 nxt6000
        # core DVB
        rmmod dvb-core
        # bttv (required for bt878 and dvb-bt8xx)
        rmmod tuner bttv
        # Linux video
        rmmod videodev video-buf
        echo
        ;;
    restart|reload)
        $0 stop && $0 start
        ;;
    *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
esac

exit 0
---------------end of dvb-nebula ------------------

Relevant section from /var/log/messages after trying "dvb-nebula start":

Dec  3 19:03:35 posh kernel: Linux video capture interface: v1.00
Dec  3 19:03:35 posh kernel: i2c-core.o: i2c core module
Dec  3 19:03:35 posh kernel: i2c-algo-bit.o: i2c bit algorithm module
Dec  3 19:03:35 posh kernel: bttv: driver version 0.7.108 loaded
Dec  3 19:03:35 posh kernel: bttv: using 4 buffers with 2080k (8320k total) for capture
Dec  3 19:03:35 posh kernel: bttv: Bt8xx card found (0).
Dec  3 19:03:35 posh kernel: bttv0: Bt878 (rev 17) at 02:04.0, irq: 16, latency: 32, mmio: 0xea000000
Dec  3 19:03:35 posh kernel: bttv0: detected: Nebula Electronics DigiTV [card=104], PCI subsystem ID is 0071:0101
Dec  3 19:03:35 posh kernel: bttv0: using: Nebula Electronics DigiTV [card=104,autodetected]
Dec  3 19:03:35 posh kernel: i2c-core.o: adapter bt848 #0 registered as adapter 0.
Dec  3 19:03:35 posh kernel: bttv0: using tuner=-1
Dec  3 19:03:35 posh kernel: divide error: 0000
Dec  3 19:03:35 posh kernel: CPU:    0
Dec  3 19:03:35 posh kernel: EIP:    0010:[usbcore:usb_devfs_handle+939051/12149535]    Not tainted
Dec  3 19:03:35 posh kernel: EIP:    0010:[<d09185db>]    Not tainted
Dec  3 19:03:35 posh kernel: EFLAGS: 00010246
Dec  3 19:03:35 posh kernel: eax: 00000001   ebx: d0926f44   ecx: 00003a80   edx: 00000000
Dec  3 19:03:35 posh kernel: esi: d092b1c0   edi: d092b1c0   ebp: 00000001   esp: c5dbde74
Dec  3 19:03:35 posh kernel: ds: 0018   es: 0018   ss: 0018
Dec  3 19:03:35 posh kernel: Process modprobe (pid: 1936, stackpage=c5dbd000)
Dec  3 19:03:35 posh kernel: Stack: d092b1c0 d092b1c0 ffffffff d092b1c0 d092b1c0 c12d3c00 d091d8b2 d092b1c0 
Dec  3 19:03:35 posh kernel:        00000001 d092b1c0 d092b1c0 d092b1c0 d092b1c0 ffffffff 00000000 d091e30a 
Dec  3 19:03:35 posh kernel:        d092b1c0 00000003 00003e7f 2011a2ab d0926980 d09269e0 c12d3c00 00000000 
Dec  3 19:03:35 posh kernel: Call Trace:    [usbcore:usb_devfs_handle+1015824/12072762] [usbcore:usb_devfs_handle+1015824/12072762] [usbcore:usb_devfs_handle+1015824/12072762] [usbcore:usb_devfs_handle+1015824/12072762] [usbcore:usb_devfs_handle+960258/12128328]
Dec  3 19:03:35 posh kernel: Call Trace:    [<d092b1c0>] [<d092b1c0>] [<d092b1c0>] [<d092b1c0>] [<d091d8b2>]
Dec  3 19:03:35 posh kernel:   [usbcore:usb_devfs_handle+1015824/12072762] [usbcore:usb_devfs_handle+1015824/12072762] [usbcore:usb_devfs_handle+1015824/12072762] [usbcore:usb_devfs_handle+1015824/12072762] [usbcore:usb_devfs_handle+1015824/12072762] [usbcore:usb_devfs_handle+962906/12125680]
Dec  3 19:03:35 posh kernel:   [<d092b1c0>] [<d092b1c0>] [<d092b1c0>] [<d092b1c0>] [<d092b1c0>] [<d091e30a>]
Dec  3 19:03:35 posh kernel:   [usbcore:usb_devfs_handle+1015824/12072762] [usbcore:usb_devfs_handle+997328/12091258] [usbcore:usb_devfs_handle+997424/12091162] [pci_announce_device+60/96] [usbcore:usb_devfs_handle+997328/12091258] [usbcore:usb_devfs_handle+997424/12091162]
Dec  3 19:03:35 posh kernel:   [<d092b1c0>] [<d0926980>] [<d09269e0>] [<c01d638c>] [<d0926980>] [<d09269e0>]
Dec  3 19:03:35 posh kernel:   [pci_register_driver+66/96] [usbcore:usb_devfs_handle+997424/12091162] [usbcore:usb_devfs_handle+963182/12125404] [usbcore:usb_devfs_handle+997424/12091162] [sys_init_module+1429/1632] [usbcore:usb_devfs_handle+990532/12098054]
Dec  3 19:03:35 posh kernel:   [<c01d63f2>] [<d09269e0>] [<d091e41e>] [<d09269e0>] [<c011b1a5>] [<d0924ef4>]
Dec  3 19:03:35 posh kernel:   [usbcore:usb_devfs_handle+937648/12150938] [system_call+51/56]
Dec  3 19:03:35 posh kernel:   [<d0918060>] [<c0108903>]
Dec  3 19:03:35 posh kernel: 
Dec  3 19:03:35 posh kernel: Code: f7 34 19 89 d5 89 54 24 04 3b 96 08 03 00 00 75 24 8b 96 20 
Dec  3 19:03:35 posh kernel:  <6>bt878: AUDIO driver version 0.0.0 loaded

This is with an unpatched 2.4.23 kernel (I can't get the modules to
build for 2.4.23 using patch-2.4.23-pre7-kraxel.gz from
http://www.bytesex.org/, which I gathered from "Nebula DigiTV - a short HOWTO"
(http://www.mail-archive.com/linux-dvb@linuxtv.org/msg10969.html) was
probably necessary.

I've followed all the steps there, I *think*.

Perhaps the failure to build after using the "one big patch" mentioned
below, is the problem?

http://bytesex.org/patches/

    How to use the patch sets
    
    Go to the 2.4 or 2.5 subdirectory depending on the kernel
    version you are using. The files starting with two digits are the
    individual patches. They should be applied in "ls" order, there
    might be dependences between them. The patch-<version>-kraxel.gz
    file is one big patch which contains all individual ones.
    
    The patch bundle usually is exactly the kernel I'm running on
    my box(es).  It may contain more than the pure v4l stuff.

Ah.  I just remembered that I had failed to build bttv-0.9.11.  I have
just now patched it and built and installed it, so I'll reboot and try
again now.

luke



-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index