#23 Segmentation fault on fedora 11

open
nobody
None
5
2009-08-24
2009-08-24
Anonymous
No

[user@linuxbox driver_src]$ make -C /lib/modules/`uname -r`/build M=`pwd`
make: Entering directory `/usr/src/kernels/2.6.29.6-217.2.8.fc11.i586'
CC [M] /home/user/Download/smartcam-1.4.0/driver_src/smartcam.o
/home/user/Download/smartcam-1.4.0/driver_src/smartcam.c:563: warning: initialization from incompatible pointer type
/home/user/Download/smartcam-1.4.0/driver_src/smartcam.c:599: error: ‘VID_TYPE_CAPTURE’ undeclared here (not in a function)
/home/user/Download/smartcam-1.4.0/driver_src/smartcam.c:601: warning: initialization from incompatible pointer type
make[1]: *** [/home/user/Download/smartcam-1.4.0/driver_src/smartcam.o] Error 1
make: *** [_module_/home/user/Download/smartcam-1.4.0/driver_src] Error 2
make: Leaving directory `/usr/src/kernels/2.6.29.6-217.2.8.fc11.i586'
######################

uncommented line 599, /*.vfl_type = VID_TYPE_CAPTURE,*/ in smartcam.c

now it compiles

######################

[user@linuxbox driver_src]$ sudo insmod smartcam.ko
[sudo] password for user:
[user@linuxbox driver_src]$ sudo modprobe videodev
[user@linuxbox driver_src]$ smartcam
smartcam: registered DBUS service "org.gnome.smartcam"
Cannot open '/dev/video0': 13, Permission denied
Cannot identify '/dev/video1': 2, No such file or directory
Cannot identify '/dev/video2': 2, No such file or directory
Cannot identify '/dev/video3': 2, No such file or directory
Cannot identify '/dev/video4': 2, No such file or directory
Cannot identify '/dev/video5': 2, No such file or directory
Cannot identify '/dev/video6': 2, No such file or directory
Cannot identify '/dev/video7': 2, No such file or directory
Cannot identify '/dev/video8': 2, No such file or directory
Cannot identify '/dev/video9': 2, No such file or directory
smartcam: started comm thread
smartcam: port = 1
Segmentation fault
[user@linuxbox driver_src]$ sudo smartcam
sudo: smartcam: command not found
[user@linuxbox driver_src]$ su -
Password:
[root@linuxbox ~]# smartcam
smartcam: registered DBUS service "org.gnome.smartcam"
Cannot open '/dev/video0': 14, Bad address
Cannot identify '/dev/video1': 2, No such file or directory
Cannot identify '/dev/video2': 2, No such file or directory
Cannot identify '/dev/video3': 2, No such file or directory
Cannot identify '/dev/video4': 2, No such file or directory
Cannot identify '/dev/video5': 2, No such file or directory
Cannot identify '/dev/video6': 2, No such file or directory
Cannot identify '/dev/video7': 2, No such file or directory
Cannot identify '/dev/video8': 2, No such file or directory
Cannot identify '/dev/video9': 2, No such file or directory
smartcam: started comm thread
smartcam: port = 1
Segmentation fault

Discussion

  • Hi

    Your out-commenting hint for the drivers_src were very useful thx.

    I had the same problem later (segfault), problem was that bluetooth on Linux was not enabled. Hope that helps.

    Sebastian

     
  • thx, but i can't test it, I had a kernel-update and now the driver does not work any longer

    [user@linuxbox driver_src]$ make -C /lib/modules/`uname -r`/build M=`pwd`
    make: Entering directory `/usr/src/kernels/2.6.30.5-43.fc11.i586'
    Building modules, stage 2.
    MODPOST 1 modules
    LD [M] /home/user/data/BUILD/smartcam-1.4.0/driver_src/smartcam.ko
    make: Leaving directory `/usr/src/kernels/2.6.30.5-43.fc11.i586'
    [user@linuxbox driver_src]$ sudo insmod smartcam.ko
    insmod: error inserting 'smartcam.ko': -1 Unknown symbol in module