Mailing List Archive

Segmentation fault when using v4l2-ctl
Hello,

I have custom a linux build with kernel 2.6.32-rc4, uclibc 0.9.30.1 and a
PVR-1600 card. I am using ivtv tools 1.4.0

The driver loads and the card seems to be working for the most part. I can
get data from /dev/video0 and I can query the interface using v4l2-ctl
‹logs-status. I can also manipulate most of the standard settings (except
resolution which does not take).

However, whenever I try to read or write any control paramater the v4l2-ctl
application segfaults (I can list them all with ³-l² )

v4l2-ctl --set-ctrl=stream_type=1
Segmentation fault (core dumped)

Any help would be appreciated!

Sergio

Status Log:

cx18-0: ================= START STATUS CARD #0 =================
cx18-0: Version: 1.2.0 Card: Hauppauge HVR-1600
tveeprom 1-0050: Hauppauge model 74041, rev C6B2, serial# 6380444
tveeprom 1-0050: MAC address is 00-0D-FE-61-5B-9C
tveeprom 1-0050: tuner model is TCL M2523_5N_E (idx 112, type 50)
tveeprom 1-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 1-0050: audio processor is CX23418 (idx 38)
tveeprom 1-0050: decoder processor is CX23418 (idx 31)
tveeprom 1-0050: has no radio, has IR receiver, has IR transmitter
cx18-0 843: Video signal: present
cx18-0 843: Detected format: NTSC-M
cx18-0 843: Specified standard: NTSC-M
cx18-0 843: Specified video input: Composite 7
cx18-0 843: Specified audioclock freq: 48000 Hz
cx18-0 843: Detected audio mode: stereo
cx18-0 843: Detected audio standard: BTSC
cx18-0 843: Audio muted: no
cx18-0 843: Audio microcontroller: running
cx18-0 843: Configured audio standard: automatic detection
cx18-0 843: Configured audio system: BTSC
cx18-0 843: Specified audio input: Tuner (In8)
cx18-0 843: Preferred audio mode: stereo
cx18-0 gpio-reset-ctrl: GPIO: direction 0x00003001, value 0x00003001
tuner 2-0061: Tuner mode: analog TV
tuner 2-0061: Frequency: 66.00 MHz
tuner 2-0061: Standard: 0x00001000
cs5345 1-004c: Input: 1
cs5345 1-004c: Volume: 0 dB
cx18-0: Video Input: Tuner 1
cx18-0: Audio Input: Tuner 1
cx18-0: GPIO: direction 0x00003001, value 0x00003001
cx18-0: Tuner: TV
cx18-0: Stream: MPEG-2 Program Stream
cx18-0: VBI Format: No VBI
cx18-0: Video: 720x480, 30 fps
cx18-0: Video: MPEG-2, 4x3, Variable Bitrate, 6000000, Peak 8000000
cx18-0: Video: GOP Size 15, 2 B-Frames, GOP Closure
cx18-0: Audio: 48 kHz, MPEG-1/2 Layer II, 224 kbps, Stereo, No Emphasis,
No CRC
cx18-0: Spatial Filter: Manual, Luma 1D Horizontal, Chroma 1D
Horizontal, 0
cx18-0: Temporal Filter: Manual, 8
cx18-0: Median Filter: Off, Luma [0, 255], Chroma [0, 255]
cx18-0: Status flags: 0x00200001
cx18-0: Stream encoder MPEG: status 0x0000, 0% of 2048 KiB (64 buffers)
in use
cx18-0: Stream encoder YUV: status 0x0000, 0% of 2048 KiB (16 buffers) in
use
cx18-0: Stream encoder VBI: status 0x0000, 0% of 1015 KiB (20 buffers) in
use
cx18-0: Stream encoder PCM audio: status 0x0000, 0% of 1024 KiB (256
buffers) in use
cx18-0: Read MPEG/VBI: 1155072/0 bytes
cx18-0: ================== END STATUS CARD #0 ==================
Re: Segmentation fault when using v4l2-ctl [ In reply to ]
On Thu, 2009-10-22 at 12:03 -0400, Sergio M. Ammirata, Ph.D. wrote:
> Hello,
>
> I have custom a linux build with kernel 2.6.32-rc4, uclibc 0.9.30.1
> and a PVR-1600 card. I am using ivtv tools 1.4.0
>
> The driver loads and the card seems to be working for the most part. I
> can get data from /dev/video0 and I can query the interface using
> v4l2-ctl —logs-status. I can also manipulate most of the standard
> settings (except resolution which does not take).

