[MPlayer-dev-eng] [BUG] sig11 in playlist reader

gabucino at mplayerhq.hu gabucino at mplayerhq.hu
Wed Aug 21 10:16:55 CEST 2002


Playlist reader dies with sig11 if there isn't a \n (carriage
return) at the end of the file.

------> bad playlist
/mnt/cd/a
/mnt/cd/b
------> EOF

------> good playlist
/mnt/cd/a
/mnt/cd/b

------> EOF

(gdb) run -playlist pl
Starting program: /home/gabucino/mplayer/src/mplayer -playlist pl
[New Thread 1024 (LWP 18699)]


MPlayer CVS-020817-22:08-2.95.3 (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 for x86 CPU with extensions: MMX 3DNow


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 18699)]
0x405020c6 in memmove () from /lib/libc.so.6
(gdb) bt
#0  0x405020c6 in memmove () from /lib/libc.so.6
#1  0x8079f73 in play_tree_parser_get_line ()
#2  0x83ec878 in ?? ()
#3  0x6 in ?? ()
Cannot access memory at address 0x5
(gdb) disass $eip-32 $eip+32
Dump of assembler code from 0x405020a6 to 0x405020e6:
0x405020a6 <memmove+214>:       inc    %esi
0x405020a7 <memmove+215>:       in     $0x8b,%al
0x405020a9 <memmove+217>:       push   %esi
0x405020aa <memmove+218>:       loopne 0x40502035 <memmove+101>
0x405020ac <memmove+220>:       inc    %edi
0x405020ad <memmove+221>:       in     $0x89,%al
0x405020af <memmove+223>:       push   %edi
0x405020b0 <memmove+224>:       loopne 0x4050203f <memmove+111>
0x405020b2 <memmove+226>:       jbe    0x40502094 <memmove+196>
0x405020b4 <memmove+228>:       lea    0xffffffe0(%edi),%edi
0x405020b7 <memmove+231>:       jns    0x4050207b <memmove+171>
0x405020b9 <memmove+233>:       add    $0x20,%ecx
0x405020bc <memmove+236>:       mov    %ecx,0x10(%ebp)
0x405020bf <memmove+239>:       nop    
0x405020c0 <memmove+240>:       mov    0x10(%ebp),%ecx
0x405020c3 <memmove+243>:       dec    %edi
0x405020c4 <memmove+244>:       dec    %esi
0x405020c5 <memmove+245>:       std    
0x405020c6 <memmove+246>:       repz movsb %ds:(%esi),%es:(%edi)
0x405020c8 <memmove+248>:       cld    
0x405020c9 <memmove+249>:       lea    0x0(%esi,1),%esi
0x405020d0 <memmove+256>:       mov    0x8(%ebp),%eax
0x405020d3 <memmove+259>:       pop    %esi
0x405020d4 <memmove+260>:       pop    %edi
0x405020d5 <memmove+261>:       mov    %ebp,%esp
0x405020d7 <memmove+263>:       pop    %ebp
0x405020d8 <memmove+264>:       ret    
0x405020d9 <Letext>:    lea    0x0(%esi,1),%esi
0x405020e0 <memset>:    push   %edi
0x405020e1 <memset+1>:  mov    0x8(%esp,1),%edi
0x405020e5 <memset+5>:  mov    0x10(%esp,1),%edx
End of assembler dump.

-- 
Gabucino

/ Worshipping Niedermayer 4ever /
"Do you always look at it encoded?" (C) D. R. F.
"minden lehet. ez nem." (c) A'rpi
-------------- 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/20020821/2752f2f2/attachment.pgp>


More information about the MPlayer-dev-eng mailing list