Opened 17 years ago

Last modified 17 years ago

#686 new defect

mencoder+v4l2: Segmentation fault

Reported by: wbrana@… Owned by: reimar
Priority: normal Component: core
Version: 1.0rc1 Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

mencoder is crashing on v4l2 TV tuner since upgrade to 2.6.19 kernel
mplayer works with same settings

MEncoder 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Celeron(R) M CPU 420 @ 1.60GHz (Family: 6, Model: 14, Stepping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

success: format: 9 data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2

name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@…>
comment: first try, more to come ;-)

Selected device: Pinnacle Hybrid Pro

Tuner cap:
Tuner rxs:
Capabilites: video capture VBI capture device tuner audio read/write streaming
supported norms: 0 = PAL-BG; 1 = PAL-DK; 2 = PAL-I; 3 = NTSC; 4 = SECAM L; 5 = SECAM LC;

6 = SECAM K1; 7 = PAL-M;

inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
Current input: 0
Current format: YUYV

v4l2: current audio mode is : STEREO
Selected channel: 52 (freq: 719.250)
[V] filefmt:9 fourcc:0x32595559 size:720x576 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred colorspace: Packed YUY2)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8

SwScaler: BICUBIC scaler, from yuyv422 to yuv420p using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using 1-tap MMX "scaler" for vertical scaling (YV12 like)
SwScaler: 720x576 -> 720x576
videocodec: libavcodec (720x576 fourcc=34504d46 [FMP4])
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
MP3 audio selected.
Forcing audio preload to 0, max pts correction to 0.
/usr/local/bin/rec.sh: line 1: 29262 Segmentation fault mencoder -o 1.avi -ovc lavc -oac
mp3lame -tv
driver=v4l2:width=720:height=576:alsa:immediatemode=0:adevice=hw.1,0:audiorate=48000:amode=1

tv://52

==========================================================
I can't make debug build because of error:

i686-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil -Wdeclaration-after-statement -
fno-PIC -W -Wall -Wno-unused-parameter -O2 -march=pentium-m -mtune=pentium-m -g3 -
D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/lib/live/liveMedia/
include -I/usr/lib/live/UsageEnvironment/include -I/usr/lib/live/
BasicUsageEnvironment/include -I/usr/lib/live/groupsock/include -c -o h264.o h264.c
In file included from h264.c:36:
cabac.h:363: warning: `inline' is not at beginning of declaration
h264.c: In function `hl_decode_mb':
h264.c:3661: warning: suggest parentheses around arithmetic in operand of
h264.c:3667: warning: suggest parentheses around arithmetic in operand of

h264.c: In function `print_short_term':
h264.c:4326: warning: comparison between signed and unsigned
h264.c: At top level:
h264.c:6009: warning: `inline' is not at beginning of declaration
h264.c: In function `decode_cabac_residual':
h264.c:6143: warning: passing arg 4 of `decode_significance_8x8_x86' discards qualifiers from
pointer target type
h264.c:6070: warning: unused variable `last'
h264.c: At top level:
h264.c:6218: warning: `inline' is not at beginning of declaration
h264.c: In function `filter_mb':
h264.c:7181: warning: comparison between signed and unsigned
h264.c: In function `decode_unregistered_user_data':
h264.c:7593: warning: comparison between signed and unsigned
h264.c: At top level:
h264.c:8652: warning: missing initializer
h264.c:8652: warning: (near initialization for `h264_parser.next')
In file included from h264.c:8655:
svq3.c: In function `svq3_decode_block':
svq3.c:224: warning: comparison between signed and unsigned
svq3.c: In function `svq3_mc_dir':
svq3.c:374: warning: comparison between signed and unsigned
svq3.c:374: warning: comparison between signed and unsigned
svq3.c: In function `svq3_decode_mb':
svq3.c:450: warning: comparison between signed and unsigned
svq3.c: In function `svq3_decode_slice_header':
svq3.c:741: warning: comparison between signed and unsigned
svq3.c: At top level:
svq3.c:1014: warning: missing initializer
svq3.c:1014: warning: (near initialization for `svq3_decoder.next')
cabac.h: In function `get_cabac_noinline':
cabac.h:513: error: can't find a register in class GENERAL_REGS' while reloading asm'
h264.c: At top level:
cabac.h:106: warning: 'put_cabac_static' defined but not used
cabac.h:152: warning: 'put_cabac_terminate' defined but not used
cabac.h:180: warning: 'put_cabac_u' defined but not used
cabac.h:215: warning: 'put_cabac_ueg' defined but not used
cabac.h:267: warning: 'refill2' defined but not used
cabac.h:799: warning: 'get_cabac_u' defined but not used
cabac.h:815: warning: 'get_cabac_ueg' defined but not used
make[1]: * [h264.o] Error 1

Change History (2)

comment:1 by wbrana@…, 17 years ago

I have got some backtrace from partial debug build:

#0 0x081f4be2 in hScale_MMX2 (dst=Cannot access memory at address 0xfffffd20
) at swscale_template.c:2262

counter = Cannot access memory at address 0xfffffd18

comment:2 by wbrana@…, 17 years ago

Compilation using "-march=prescott -mtune=pentium-m"
instead of "-march=prescott -mtune=prescott"
seems to solve this crash.

Note: See TracTickets for help on using tickets.