[MPlayer-users] mencoder crash on tv

WK sprawki at wp.pl
Sun Dec 15 01:55:04 CET 2002


Jindrich Makovicka wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> WK wrote:
> 
>> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
>> Hi Jindrich.
>> I checked only patch which you send today.
>> It is not cure.
>> I checked mencoder also under fresh (installed) Mandrake 0.9 - gcc-3.1.
>> Opposit my PLD-linux, where the kernel, drivers (tv & sound), I 
>> compiled myself on gcc-2.95-4 Mandrake has all from distribution. Only 
>> lame libs I compiled from sources - 3.90.
>> PLD works with 3.89 from distribution  rpm.
>> Result is the same.
>> In english system reports:
>> "Floating point exception".
> 
> 
> Please run it on that another distro thru gdb and look if it can get the 
> exact location of this error.
> 

With my eye it is almost the same:
Settings:
/usr/local/bin/mencoder -v -tv on:driver=v4l:width=384:height=288:fps=25 
-oac pcm -ovc divx4 divx4opts br=1200

PLD - no patch:

MEncoder 0.90rc1-2.95.4

#0  0x40310e85 in sigsuspend () from /lib/libc.so.6
#1  0x401895ff in pthread_getconcurrency () from /lib/libpthread.so.0
#2  0x40188db6 in pthread_create () from /lib/libpthread.so.0
#3  0x080e0366 in start (priv=0x82bf4f8) at tvi_v4l.c:794
#4  0x080de7b5 in demux_open_tv (demuxer=0x82bea78) at tv.c:409
#5  0x080db65c in demux_open_stream (stream=0x82be100, file_format=0, 
audio_id=-1, video_id=-1, dvdsub_id=-1) at demuxer.c:1023
#6  0x080db762 in demux_open (vs=0x82be100, file_format=0, audio_id=-1, 
video_id=-1, dvdsub_id=-1) at demuxer.c:1064
#7  0x0804d3e9 in main (argc=12, argv=0xbffffc24) at mencoder.c:482
#8  0x402ffa21 in __libc_start_main () from /lib/libc.so.6
(gdb) cd '/root/0mencoder-debug'
'/root/0mencoder-debug': No such file or directory.
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x40310e65 to 0x40310ea5:
0x40310e65 <sigsuspend+5>:      adc    %dl,0x53(%edi)
0x40310e68 <sigsuspend+8>:      call   0x40310e5c <sigpending+72>
0x40310e6d <sigsuspend+13>:     add    $0xf4d33,%ebx
0x40310e73 <sigsuspend+19>:     mov    0x8(%ebp),%edi
0x40310e76 <sigsuspend+22>:     mov    $0x8,%ecx
0x40310e7b <sigsuspend+27>:     push   %ebx
0x40310e7c <sigsuspend+28>:     mov    %edi,%ebx
0x40310e7e <sigsuspend+30>:     mov    $0xb3,%eax
0x40310e83 <sigsuspend+35>:     int    $0x80
0x40310e85 <sigsuspend+37>:     pop    %ebx
0x40310e86 <sigsuspend+38>:     mov    %eax,%edi
0x40310e88 <sigsuspend+40>:     cmp    $0xfffff000,%edi
0x40310e8e <sigsuspend+46>:     jbe    0x40310e9e <sigsuspend+62>
0x40310e90 <sigsuspend+48>:     neg    %edi
0x40310e92 <sigsuspend+50>:     call   0x402ff3c0 <signgam+127824>
0x40310e97 <sigsuspend+55>:     mov    %edi,(%eax)
0x40310e99 <sigsuspend+57>:     mov    $0xffffffff,%edi
0x40310e9e <sigsuspend+62>:     mov    %edi,%eax
0x40310ea0 <sigsuspend+64>:     pop    %ebx
0x40310ea1 <sigsuspend+65>:     pop    %edi
0x40310ea2 <sigsuspend+66>:     mov    %ebp,%esp
0x40310ea4 <sigsuspend+68>:     pop    %ebp
End of assembler dump.

Mandrake (distro settings):

MEncoder 0.90rc1-3.2

0  0x402f5479 in sigsuspend () from /lib/i686/libc.so.6
#1  0x40177e58 in pthread_create () from /lib/i686/libpthread.so.0
#2  0x40177aa1 in pthread_create () from /lib/i686/libpthread.so.0
#3  0x080cb00f in start (priv=0x8277900) at tvi_v4l.c:781
#4  0x080c9241 in demux_open_tv (demuxer=0x8276e80) at tv.c:409
#5  0x080c4f3e in demux_open_stream (stream=0x8276508, file_format=9, 
audio_id=-1, video_id=-1, dvdsub_id=-1)
     at demuxer.c:1023
#6  0x080c6159 in demux_open (vs=0xfffffffc, file_format=0, audio_id=-1, 
video_id=-4, dvdsub_id=-1)
     at demuxer.c:1064
