[MPlayer-dev-eng] Re: [BUG] nice little bug somewhere (config/playtree)

Gabucino gabucino at mplayerhq.hu
Sun Dec 29 10:23:11 CET 2002


Ok, some followup, also a gdb session with njamd:
This is my first time using njamd, so I used the manpage's examples..
Tell me what to type. :)
I've also attached my config file.
New info: >> --disable-new-conf makes the bug go away << (of course..)

Do not try to reproduce the bug :)) It's possible only with this file, and only
with this configfile, and only with these options, and only these pathnames,
and only with new-conf, and....................... 8-o~

Unfortunately I can't upload this 16Mb AVI on my 9600bps expensive GSM.. :((((

> mplayer 1/1/B10.AVI				WORKS
> mplayer -ao pcm 1/1/B10.AVI			WORKS
> mplayer -vo null 1/1/B10.AVI			WORKS
> mplayer -vo null -ao pcm 1/1/B10.AVI		HANGS AT END, 100% CPU
> mplayer -vo null -vc null 1/1/B10.AVI		WORKS
> mplayer -vo null -vc null -ao pcm 1/1/B10.AVI	SIG11 AT END

mplayer -vo null -vc null -ao pcm B10.AVI                                 WORKS
mplayer -vo null -vc null -ao pcm cdrom/THIEF/MOVIES/B10.AVI              SIG11
mplayer -vo null -vc null -ao pcm -vop disable cdrom/THIEF/MOVIES/B10.AVI WORKS

(not mounted CD, just created such directories on HDD)

(gdb)
set env LD_PRELOAD=libnjamd.so                       
set env NJAMD_PROT=strict                            
set env NJAMD_CHK_FREE=val
set env NJAMD_ALIGN=num
set env NJAMD_DUMP_LEAKS_ON_EXIT=num
set env NJAMD_DUMP_STATS_ON_EXIT=1
set env NJAMD_DUMP_CORE=soft,hard
set env NJAMD_PERSISTENT_HEAP=1
set env NJAMD_TRACE_LIBS=1
set env NJAMD_NO_TRACE=1
set env NJAMD_ALLOW_READ=1
set env NJAMD_ALLOW_FREE_0=1
set env NJAMD_ALLOW_MALLOC_0=1
(gdb) run -vo null -vc null -ao pcm -ss 102 -v cdrom/THIEF/MOVIES/B10.AVI 
Starting program: /home/gabucino/x/mplayer.debug -vo null -vc null -ao pcm -ss 102 -v cdrom/THIEF/MOVIES/B10.AVI
NJAMD: Invalid porno^H^H^Hcoredump setting: soft,hard
NJAMD: Invalid free checking: val
[New Thread 1024 (LWP 13684)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
NJAMD: Invalid porno^H^H^Hcoredump setting: soft,hard
NJAMD: Invalid free checking: val
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer CVS-021229-09:26-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices K6-2 (Family: 5, Stepping: 12)
CPUflags:  MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with RUNTIME CPU Detection - warning, it's not optimal! To get best performance, recompile MPlayer with --disable-runtime-cpudetection
Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/gabucino/.mplayer/config
Reading /home/gabucino/.mplayer/codecs.conf: 49 audio & 126 video codecs
CommandLine: '-vo' 'null' '-vc' 'null' '-ao' 'pcm' '-ss' '102' '-v' 'cdrom/THIEF/MOVIES/B10.AVI'
get_path('font/font.desc') -> '/home/gabucino/.mplayer/font/font.desc'
Font /home/gabucino/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit 3DNow) Optimized OnScreenDisplay
Using usleep() timing
get_path('input.conf') -> '/home/gabucino/.mplayer/input.conf'
Parsing input config file /home/gabucino/.mplayer/input.conf
Input config file /home/gabucino/.mplayer/input.conf parsed : 50 binds
get_path('B10.AVI.conf') -> '/home/gabucino/.mplayer/B10.AVI.conf'

