[MPlayer-users] crash using the mouse when dsp is required by gkrellm

pl p_l at gmx.fr
Wed May 29 21:19:02 CEST 2002


On Wed, May 29, 2002 at 08:50:07PM +0200, phobos wrote:

> Hello . I found a reproductible bug .
> Here are the informations :
> 
> I use Window Maker , and Gkrellm .
> I have configured Gkrellm to play a sound when I have mail .
> I use input.conf from Mplayer to play forward and backward using the wheel mouse 
> and it works perfectly .
> 
> But when I have a mail , the dsp device is busy with mplayer , of course .
> If I use the wheel mouse to go forward and backward in the movie I look , Mplayer crashes. .
> 
> I hope this will be helpfull .
> I have recompiled mplayer  "./configure  --enable-debug=3 --enable-gui" and used gdb 
> like you explain on the web page .
> 
> Phil
> 
> System Information
> 
> Debian unstable   
> 
> kernel version:
> 2.4.18
> 
> libc version:
>  ls -l /lib/libc[.-]*
> -rwxr-xr-x    1 root     root      1153784 avr 28 11:57 /lib/libc-2.2.5.so
> lrwxrwxrwx    1 root     root           14 avr  3 20:56 /lib/libc.so.5 -> libc.so.5.4.46
> -rw-r--r--    1 root     root       563068 fév  4 22:30 /lib/libc.so.5.4.46
> lrwxrwxrwx    1 root     root           13 mai  1 19:15 /lib/libc.so.6 -> libc-2.2.5.so
> 
> 
> X version:
> XFree86 Version 4.1.0.1 
> 
> gcc and ld versions:
> gcc version 2.95.4 20011002 (Debian prerelease)
> GNU ld version 2.12.90.0.7 20020423 Debian GNU/Linux
> 
> binutils version:
> as --version
> Assembleur GNU 2.12.90.0.7 20020423 Debian GNU/Linux
> 
> # cat /proc/cpuinfo 
> processor       : 0
> vendor_id       : AuthenticAMD
> cpu family      : 6
> model           : 6
> model name      : AMD Athlon(tm) XP 1700+
> stepping        : 2
> cpu MHz         : 1466.460
> cache size      : 256 KB
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
> bogomips        : 2922.90
> 
> Video card :
> 01:00.0 VGA compatible controller: nVidia Corporation NV15 [GeForce2 Ti] (rev a4) (prog-if 00 [VGA])
>         Subsystem: LeadTek Research Inc.: Unknown device 2847
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
>         Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 248 (1250ns min, 250ns max)
>         Interrupt: pin A routed to IRQ 16
>         Region 0: Memory at de000000 (32-bit, non-prefetchable) [size=16M]
>         Region 1: Memory at d0000000 (32-bit, prefetchable) [size=128M]
>         Expansion ROM at dfef0000 [disabled] [size=64K]
>         Capabilities: [60] Power Management version 1
>                 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
>                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-
>         Capabilities: [44] AGP version 2.0
>                 Status: RQ=31 SBA- 64bit- FW+ Rate=x1,x2,x4
>                 Command: RQ=31 SBA- AGP+ 64bit- FW- Rate=x4
> 
> Driver Riva
> cat /proc/driver/nvidia/version 
> NVRM version: NVIDIA NVdriver Kernel Module  1.0-2880  Tue Mar 26 08:12:38 PST 2002
> GCC version:  gcc version 2.95.4 20011002 (Debian prerelease)
> 
> 
> Sound card :
> 00:08.0 Multimedia audio controller: Ensoniq 5880 AudioPCI (rev 02)
>         Subsystem: Ensoniq Creative Sound Blaster AudioPCI128
>         Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
>         Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort+ <MAbort+ >SERR- <PERR-
>         Latency: 64 (3000ns min, 32000ns max)
>         Interrupt: pin A routed to IRQ 19
>         Region 0: I/O ports at e400 [size=64]
>         Capabilities: [dc] Power Management version 1
>                 Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
>                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-
> 
> Sound Driver = OSS from kernel .
> 
> (gdb) run -v /mnt/win_d/My_movie.avi
> Starting program: /usr/local/bin/mplayer -v /mnt/win_d/My_movie.avi
> (no debugging symbols found)...[New Thread 1024 (LWP 7730)]
> (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...

That's no good.

1st, re-try with CVS pre4 is growing old now...
Then launch gdb on the binary _in the installation dir_ not the one
installed by make install as this one is stripped.

> MPlayer 0.90pre4-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
> 
> CPU vendor name: AuthenticAMD  max cpuid level: 1
> CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Type: 6, Stepping: 2)
> extended cpuid-level: 8
> Testing OS support for SSE... yes.
> Testing OS support for SSE unmasked exceptions... yes.
> Tests of OS support for SSE passed.
> CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
> Compiled for x86 CPU with features: MMX MMX2 3DNow 3DNowEx SSE
> /etc/mplayer.conf(11): option: vo
> /etc/mplayer.conf(11): parameter: sdl
> /etc/mplayer.conf(127): option: framedrop
> /etc/mplayer.conf(127): parameter: yes
> /etc/mplayer.conf(134): option: cache
> /etc/mplayer.conf(134): parameter: 8192
> /home/phil/.mplayer/config(2): option: vo
> /home/phil/.mplayer/config(2): parameter: xv
> /home/phil/.mplayer/config(3): option: osdlevel
> /home/phil/.mplayer/config(3): parameter: 0
> /home/phil/.mplayer/config(4): option: gui
> /home/phil/.mplayer/config(4): parameter: 1
> X11 opening display: :0.0
> vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
> vo: X11 running at 1600x1200 with depth 24 and 32 bits/pixel (":0.0" => local display)
> [x11] Create window for WM detect ...
> [x11] Detected wm is WindowMaker style.
> Reading /home/phil/.mplayer/codecs.conf: can't open '/home/phil/.mplayer/codecs.conf': No such file or directory
> Reading /usr/local/share/mplayer/codecs.conf: 34 audio & 92 video codecs
> CommandLine: '-v' '/mnt/win_d/L_indécente_Aux_Enfers.avi'
> get_path('font/font.desc') -> '/home/phil/.mplayer/font/font.desc'
> Font /home/phil/.mplayer/font/font.desc loaded successfully! (206 chars)
> Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> Linux RTC init error in ioctl (rtc_pie_on): Permission denied
> Using usleep() timing
> get_path('input.conf') -> '/home/phil/.mplayer/input.conf'
> Parsing input config file /home/phil/.mplayer/input.conf
> Input config file /home/phil/.mplayer/input.conf parsed : 52 binds
> get_path('Skin') -> '/home/phil/.mplayer/Skin'
> SKIN dir 1: '/home/phil/.mplayer/Skin'
> SKIN dir 2: '/usr/local/share/mplayer/Skin'
> [ws] Detected wm is Gnome
> Playing /mnt/win_d/L_indécente_Aux_Enfers.avi
> Not an URL!
> File size is 736923648 bytes
> CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0  
> Cache fill:  0,00% (0 bytes)    Detected AVI file format!
> list_end=0x170
> ======= AVI Header =======
> us/frame: 40000  (fps=25,000)
> max bytes/sec: 175041
> padding: 0
> MainAVIHeader.dwFlags: (2064) HAS_INDEX TRUST_CKTYPE
> frames  total: 178154   initial: 0
> streams: 2
> Suggested BufferSize: 47816
> Size:  352 x 288
> list_end=0xE8
> ==> Found video stream: 0
> ======= STREAM Header =======
> Type: vids   FCC: div3 (33766964)
> Flags: 0
> Priority: 0   Language: 0
> InitialFrames: 0
> Rate: 25/1 = 25,000
> Start: 0   Len: 178154
> Suggested BufferSize: 47816
> Quality 5000
> Sample size: 0
> found 'bih', 40 bytes of 40
> ======= VIDEO Format ======
>   biSize 40
>   biWidth 352
>   biHeight 288
>   biPlanes 1
>   biBitCount 24
>   biCompression 861292868='DIV3'
>   biSizeImage 304128
> ===========================
> Regenerating keyframe table for DIVX 3 video
> list_end=0x170
> ==> Found audio stream: 1
> ======= STREAM Header =======
> Type: auds   FCC:  (0)
> Flags: 0
> Priority: 0   Language: 0
> InitialFrames: 0
> Rate: 14000/1 = 14000,000
> Start: 0   Len: 99764000
> Suggested BufferSize: 14257
> Quality -1
> Sample size: 1
> found 'wf', 30 bytes of 20
> ======= WAVE Format =======
> Format Tag: 85 (0x55)
> Channels: 2
> Samplerate: 48000
> avg byte/sec: 14000
> Block align: 1
> bits/sample: 0
> cbSize: 12
> mp3.wID=1
> mp3.fdwFlags=0x2
> mp3.nBlockSize=336
> mp3.nFramesPerBlock=1
> mp3.nCodecDelay=1393
> Broken chunk?  chunksize=1660  (id=JUNK)
> list_end=0x2BBF523C
> Found movie at 0x800 - 0x2BBF523C
> Reading INDEX block, 185280 chunks for 178154 frames
> Broken chunk?  chunksize=0  (id=idx1)
> Reading INDEX block, 185280 chunks for 178154 frames
> AVI index offset: 0x7FC (movi=0x800 idx0=0x4 idx1=0x1EE0)
> Auto-selected AVI video ID = 0
> Auto-selected AVI audio ID = 1
> AVI: Searching for audio stream (id:1)
> XXX initial  v_pts=0,960  a_pos=0 (0,000) 
> AVI video length=632710436
> VIDEO:  [DIV3]  352x288  24bpp  25,00 fps  710,3 kbps (86,7 kbyte/s)
> [V] filefmt:3  fourcc:0x33564944  size:352x288  fps:25,00  ftime:=0,0400
> get_path('sub/') -> '/home/phil/.mplayer/sub/'
> Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
> Initializing audio codec...
> Selecting 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
> init layer2&3 finished, tables done
> mp3lib: using 3DNow!Ex optimized decore!
> MPEG 1.0, Layer III, 48000 Hz 112 kbit Joint-Stereo, BPF: 336
> Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
> AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 14000->192000
> ==========================================================================
> Opening Video Decoder: [ffmpeg] FFmpeg's libavcodec codec family
> libavcodec: CPU flags: mmx mmxext 3dnow
> INFO: libavcodec init OK!
> Detected video codec: [ffdivx] drv:5 prio:0 (FFmpeg DivX ;-) (MS MPEG-4 v3))
> ==========================================================================
> vo_xv: get: XV_DOUBLE_BUFFER = 1
> vo_xv: assume: XV_DOUBLE_BUFFER = 2000
> vo_xv: get: XV_COLORKEY = 66046
> vo_xv: assume: XV_COLORKEY = 31
> vo_xv: get: XV_AUTOPAINT_COLORKEY = 1
> vo_xv: assume: XV_AUTOPAINT_COLORKEY = 2000
> vo_xv: get: XV_BRIGHTNESS = 0
> vo_xv: assume: XV_BRIGHTNESS = 0
> vo_xv: get: XV_CONTRAST = 4096
> vo_xv: assume: XV_CONTRAST = 0
> vo_xv: get: XV_SATURATION = 4096
> vo_xv: assume: XV_SATURATION = 0
> vo_xv: get: XV_HUE = 0
> vo_xv: assume: XV_HUE = -1000
> AO: [oss] 48000Hz Stereo Signed 16-bit (Little-Endian)
> AO: Description: OSS/ioctl audio output
> AO: Author: A'rpi
> ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
> audio_setup: using '/dev/dsp' dsp device
> audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
> audio_setup: using 2 channels (requested: 2)
> audio_setup: using 48000 Hz samplerate (requested: 48000)
> audio_setup: frags: 128/128  (1024 bytes/frag)  free: 131072
> Start playing...
> VDec: vo config request - 352 x 288, Planar YV12  
> [PP] Sorry, postprocessing is not available
> vo_debug: query(Planar YV12) returned 0x437 (i=0) 
> Movie-Aspect is undefined - no prescaling applied.
> video_out->init(352x288->352x288,flags=0,'MPlayer',0x32315659)
> VO: [xv] 352x288 => 352x288 Planar YV12 
> VO: Description: X11/Xv
> VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de>
> Xvideo image format: 0x32595559 (YUY2) packed
> Xvideo image format: 0x32315659 (YV12) planar
> Xvideo image format: 0x59565955 (UYVY) packed
> Xvideo image format: 0x30323449 (I420) planar
> using Xvideo port 61 for hw scaling
> vo_xv: reset gamma correction
> [xv] dx: 0 dy: 0 dw: 352 dh: 288
> *** [vo] Exporting mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
> [ws] Detected wm is WindowMaker style.
> [ws] Detected wm is WindowMaker style.
> [x11] Detected wm is WindowMaker style.
> [xv] dx: 0 dy: 0 dw: 352 dh: 288
> SEEK: idx=119859  (a:0 v:119859)  v.skip=119866  a.skip=6/0,000   1,0% 0 0 48%
> SEEK: idx=119599  (a:0 v:119599)  v.skip=119606  a.skip=6/0,000   1,0% 0 0 48%
> SEEK: idx=119339  (a:0 v:119339)  v.skip=119346  a.skip=6/0,000   1,1% 0 0 64%
> SEEK: idx=119079  (a:0 v:119079)  v.skip=119086  a.skip=6/0,000   1,1% 0 0 76%
> SEEK: idx=118819  (a:0 v:118819)  v.skip=118826  a.skip=6/0,000   1,1% 0 0 87%
> SEEK: idx=120899  (a:0 v:120899)  v.skip=120906  a.skip=6/0,000   0,8% 0 0 49%
> SEEK: idx=120639  (a:0 v:120639)  v.skip=120646  a.skip=6/0,000   1,6% 0 0 48%
> SEEK: idx=120379  (a:0 v:120379)  v.skip=120386  a.skip=6/0,000   1,4% 0 0 62%
> 
> Fatal error: *** CANNOT RE-OPEN / RESET AUDIO DEVICE *** Périphérique ou ressource occupé
> (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1024 (LWP 7730)]
> 0x081732b3 in outputaudio ()
> (gdb) bt
> #0  0x081732b3 in outputaudio ()
> #1  0x08069768 in main ()
> #2  0x4059814f in __libc_start_main () from /lib/libc.so.6
> (gdb) disass $eip-32 $eip+32
> Dump of assembler code from 0x8173293 to 0x81732d3:
> 0x8173293 <outputaudio+2631>:   ret    
> 0x8173294 <outputaudio+2632>:   jmp    0x81732f2 <outputaudio+2726>
> 0x8173296 <outputaudio+2634>:   xor    %eax,%eax
> 0x8173298 <outputaudio+2636>:   mov    $0x20,%ecx
> 0x817329d <outputaudio+2641>:   lea    0xffffff80(%ebp),%ebx
> 0x81732a0 <outputaudio+2644>:   mov    %ebx,%edi
> 0x81732a2 <outputaudio+2646>:   cld    
> 0x81732a3 <outputaudio+2647>:   repz stos %eax,%es:(%edi)
> 0x81732a5 <outputaudio+2649>:   mov    0x82111ac,%edx
> 0x81732ab <outputaudio+2655>:   mov    %edx,%eax
> 0x81732ad <outputaudio+2657>:   and    $0x1f,%eax
> 0x81732b0 <outputaudio+2660>:   shr    $0x5,%edx
> 0x81732b3 <outputaudio+2663>:   bts    %eax,(%ebx,%edx,4)
> 0x81732b7 <outputaudio+2667>:   movl   $0x0,0xffffff78(%ebp)
> 0x81732c1 <outputaudio+2677>:   lea    0xffffff78(%ebp),%eax
> 0x81732c7 <outputaudio+2683>:   movl   $0x0,0x4(%eax)
> 0x81732ce <outputaudio+2690>:   add    $0xfffffff4,%esp
> 0x81732d1 <outputaudio+2693>:   push   %eax
> 0x81732d2 <outputaudio+2694>:   push   $0x0
> End of assembler dump.
> (gdb) 

-- 
Best regards,
  pl




More information about the MPlayer-users mailing list