#7  0x0804c9d0 in main (argc=-4, argv=0xfffffffc) at mencoder.c:482
#8  0x402e4082 in __libc_start_main () from /lib/i686/libc.so.6

(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x402f5459 to 0x402f5499:
0x402f5459 <sigsuspend+9>:	mov    %esi,0x4(%esp,1)
0x402f545d <sigsuspend+13>:	call   0x402e3efd <signgam+101057>
0x402f5462 <sigsuspend+18>:	add    $0xf1ede,%ebx
0x402f5468 <sigsuspend+24>:	mov    $0x8,%ecx
0x402f546d <sigsuspend+29>:	mov    0x8(%ebp),%edx
0x402f5470 <sigsuspend+32>:	xchg   %edx,%ebx
0x402f5472 <sigsuspend+34>:	mov    $0xb3,%eax
0x402f5477 <sigsuspend+39>:	int    $0x80
0x402f5479 <sigsuspend+41>:	xchg   %edx,%ebx
0x402f547b <sigsuspend+43>:	cmp    $0xfffff000,%eax
0x402f5480 <sigsuspend+48>:	mov    %eax,%esi
0x402f5482 <sigsuspend+50>:	jbe    0x402f5492 <sigsuspend+66>
0x402f5484 <sigsuspend+52>:	neg    %esi
0x402f5486 <sigsuspend+54>:	call   0x402e3a90 <signgam+99924>
0x402f548b <sigsuspend+59>:	mov    %esi,(%eax)
0x402f548d <sigsuspend+61>:	mov    $0xffffffff,%esi
0x402f5492 <sigsuspend+66>:	mov    %esi,%eax
0x402f5494 <sigsuspend+68>:	mov    (%esp,1),%ebx
0x402f5497 <sigsuspend+71>:	mov    0x4(%esp,1),%esi
End of assembler dump.

PLD with patch tvi_v4l.c.diff (081202):

MEncoder 0.90rc1-2.95.4

#0  0x40310e85 in sigsuspend () from /lib/libc.so.6
#1  0x401895ff in pthread_getconcurrency () from /lib/libpthread.so.0
#2  0x40188db6 in pthread_create () from /lib/libpthread.so.0
#3  0x080e0266 in start (priv=0x82bf298) at tvi_v4l.c:794
#4  0x080de6b5 in demux_open_tv (demuxer=0x82be818) at tv.c:409
#5  0x080db54c in demux_open_stream (stream=0x82bdea0, file_format=0, 
audio_id=-1, video_id=-1, dvdsub_id=-1) at demuxer.c:1023
#6  0x080db652 in demux_open (vs=0x82bdea0, file_format=0, audio_id=-1, 
video_id=-1, dvdsub_id=-1) at demuxer.c:1064
#7  0x0804d3e9 in main (argc=12, argv=0xbffffc24) at mencoder.c:482
#8  0x402ffa21 in __libc_start_main () from /lib/libc.so.6
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x40310e65 to 0x40310ea5:
0x40310e65 <sigsuspend+5>:      adc    %dl,0x53(%edi)
0x40310e68 <sigsuspend+8>:      call   0x40310e5c <sigpending+72>
0x40310e6d <sigsuspend+13>:     add    $0xf4d33,%ebx
0x40310e73 <sigsuspend+19>:     mov    0x8(%ebp),%edi
0x40310e76 <sigsuspend+22>:     mov    $0x8,%ecx
0x40310e7b <sigsuspend+27>:     push   %ebx
0x40310e7c <sigsuspend+28>:     mov    %edi,%ebx
0x40310e7e <sigsuspend+30>:     mov    $0xb3,%eax
0x40310e83 <sigsuspend+35>:     int    $0x80
0x40310e85 <sigsuspend+37>:     pop    %ebx
0x40310e86 <sigsuspend+38>:     mov    %eax,%edi
0x40310e88 <sigsuspend+40>:     cmp    $0xfffff000,%edi
0x40310e8e <sigsuspend+46>:     jbe    0x40310e9e <sigsuspend+62>
0x40310e90 <sigsuspend+48>:     neg    %edi
0x40310e92 <sigsuspend+50>:     call   0x402ff3c0 <signgam+127824>
0x40310e97 <sigsuspend+55>:     mov    %edi,(%eax)
0x40310e99 <sigsuspend+57>:     mov    $0xffffffff,%edi
0x40310e9e <sigsuspend+62>:     mov    %edi,%eax
0x40310ea0 <sigsuspend+64>:     pop    %ebx
0x40310ea1 <sigsuspend+65>:     pop    %edi
0x40310ea2 <sigsuspend+66>:     mov    %ebp,%esp
0x40310ea4 <sigsuspend+68>:     pop    %ebp
End of assembler dump.

Regards
Wiesław





More information about the MPlayer-users mailing list