New submission from Steven Zakulec <[EMAIL PROTECTED]>:

The file 
http://samples.mplayerhq.hu/nsv/nsv_samples/ot171_novideo.nsv.bz2
seg faults at r8466.  It plays just fine at r8465.

r8465:
ffmpeg -i ot171_novideo.nsv
FFmpeg version SVN-r8465, Copyright (c) 2000-2007 Fabrice Bellard, et 
al.
  configuration:
  libavutil version: 49.4.0
  libavcodec version: 51.40.0
  libavformat version: 51.11.0
  built on Sep 21 2007 23:50:45, gcc: 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Input #0, nsv, from 'ot171_novideo.nsv':
  Duration: 00:00:00.0, start: 0.000000, bitrate: -2147483 kb/s
  Stream #0.0: Audio: pcm_u8, 11025 Hz, mono, 88 kb/s
Must supply at least one output file

r8466:ffmpeg -i ot171_novideo.nsv
FFmpeg version SVN-r8466, Copyright (c) 2000-2007 Fabrice Bellard, et 
al.
  configuration:
  libavutil version: 49.4.0
  libavcodec version: 51.40.0
  libavformat version: 51.11.0
  built on Sep 21 2007 23:56:03, gcc: 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Segmentation fault (core dumped)

Debug output:
Starting 
program: /home/szakulec/ffmpeg/ffmpeg_g -i 
/media/sda9/samples/nsv/nsv_samples/ot171_novideo.nsv
FFmpeg version SVN-r8466, Copyright (c) 2000-2007 Fabrice Bellard, et 
al.
  configuration:
  libavutil version: 49.4.0
  libavcodec version: 51.40.0
  libavformat version: 51.11.0
  built on Sep 21 2007 23:56:03, gcc: 4.1.2 (Ubuntu 4.1.2-0ubuntu4)

Program received signal SIGSEGV, Segmentation fault.
0x080ab714 in nsv_read_chunk (s=0x857f940, fill_header=1) at 
nsvdec.c:612
612         ((NSVStream*)st[NSV_ST_VIDEO]->priv_data)->frame_offset++;

(gdb) bt
#0  0x080ab714 in nsv_read_chunk (s=0x857f940, fill_header=1) at 
nsvdec.c:612
#1  0x080abd31 in nsv_read_header (s=0x857f940, ap=0xbfa5925c) at 
nsvdec.c:527
#2  0x08066b6f in av_open_input_stream (ic_ptr=0xbfa59294, 
pb=0xbfa58d80,
    
filename=0xbfa5b8d8 "/media/sda9/samples/nsv/nsv_samples/ot171_novideo.nsv", 
fmt=0x8480be0, ap=0xbfa5925c) at utils.c:363
#3  0x0806b3ef in av_open_input_file (ic_ptr=0xbfa59294, 
filename=0xbfa5b8d8 "/media/sda9/samples/nsv/nsv_samples/ot171_novideo.nsv",
    fmt=<value optimized out>, buf_size=0, ap=0xbfa5925c) at 
utils.c:465
#4  0x0805a4a3 in opt_input_file 
(filename=0xbfa5b8d8 "/media/sda9/samples/nsv/nsv_samples/ot171_novideo.nsv") 
at ffmpeg.c:2537
#5  0x08063095 in parse_options (argc=3, argv=0xbfa599d4, 
options=0x83d73c0) at cmdutils.c:105
#6  0x08060e94 in main (argc=3, argv=0xbfa599d4) at ffmpeg.c:3762

disass $pc-32 $pc+32
Dump of assembler code from 0x80ab6f4 to 0x80ab734:
0x080ab6f4 <nsv_read_chunk+580>:        (bad)
0x080ab6f5 <nsv_read_chunk+581>:        je     0x80ab701 
<nsv_read_chunk+593>
0x080ab6f7 <nsv_read_chunk+583>:        mov    0x4(%edx),%eax
0x080ab6fa <nsv_read_chunk+586>:        mov    %edx,0x88(%esp,%eax,4)
0x080ab701 <nsv_read_chunk+593>:        mov    0x70(%esp),%eax
0x080ab705 <nsv_read_chunk+597>:        test   %eax,%eax
0x080ab707 <nsv_read_chunk+599>:        jne    0x80ab797 
<nsv_read_chunk+743>
0x080ab70d <nsv_read_chunk+605>:        mov    0x88(%esp),%ecx
0x080ab714 <nsv_read_chunk+612>:        mov    0x14(%ecx),%eax
0x080ab717 <nsv_read_chunk+615>:        mov    %ecx,0x3c(%esp)
0x080ab71b <nsv_read_chunk+619>:        addl   $0x1,(%eax)
0x080ab71e <nsv_read_chunk+622>:        cmpw   $0x0,0x60(%esp)
0x080ab724 <nsv_read_chunk+628>:        je     0x80ab789 
<nsv_read_chunk+729>
0x080ab726 <nsv_read_chunk+630>:        mov    0x8c(%esp),%esi
0x080ab72d <nsv_read_chunk+637>:        lea    0x48(%ebp),%edx
0x080ab730 <nsv_read_chunk+640>:        mov    %edx,0x48(%esp)
End of assembler dump.

info all-registers
eax            0x0      0
ecx            0x0      0
edx            0x0      0
ebx            0x857f950        139983184
esp            0xbfa58be0       0xbfa58be0
ebp            0x85889b0        0x85889b0
esi            0x857f940        139983168
edi            0x0      0
eip            0x80ab714        0x80ab714 <nsv_read_chunk+612>
eflags         0x210246 [ PF ZF IF RF ID ]
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x33     51
st0            0        (raw 0x00000000000000000000)
st1            0        (raw 0x00000000000000000000)
st2            0        (raw 0x00000000000000000000)
st3            0        (raw 0x00000000000000000000)
st4            0        (raw 0x00000000000000000000)
st5            0        (raw 0x00000000000000000000)
st6            1        (raw 0x3fff8000000000000000)
st7            1        (raw 0x3fff8000000000000000)
fctrl          0x37f    895
fstat          0x4020   16416
ftag           0xffff   65535
fiseg          0x73     115
fioff          0x821a9cb        136423883
foseg          0x7b     123
fooff          0xbfa58bac       -1079669844
fop            0x35c    860
xmm0           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 
0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 
0x0,
    0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = 
{0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 
0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 
0x0,
    0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = 
{0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 
0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 
0x0,
    0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = 
{0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 
0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 
0x0,
    0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = 
{0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 
0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 
0x0,
    0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = 
{0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 
0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 
0x0,
    0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = 
{0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 
0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 
0x0,
    0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = 
{0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 
0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 
0x0,
    0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = 
{0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
mxcsr          0x1f80   [ IM DM ZM OM UM PM ]
mm0            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm1            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm2            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm3            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm4            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm5            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm6            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 
0x80000000}, v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 
0x0, 0x0,
    0x0, 0x0, 0x0, 0x80}}
mm7            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 
0x80000000}, v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 
0x0, 0x0,
    0x0, 0x0, 0x0, 0x80}}

----------
messages: 645
nosy: zakulec
priority: minor
status: new
substatus: new
title: ot171_novideo.nsv broke after r8465
type: bug

______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue179>
______________________________________________________

Reply via email to