> However, whenever I try to read or write any control paramater the
> v4l2-ctl application segfaults (I can list them all with “-l” )
>
> v4l2-ctl --set-ctrl=stream_type=1
> Segmentation fault (core dumped)
>
> Any help would be appreciated!

Try

$ v4l2-ctl -c stream_type=1

or

Build the latest v4l2-ctl from the v4l-dvb repository at

http://linuxtv.org/hg/v4l-dvb

(it's under v4l-apps somewhere IIRC) and try again.

or

$ gdb /(path)/v4l2-ctl core
(gdb) bt

to see where v4l2-ctl is failing. It would be helpful if you built the
v4l2-ctl app with ' -g -O1' or '-g -O0' to get debugging symbols.

Regards,
Andy

> Sergio
>
> Status Log:
>
> cx18-0: ================= START STATUS CARD #0 =================
> cx18-0: Version: 1.2.0 Card: Hauppauge HVR-1600
> tveeprom 1-0050: Hauppauge model 74041, rev C6B2, serial# 6380444
> tveeprom 1-0050: MAC address is 00-0D-FE-61-5B-9C
> tveeprom 1-0050: tuner model is TCL M2523_5N_E (idx 112, type 50)
> tveeprom 1-0050: TV standards NTSC(M) (eeprom 0x08)
> tveeprom 1-0050: audio processor is CX23418 (idx 38)
> tveeprom 1-0050: decoder processor is CX23418 (idx 31)
> tveeprom 1-0050: has no radio, has IR receiver, has IR transmitter
> cx18-0 843: Video signal: present
> cx18-0 843: Detected format: NTSC-M
> cx18-0 843: Specified standard: NTSC-M
> cx18-0 843: Specified video input: Composite 7
> cx18-0 843: Specified audioclock freq: 48000 Hz
> cx18-0 843: Detected audio mode: stereo
> cx18-0 843: Detected audio standard: BTSC
> cx18-0 843: Audio muted: no
> cx18-0 843: Audio microcontroller: running
> cx18-0 843: Configured audio standard: automatic detection
> cx18-0 843: Configured audio system: BTSC
> cx18-0 843: Specified audio input: Tuner (In8)
> cx18-0 843: Preferred audio mode: stereo
> cx18-0 gpio-reset-ctrl: GPIO: direction 0x00003001, value
> 0x00003001
> tuner 2-0061: Tuner mode: analog TV
> tuner 2-0061: Frequency: 66.00 MHz
> tuner 2-0061: Standard: 0x00001000
> cs5345 1-004c: Input: 1
> cs5345 1-004c: Volume: 0 dB
> cx18-0: Video Input: Tuner 1
> cx18-0: Audio Input: Tuner 1
> cx18-0: GPIO: direction 0x00003001, value 0x00003001
> cx18-0: Tuner: TV
> cx18-0: Stream: MPEG-2 Program Stream
> cx18-0: VBI Format: No VBI
> cx18-0: Video: 720x480, 30 fps
> cx18-0: Video: MPEG-2, 4x3, Variable Bitrate, 6000000, Peak
> 8000000
> cx18-0: Video: GOP Size 15, 2 B-Frames, GOP Closure
> cx18-0: Audio: 48 kHz, MPEG-1/2 Layer II, 224 kbps, Stereo, No
> Emphasis, No CRC
> cx18-0: Spatial Filter: Manual, Luma 1D Horizontal, Chroma 1D
> Horizontal, 0
> cx18-0: Temporal Filter: Manual, 8
> cx18-0: Median Filter: Off, Luma [0, 255], Chroma [0, 255]
> cx18-0: Status flags: 0x00200001
> cx18-0: Stream encoder MPEG: status 0x0000, 0% of 2048 KiB (64
> buffers) in use
> cx18-0: Stream encoder YUV: status 0x0000, 0% of 2048 KiB (16
> buffers) in use
> cx18-0: Stream encoder VBI: status 0x0000, 0% of 1015 KiB (20
> buffers) in use
> cx18-0: Stream encoder PCM audio: status 0x0000, 0% of 1024 KiB
> (256 buffers) in use
> cx18-0: Read MPEG/VBI: 1155072/0 bytes
> cx18-0: ================== END STATUS CARD #0 ==================
> _______________________________________________
> ivtv-users mailing list
> ivtv-users@ivtvdriver.org
> http://ivtvdriver.org/mailman/listinfo/ivtv-users


_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users