Playing cdrom/THIEF/MOVIES/B10.AVI
Not an URL!
File size is 16921102 bytes
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0  
Cache fill:  0.00% (0 bytes)    Detected AVI file format!
list_end=0x148
======= AVI Header =======
us/frame: 66666  (fps=15.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (16) HAS_INDEX
frames  total: 1588   initial: 0
streams: 2
Suggested BufferSize: 32768
Size:  320 x 240
list_end=0xDC
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: IV50 (30355649)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 15/1 = 15.000
Start: 0   Len: 1588
Suggested BufferSize: 230400
Quality 10000
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 320
  biHeight 240
  biPlanes 1
  biBitCount 24
  biCompression 808801865='IV50'
  biSizeImage 172800
===========================
list_end=0x148
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 44100/2 = 22050.000
Start: 0   Len: 2334360
Suggested BufferSize: 88320
Quality 10000
Sample size: 2
found 'wf', 16 bytes of 18
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 2
Samplerate: 22050
avg byte/sec: 44100
Block align: 2
bits/sample: 8
cbSize: 0
Broken chunk?  chunksize=3748  (id=JUNK)
list_end=0x101C59E
Found movie at 0x1000 - 0x101C59E
Reading INDEX block, 1731 chunks for 1588 frames (fpos=0x101c5a6)
list_end=0x102320E
AVI index offset: 0xFFC (movi=0x1000 idx0=0x4 idx1=0x19C)
Auto-selected AVI video ID = 0
Auto-selected AVI audio ID = 1
Detected NON-INTERLEAVED AVI file-format!
AVI: Searching for audio stream (id:1)
XXX initial  v_pts=0.000  a_pos=0 (0.000) 
AVI video size=12206678 (1588) audio size=4668720 (2334360)
VIDEO:  [IV50]  320x240  24bpp  15.00 fps  922.4 kbps (112.6 kbyte/s)
[V] filefmt:3  fourcc:0x30355649  size:320x240  fps:15.00  ftime:=0.0667
get_path('sub/') -> '/home/gabucino/.mplayer/sub/'
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer
AUDIO: 22050 Hz, 2 ch, 8 bit (0x8), ratio: 44100->44100 (352.8 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [pp]
[vo] query(Planar YV12) -> 1
[vo] query(Planar I420) -> 1
[vo] query(Planar IYUV) -> 1
==========================================================================
Forced video codec: null
Opening video decoder: [null] Null video decoder
VDec: vo config request - 320 x 240 (preferred csp: BGR 24-bit)
[PP] Using external postprocessing filter, max q = 6
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (320x240->320x240,flags=1,'MPlayer',0x32315659)
REQ: flags=0x401  req=0x0  
VO: [null] 320x240 => 320x240 Planar YV12  [fs]
VO: Description: Null video output
VO: Author: Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
Selected video codec: [null] vfm:null (NULL codec (no decoding!))
==========================================================================
[PP] Using external postprocessing filter, max q = 6
AutoQ: setting quality to 6
PCM: File: audiodump.wav (WAVE)
PCM: Samplerate: 22050Hz Channels: Stereo Format Unsigned 8-bit
PCM: Info: fastest dumping is achieved with -vc null -vo null
PCM: Info: to write WAVE files use -waveheader (default); for RAW PCM -nowaveheader.
AO: [pcm] 22050Hz 2ch Unsigned 8-bit
AO: Description: RAW PCM/WAVE file writer audio output
AO: Author: Atmosfear
Building audio filter chain for 22050Hz/2ch/8bit -> 22050Hz/2ch/8bit...
[libaf] Adding filter dummy 
[dummy] Was reinitialized, rate=22050Hz, nch = 2, format = 0x00000003 and bps = 1
[dummy] Was reinitialized, rate=22050Hz, nch = 2, format = 0x00000003 and bps = 1
Start playing...
SEEK: i=1725 (max:1731) dpos=4489216 (wanted:4518780)   0%  0.0% 1 6 48%
SEEK: idx=1537  (a:1725 v:1537)  v.skip=0  a.skip=29564/0.000  
ds_fill_buffer: EOF reached (stream: audio)  8/1588   0%  0%  0.8% 44 1 98%
ds_fill_buffer: EOF reached (stream: audio)  
ds_fill_buffer: EOF reached (stream: video)  8/1588   0%  0%  2.6% 44 2 2%
EOF code: 1  05.8 A-V:  0.067 ct:  0.374  1588/1588   0%  0%  2.6% 44 1 2%

Uninit audio filters...
[libaf] Removing filter dummy 
uninit audio: pcm  
uninit video: null  
NJAMD/free: Address 0x83b7730 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83b7768 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83b77a0 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83b77d8 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83b7810 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83b7848 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83b7880 not from malloc
        Call stack not saved
NJAMD/free: Address 0x43db3008 not from malloc
        Call stack not saved
NJAMD/free: Address 0x43ddd008 not from malloc
        Call stack not saved
NJAMD/free: Address 0x43e07008 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83b84a0 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83c40a8 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83cfcb0 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83b7b90 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83b7c98 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83db8b8 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83e18c0 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83e78c8 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83ed8d0 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83f38d8 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83f3a30 not from malloc
        Call stack not saved
NJAMD/free: Address 0x83b78e0 not from malloc
        Call stack not saved
DEMUXER: freeing demuxer at 0x42ded000  

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 13684)]
0x4001e6d0 in __nj_none_stats () from /usr/lib/libnjamd.so
(gdb) bt
#0  0x4001e6d0 in __nj_none_stats () from /usr/lib/libnjamd.so
#1  0x4001ebc6 in __nj_sunderflow_free () from /usr/lib/libnjamd.so
#2  0x40021663 in free () from /usr/lib/libnjamd.so
#3  0x0807e0fd in copy_str (opt=0x82d71dc, dst=0x82ef648, src=0x41ec4008)
    at m_option.c:324
