[Mplayer-felhasznalok] [bug] fbdev veszekszik a ppvel
Gemes Tibor
tib at i-trade.hu
Tue Jan 7 23:48:48 CET 2003
2003-01-07, k keltezéssel Arpi ezt írta:
>
> mondjuk a regiszter ertekek most is hianyoznak, de mind1, imho nem a za baj.
Hát "Ha keletkezett coredump, akkor lásd a következő bekezdést,
máskülönben hagyd ki." miatt kihagytam.
Mindenesetre mivel a fbdev szétgyakja a konzolt tök nehézkes a gdb
használata, mivel a parancsot még látom, de az outputja már nem látszik.
Végül tee-vel indítottam a gdb-t és akkor derült ki, hgoy van ott
output, csak nem látom, így ezért nem tudtam copipésztel bemásolni.
Na íme, amíg ezt írtam lefordult, elindult, crashelt:
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) run -v /local/wawa/Vidocq/Vidocq.avi
Starting program: /home/tib/install/mplayer/main/mplayer -v /local/wawa/Vidocq/Vidocq.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale
MPlayer CVS-030107-21:39-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS)
CPU: Intel Pentium 4 Xeon Foster (Family: 8, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Reading config file /usr/local/etc/mplayer/mplayer.confReading config file /home/tib/.mplayer/config
Reading /home/tib/.mplayer/codecs.conf: 49 audio & 123 video codecs
CommandLine: '-v' '/local/wawa/Vidocq/Vidocq.avi'
get_path('font/font.desc') -> '/home/tib/.mplayer/font/font.desc'
font: can't open file: /home/tib/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using usleep() timing
get_path('input.conf') -> '/home/tib/.mplayer/input.conf'
get_path('Vidocq.avi.conf') -> '/home/tib/.mplayer/Vidocq.avi.conf'
Playing /local/wawa/Vidocq/Vidocq.avi
Not an URL!
File size is 714203136 bytes
AVI file format detected.
list_end=0x2292
======= AVI Header =======
us/frame: 40000 (fps=25,000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames total: 140365 initial: 0
streams: 2
Suggested BufferSize: 0
Size: 640 x 352
list_end=0x10F4
==> Found video stream: 0
======= STREAM Header =======
Type: vids FCC: divx (78766964)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 1000000/40000 = 25,000
Start: 0 Len: 140365
Suggested BufferSize: 60980
Quality -1
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 640
biHeight 352
biPlanes 1
biBitCount 24
biCompression 1482049860='DIVX'
biSizeImage 675840
===========================
Regenerating keyframe table for DIVX 4 video
list_end=0x2186
==> Found audio stream: 1
======= STREAM Header =======
Type: auds FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 1
Rate: 16000/1 = 16000,000
Start: 0 Len: 89833600
Suggested BufferSize: 8000
Quality -1
Sample size: 1
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 16000
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=1
mp3.nFramesPerBlock=1
mp3.nCodecDelay=1393
list_end=0x2292
Broken chunk? chunksize=1382 (id=JUNK)
list_end=0x2A4D55EC
Found movie at 0x280C - 0x2A4D55EC
Reading INDEX block, 280719 chunks for 140365 frames (fpos=0x2a4d55f4)
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x1F4C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=617551717 (140365) audio size=89833600 (89833600)
VIDEO: [DIVX] 640x352 24bpp 25,00 fps 879,9 kbps (107,4 kbyte/s)
[V] filefmt:3 fourcc:0x58564944 size:640x352 fps:25,00 ftime:=0,0400
get_path('sub/') -> '/home/tib/.mplayer/sub/'
SUB: Detected sub file: /local/wawa/Vidocq/Vidocq.srt
SUB: Detected subtitle file format: subviewer
SUB: Read 706 subtitles.
SUB: Adjusted 1 subtitle(s).
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 48000 Hz 128 kbit Joint-Stereo, BPF: 384
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
fbdev: using /dev/fb1
Opening video filter: [expand=720:576:-1:-1:1]
Expand: 720 x 576, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [scale=720:-2]
SwScale params: 720 x -2 (-1=no scaling)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
alsa-init: testing and bugreports are welcome.
alsa-init: requested format: 48000 Hz, 2 channels, Signed 16-bit (Little-Endian)
alsa-init: compiled for ALSA-0.9.0beta10a
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: hw:0,0
alsa-init: pcm opend in block-mode
alsa-init: chunksize set to 1024
alsa-init: current val=16, fragcount=16
alsa-init: got buffersize=65536
alsa9: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa9] 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: Description: ALSA-0.9.x audio output
AO: Author: Alex Beregszaszi <alex at naxine.org>, Joy Winter <joy at pingfm.org>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
Start playing...
alsa-space: free space = 65536, status=137542072, prepared --
looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[ffmpeg] aspect_ratio: 0,000000
VDec: vo config request - 640 x 352 (preferred csp: Planar YV12)
Opening video filter: [pp]
scale: query(BGR 32-bit) -> 3
[scale] query(Planar YV12) -> 1
scale: query(BGR 32-bit) -> 3
[scale] query(Planar I420) -> 1
scale: query(BGR 32-bit) -> 3
[scale] query(Planar IYUV) -> 1
scale: query(BGR 32-bit) -> 3
[scale] query(Planar 444P) -> 1
scale: query(BGR 32-bit) -> 3
[scale] query(Planar 422P) -> 1
scale: query(BGR 32-bit) -> 3
[scale] query(Planar 411P) -> 1
scale: query(BGR 32-bit) -> 3
scale: query(BGR 32-bit) -> 3
scale: query(BGR 32-bit) -> 3
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x352->640x352,flags=0,'MPlayer',0x32315659)
scale: query(BGR 32-bit) -> 3
REQ: flags=0x445 req=0x0
scale: query(BGR 32-bit) -> 3
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: BICUBIC scaler, from Planar YV12 to BGR 32-bit using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (BGR)
SwScaler: using MMX YV12->BGR32 Converter
SwScaler: 640x352 -> 720x396
REQ: flags=0x407 req=0x0
REQ: flags=0x7 req=0x0
VO: [fbdev] 720x576 => 720x576 BGR 32-bit
VO: Description: Framebuffer Device
VO: Author: Szabolcs Berecz <szabi at inf.elte.hu>
fbdev: Can't set graphics mode: Invalid argument
fbdev: var info:
fbdev: xres: 720
fbdev: yres: 576
fbdev: xres_virtual: 720
fbdev: yres_virtual: 576
fbdev: xoffset: 0
fbdev: yoffset: 0
fbdev: bits_per_pixel: 32
fbdev: grayscale: 0
fbdev: red: 16 8 0
fbdev: green: 8 8 0
fbdev: blue: 0 8 0
fbdev: transp: 24 8 0
fbdev: nonstd: 0
fbdev: fix info:
fbdev: framebuffer size: 8388608 bytes
fbdev: type: 0
fbdev: type_aux: 0
fbdev: visual: 2
fbdev: line_length: 2880 bytes
fbdev: fb_bpp: 32
fbdev: fb_real_bpp: 24
fbdev: fb_pixel_size: 4 bytes
fbdev: other:
fbdev: in_width: 720
fbdev: in_height: 576
fbdev: out_width: 720
fbdev: out_height: 576
fbdev: first_row: 0
fbdev: last_row: 576
fbdev: pixel per line: 720
*** [pp] Allocating mp_image_t, 640x352x12bpp YUV planar, 337920 bytes
*** [scale] Allocating mp_image_t, 640x352x12bpp YUV planar, 337920 bytes
*** [vo] Allocating mp_image_t, 720x576x32bpp BGR packed, 1658880 bytes
*** [expand] Direct Rendering mp_image_t, 720x396x32bpp BGR packed, 1140480 bytes
[New Thread 1024 (LWP 4290)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 4290)]
0x4044a1b7 in memcpy () from /lib/libc.so.6
(gdb) bt
#0 0x4044a1b7 in memcpy () from /lib/libc.so.6
#1 0x08080068 in put_frame () at vo_fbdev.c:1227
#2 0x080800c3 in flip_page () at vo_fbdev.c:1241
#3 0x08053890 in main (argc=3, argv=0xbffff904) at mplayer.c:1915
(gdb) disass $eip-32 $eip+32
Dump of assembler code from 0x4044a197 to 0x4044a1d7:
0x4044a197 <memcpy+7>: or %cl,0xd7891045(%ebx)
0x4044a19d <memcpy+13>: mov 0xc(%ebp),%esi
0x4044a1a0 <memcpy+16>: cmp $0x7,%eax
0x4044a1a3 <memcpy+19>: jbe 0x4044a1c0 <memcpy+48>
0x4044a1a5 <memcpy+21>: mov %edx,%ecx
0x4044a1a7 <memcpy+23>: neg %ecx
0x4044a1a9 <memcpy+25>: and $0x3,%ecx
0x4044a1ac <memcpy+28>: sub %ecx,%eax
0x4044a1ae <memcpy+30>: cld
0x4044a1af <memcpy+31>: repz movsb %ds:(%esi),%es:(%edi)
0x4044a1b1 <memcpy+33>: mov %eax,%ecx
0x4044a1b3 <memcpy+35>: shr $0x2,%ecx
0x4044a1b6 <memcpy+38>: cld
0x4044a1b7 <memcpy+39>: repz movsl %ds:(%esi),%es:(%edi)
0x4044a1b9 <memcpy+41>: and $0x3,%eax
0x4044a1bc <memcpy+44>: lea 0x0(%esi,1),%esi
0x4044a1c0 <memcpy+48>: mov %eax,%ecx
0x4044a1c2 <memcpy+50>: cld
0x4044a1c3 <memcpy+51>: repz movsb %ds:(%esi),%es:(%edi)
0x4044a1c5 <memcpy+53>: mov %edx,%eax
0x4044a1c7 <memcpy+55>: pop %esi
0x4044a1c8 <memcpy+56>: pop %edi
0x4044a1c9 <memcpy+57>: leave
0x4044a1ca <memcpy+58>: ret
0x4044a1cb <memcpy+59>: nop
0x4044a1cc <memcpy+60>: lea 0x0(%esi,1),%esi
0x4044a1d0 <memcpy+64>: push %ebp
0x4044a1d1 <memcpy+65>: mov %esp,%ebp
0x4044a1d3 <memcpy+67>: push %edi
0x4044a1d4 <memcpy+68>: push %esi
0x4044a1d5 <memcpy+69>: push %ebx
0x4044a1d6 <memcpy+70>: call 0x4044a1db <memcpy+75>
End of assembler dump.
(gdb) printf "eax=%08lX\n",$eax
eax=00000B40
(gdb) printf "ebx=%08lX\n",$ebx
ebx=00000000
(gdb) printf "ecx=%08lX\n",$ecx
ecx=000002D0
(gdb) printf "edx=%08lX\n",$edx
edx=A220C200
(gdb) printf "esp=%08lX\n",$esp
esp=BFFFE604
(gdb) printf "ebp=%08lX\n",$ebp
ebp=BFFFE60C
(gdb) printf "edi=%08lX\n",$edi
edi=A220C200
(gdb) printf "esi=%08lX\n",$esi
esi=41549008
(gdb) q
A debugging session is active.
Do you still want to close the debugger?(y or n)
More information about the MPlayer-felhasznalok
mailing list