#4  0x0807cd27 in m_config_pop (config=0x414c8000) at m_option.h:205
#5  0x08071f5f in play_tree_iter_step (iter=0x41cba000, d=1, with_nodes=0)
    at playtree.c:561
#6  0x0806d753 in main (argc=11, argv=0xbffff954) at mplayer.c:3110
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x4001e6b0 to 0x4001e6f0:
0x4001e6b0 <__nj_none_stats+216>:       imul   $0x0,0x1c483(%ebx),%ecx
0x4001e6b7 <__nj_none_stats+223>:       mov    (%edi),%ecx
0x4001e6b9 <__nj_none_stats+225>:       cmpl   $0x0,(%eax)
0x4001e6bc <__nj_none_stats+228>:       jne    0x4001e6d0 <__nj_none_stats+248>
0x4001e6be <__nj_none_stats+230>:       test   %ecx,%ecx
0x4001e6c0 <__nj_none_stats+232>:       jne    0x4001e6d0 <__nj_none_stats+248>
0x4001e6c2 <__nj_none_stats+234>:       push   %edi
0x4001e6c3 <__nj_none_stats+235>:       mov    0x10(%ebp),%eax
0x4001e6c6 <__nj_none_stats+238>:       push   %eax
0x4001e6c7 <__nj_none_stats+239>:       push   %eax
0x4001e6c8 <__nj_none_stats+240>:       lea    0xffffd6c4(%ebx),%eax
0x4001e6ce <__nj_none_stats+246>:       jmp    0x4001e716 <__nj_none_stats+318>
0x4001e6d0 <__nj_none_stats+248>:       mov    0x1c(%ecx),%esi
0x4001e6d3 <__nj_none_stats+251>:       mov    %esi,%edx
0x4001e6d5 <__nj_none_stats+253>:       and    $0xfff,%edx
0x4001e6db <__nj_none_stats+259>:       mov    $0x1000,%eax
0x4001e6e0 <__nj_none_stats+264>:       sub    %edx,%eax
0x4001e6e2 <__nj_none_stats+266>:       cmp    $0x3,%eax
0x4001e6e5 <__nj_none_stats+269>:       jbe    0x4001e700 <__nj_none_stats+296>
0x4001e6e7 <__nj_none_stats+271>:       cmpl   $0xdeadbeef,0x1000(%esi,%edi,1)
End of assembler dump.
(gdb) info all-registers
eax            0x400258fc       1073895676
ecx            0x0      0
edx            0x1      1
ebx            0x400259fc       1073895932
esp            0xbfffe544       0xbfffe544
ebp            0xbfffe55c       0xbfffe55c
esi            0xbfffe5c0       -1073748544
edi            0x42e84000       1122516992
eip            0x4001e6d0       0x4001e6d0
eflags         0x10202  66050
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x0      0
st0            0        (raw 0x00000000000000000000)
st1            -1       (raw 0xbfff8000000000000000)
st2            0.3677629530429840087890625      (raw 0x3ffdbc4b6d0000000000)
st3            0.3744293749332427978515625      (raw 0x3ffdbfb5350000000000)
st4            0.066664301381359834797191155075779534   (raw 0x3ffb88874b11f2f34c00)
st5            105.8000030517578125     (raw 0x4005d3999a0000000000)
st6            0        (raw 0x00000000000000000000)
st7            105.8000030517578125     (raw 0x4005d3999a0000000000)
fctrl          0x37f    895
fstat          0x4020   16416
ftag           0xffff   65535
fiseg          0x23     35
fioff          0x806ce09        134663689
foseg          0x2b     43
fooff          0xbfffe874       -1073747852
fop            0x39d    925
xmm0           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm1           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm2           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm3           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm4           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm5           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm6           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm7           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
mxcsr          0x1f80   8064
orig_eax       0xffffffff       -1

Sysinfo: AMD K6/2-500, Debian 3.0, nVidia Gef2MX400 (--disable-gl because
nvidia's libGL shit kills njamd)

-- 
Gabucino
MPlayer Core Team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021229/49f3cd9a/attachment.pgp>


More information about the MPlayer-dev-eng mailing list