Opened 13 years ago

Closed 12 years ago

#660 closed defect (later)

mencoder: Segmentation fault on Dual Core AMD Opteron(tm) Processor 285 (Family: 15, Model: 33, Stepping: 2)

Reported by: nick@… Owned by: reimar
Priority: normal Component: core
Version: unspecified Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

MEncoder dev-SVN-r21384-4.0.3 on Ubuntu Linux 6.01.1
I catch a segfault while encoding TS to FLV on my Dual Core AMD Opteron host.
(sample 1)
The same command line (such as binary built from same Subversion source code)
are valid for Pentium 4 host.
Also if i run mencoder from valgrind, CPU detected as
CPU: Intel Pentium 4/Celeron 4 Northwood; Pentium 4 EE/Xeon Prestonia,Gallatin
(Family: 15, Model: 2, Stepping: 7)
and encoding successfully complete (sample 2)
I recompile source code with -g -fomit-frame-pointer params, so guess than
valgrind output would be helpful

Sample 1:

fnm@voodle-ci:/usr/local/src$ /usr/local/bin/mencoder
./dvb.Bloomberg_European_TV.20061123193659.000005.ts -o ./output.flv -of lavf
-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames:format=flv -oac
mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts
vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050
MEncoder dev-SVN-r21384-4.0.3 (C) 2000-2006 MPlayer Team
CPU: Dual Core AMD Opteron(tm) Processor 285 (Family: 15, Model: 33, Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

success: format: 0 data: 0x0 - 0x1fe000
TS file format detected.
VIDEO MPEG2(pid=1360) AUDIO MPA(pid=1320) NO SUBS (yet)! PROGRAM N. 3
VIDEO: MPEG2 704x576 (aspect 2) 25.000 fps 3500.0 kbps (437.5 kbyte/s)
[V] filefmt:29 fourcc:0x10000002 size:704x576 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
MUXER_LAVF *
You have certified that your video stream does not contain B frames.
REMEMBER: MEncoder's libavformat muxing is presently broken and will generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 704 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
MP3 audio selected.
Segmentation fault

Sample 2:

fnm@voodle-ci:/usr/local/src$ valgrind --leak-check=full --show-reachable=yes
/usr/local/bin/mencoder ./dvb.Bloomberg_European_TV.20061123193659.000005.ts -o
./output.flv -of lavf -lavfopts
i_certify_that_my_video_stream_does_not_use_b_frames:format=flv -oac mp3lame
-lameopts abr:br=56 -ovc lavc -lavcopts
vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050
==11341== Memcheck, a memory error detector.
==11341== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==11341== Using LibVEX rev 1471, a library for dynamic binary translation.
==11341== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks? LLP.
==11341== Using valgrind-3.1.0-Debian, a dynamic binary instrumentation framework.
==11341== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==11341== For more details, rerun with: -v
==11341==
MEncoder dev-SVN-r21384-4.0.3 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium 4/Celeron 4 Northwood; Pentium 4 EE/Xeon Prestonia,Gallatin
(Family: 15, Model: 2, Stepping: 7)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

success: format: 0 data: 0x0 - 0x1fe000
TS file format detected.
==11341== Source and destination overlap in memcpy(0xBEA22258, 0xBEA22258, 176)
==11341== at 0x401E35B: memcpy (mac_replace_strmem.c:394)
==11341== by 0x817AEBF: ts_parse (demux_ts.c:2993)
VIDEO MPEG2(pid=1360) AUDIO MPA(pid=1320) NO SUBS (yet)! PROGRAM N. 3
==11341==
==11341== Conditional jump or move depends on uninitialised value(s)
==11341== at 0x8179C66: ts_parse (demux_ts.c:2717)
==11341==
==11341== Conditional jump or move depends on uninitialised value(s)
==11341== at 0x8179C72: ts_parse (demux_ts.c:2717)
==11341==
==11341== Conditional jump or move depends on uninitialised value(s)
==11341== at 0x8179C7E: ts_parse (demux_ts.c:2717)
==11341==
==11341== Conditional jump or move depends on uninitialised value(s)
==11341== at 0x8179C8A: ts_parse (demux_ts.c:2717)
==11341==
==11341== Conditional jump or move depends on uninitialised value(s)
==11341== at 0x8179BE8: ts_parse (demux_ts.c:2701)
==11341==
==11341== Conditional jump or move depends on uninitialised value(s)
==11341== at 0x8179BF3: ts_parse (demux_ts.c:2701)
==11341==
==11341== Conditional jump or move depends on uninitialised value(s)
==11341== at 0x8179BFE: ts_parse (demux_ts.c:2701)
==11341==
==11341== Conditional jump or move depends on uninitialised value(s)
==11341== at 0x8179C09: ts_parse (demux_ts.c:2701)
==11341==
==11341== Conditional jump or move depends on uninitialised value(s)
==11341== at 0x8179C14: ts_parse (demux_ts.c:2701)
VIDEO: MPEG2 704x576 (aspect 2) 25.000 fps 3500.0 kbps (437.5 kbyte/s)
[V] filefmt:29 fourcc:0x10000002 size:704x576 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
MUXER_LAVF *
You have certified that your video stream does not contain B frames.
REMEMBER: MEncoder's libavformat muxing is presently broken and will generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 704 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
MP3 audio selected.
VDec: vo config request - 704 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (704x576 fourcc=31564c46 [FLV1])
[VE_LAVC] High quality encoding selected (non-realtime)!
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
VIDEO CODEC ID: 22f (13%) 0.57fps Trem: 0min 0mb A-V:-0.004 [0:0]
AUDIO CODEC ID: 15001, TAG: 0
Writing header...

1 duplicate frame(s)!
Pos: 0.8s 22f (33%) 0.71fps Trem: 1min 0mb A-V:-0.084 [0:58]
1 duplicate frame(s)!
Pos: 1.3s 32f (42%) 0.71fps Trem: 1min 0mb A-V:-0.084 [1320:59]
1 duplicate frame(s)!
Pos: 1.7s 42f (53%) 0.71fps Trem: 0min 0mb A-V:-0.084 [1082:59]
1 duplicate frame(s)!
Pos: 2.2s 52f (64%) 0.71fps Trem: 0min 0mb A-V:-0.084 [939:59]]
1 duplicate frame(s)!
Pos: 2.6s 62f (73%) 0.71fps Trem: 0min 0mb A-V:-0.084 [846:59]
1 duplicate frame(s)!
Pos: 3.0s 72f (84%) 0.71fps Trem: 0min 0mb A-V:-0.084 [786:59]
1 duplicate frame(s)!
Pos: 3.5s 82f (93%) 0.71fps Trem: 0min 0mb A-V:-0.084 [743:59]
1 duplicate frame(s)!
Pos: 3.8s 88f (99%) 0.70fps Trem: 0min 0mb A-V:-0.068 [751:59]
Broken frame at 0x19500
Pos: 3.9s 92f (100%) 0.70fps Trem: 0min 0mb A-V:-0.084 [737:59]
1 duplicate frame(s)!
Pos: 4.1s 96f (100%) 0.70fps Trem: 0min 0mb A-V:-0.060 [721:59]
Flushing video frames.
Writing index...

Video stream: 721.882 kbit/s (90235 B/s) size: 371769 bytes 4.120 secs 96
frames

Audio stream: 59.704 kbit/s (7462 B/s) size: 31777 bytes 4.258 secs
==11341==
==11341== ERROR SUMMARY: 63757 errors from 10 contexts (suppressed: 63 from 1)
==11341== malloc/free: in use at exit: 5,646,940 bytes in 3,306 blocks.
==11341== malloc/free: 7,480 allocs, 4,174 frees, 45,763,663 bytes allocated.
==11341== For counts of detected errors, rerun with: -v
==11341== searching for pointers to 3,306 not-freed blocks.
==11341== checked 4,328,080 bytes.
==11341==
==11341==
==11341== 0 bytes in 1 blocks are still reachable in loss record 1 of 68
==11341== at 0x401D970: memalign (vg_replace_malloc.c:332)
==11341== by 0x81E2F09: alloc_buf (sub.c:135)
==11341==
==11341==
==11341== 0 bytes in 1 blocks are still reachable in loss record 2 of 68
==11341== at 0x401D970: memalign (vg_replace_malloc.c:332)
==11341== by 0x81E2EF3: alloc_buf (sub.c:134)
==11341==
==11341==
==11341== 8 bytes in 1 blocks are still reachable in loss record 3 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x413298B: lame_init_params (in /usr/lib/libmp3lame.so.0.0.0)
==11341== by 0x80B92B8: mpae_init_lame (ae_lame.c:190)
==11341==
==11341==
==11341== 8 bytes in 1 blocks are still reachable in loss record 4 of 68
==11341== at 0x401D89D: realloc (vg_replace_malloc.c:306)
==11341== by 0x433EC36: (within /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x433F0EF: FT_Realloc (in /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x43445CF: FT_CMap_New (in /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x4388BE6: (within /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x4342895: (within /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x4343244: FT_Open_Face (in /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x4343CB2: FT_New_Memory_Face (in /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x81E8E75: read_font_desc_ft (font_load_ft.c:932)
==11341==
==11341==
==11341== 16 bytes in 1 blocks are still reachable in loss record 5 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x433EE78: FT_New_Memory (in /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x433EF30: FT_Init_FreeType (in /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x81E82FE: init_freetype (font_load_ft.c:1112)
==11341== by 0x46AD31E: libc_start_main (libc-start.c:237)
==11341==
==11341==
==11341== 16 bytes in 1 blocks are indirectly lost in loss record 6 of 68
==11341== at 0x401D89D: realloc (vg_replace_malloc.c:306)
==11341== by 0x80AE5AD: m_config_parse_me_command_line (parser-mecmd.c:118)
==11341==
==11341==
==11341== 24 bytes in 2 blocks are still reachable in loss record 7 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x80C2E64: lavf_new_stream (muxer_lavf.c:145)
==11341==
==11341==
==11341== 88 bytes in 1 blocks are definitely lost in loss record 8 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x80B09B5: new_audio_encoder (ae.c:43)
==11341== by 0x46AD31E:
libc_start_main (libc-start.c:237)
==11341==
==11341==
==11341== 96 bytes in 1 blocks are still reachable in loss record 9 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x80C3684: muxer_init_muxer_lavf (muxer_lavf.c:335)
==11341== by 0x46AD31E: libc_start_main (libc-start.c:237)
==11341==
==11341==
==11341== 212 (20 direct, 192 indirect) bytes in 1 blocks are definitely lost in
loss record 10 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x80B1C14: vf_open (ve_lavc.c:900)
==11341==
==11341==
==11341== 24 bytes in 1 blocks are still reachable in loss record 11 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x80917CB: m_config_new (m_config.c:50)
==11341== by 0x46AD31E:
libc_start_main (libc-start.c:237)
==11341==
==11341==
==11341== 24 bytes in 2 blocks are still reachable in loss record 12 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x40D9062: rwlock_have_already (rwlock.c:95)
==11341== by 0x40D9152: pthread_rwlock_rdlock (rwlock.c:265)
==11341== by 0x46BBB5E: dcigettext (dcigettext.c:423)
==11341== by 0x46BB2F6: dcgettext (dcgettext.c:53)
==11341== by 0x46FF204: strerror_r (_strerror.c:64)
==11341== by 0x46FF074: strerror (strerror.c:33)
==11341== by 0x808EF1B: parse_codec_cfg (codec-cfg.c:517)
==11341==
==11341==
==11341== 30 bytes in 1 blocks are still reachable in loss record 13 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x80B8CA9: bind_lame (ae_lame.c:81)
==11341== by 0x46AD31E:
libc_start_main (libc-start.c:237)
==11341==
==11341==
==11341== 40 bytes in 1 blocks are definitely lost in loss record 14 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x8096B16: m_struct_alloc (m_struct.c:42)
==11341==
==11341==
==11341== 40 bytes in 1 blocks are still reachable in loss record 15 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x80B1DE0: vf_open (ve_lavc.c:941)
==11341==
==11341==
==11341== 65 bytes in 2 blocks are definitely lost in loss record 16 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x8087649: get_path (get_path.c:60)
==11341== by 0x46AD31E: libc_start_main (libc-start.c:237)
==11341==
==11341==
==11341== 80 bytes in 1 blocks are still reachable in loss record 17 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x46ADF33:
gconv_open (gconv_open.c:195)
==11341== by 0x46ADB57: iconv_open (iconv_open.c:54)
==11341== by 0x808C519: mp_msg (mp_msg.c:91)
==11341==
==11341==
==11341== 97 (16 direct, 81 indirect) bytes in 1 blocks are definitely lost in
loss record 18 of 68
==11341== at 0x401D89D: realloc (vg_replace_malloc.c:306)
==11341== by 0x80AE3B8: m_config_parse_me_command_line (parser-mecmd.c:131)
==11341==
==11341==
==11341== 20 bytes in 1 blocks are still reachable in loss record 19 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E90D6: read_font_desc_ft (font_load_ft.c:676)
==11341==
==11341==
==11341== 48 bytes in 1 blocks are still reachable in loss record 20 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E847E: prepare_font (font_load_ft.c:623)
==11341==
==11341==
==11341== 48 bytes in 1 blocks are still reachable in loss record 21 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E8451: prepare_font (font_load_ft.c:621)
==11341==
==11341==
==11341== 65 bytes in 3 blocks are indirectly lost in loss record 22 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x46FEFAE: strdup (strdup.c:43)
==11341== by 0x80AE3C7: m_config_parse_me_command_line (parser-mecmd.c:132)
==11341==
==11341==
==11341== 100 bytes in 1 blocks are still reachable in loss record 23 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E911F: read_font_desc_ft (font_load_ft.c:682)
==11341==
==11341==
==11341== 136 bytes in 2 blocks are definitely lost in loss record 24 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x8177734: parse_pmt (demux_ts.c:2036)
==11341==
==11341==
==11341== 144 bytes in 1 blocks are still reachable in loss record 25 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x809181C: m_config_new (m_config.c:58)
==11341==
==11341==
==11341== 204 bytes in 3 blocks are definitely lost in loss record 26 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x8179146: ts_parse (demux_ts.c:2036)
==11341==
==11341==
==11341== 204 bytes in 2 blocks are indirectly lost in loss record 27 of 68
==11341== at 0x401D970: memalign (vg_replace_malloc.c:332)
==11341== by 0x84E2C24: av_malloc (mem.c:66)
==11341==
==11341==
==11341== 216 bytes in 1 blocks are still reachable in loss record 28 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x80B978D: muxer_new_muxer (muxer.c:22)
==11341== by 0x46AD31E: libc_start_main (libc-start.c:237)
==11341==
==11341==
==11341== 268 bytes in 1 blocks are still reachable in loss record 29 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x809DC1B: spudec_new_scaled (spudec.c:1126)
==11341== by 0x46AD31E:
libc_start_main (libc-start.c:237)
==11341==
==11341==
==11341== 272 bytes in 1 blocks are still reachable in loss record 30 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x413295F: lame_init_params (in /usr/lib/libmp3lame.so.0.0.0)
==11341== by 0x80B92B8: mpae_init_lame (ae_lame.c:190)
==11341==
==11341==
==11341== 352 bytes in 2 blocks are still reachable in loss record 31 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x80C2E12: lavf_new_stream (muxer_lavf.c:127)
==11341==
==11341==
==11341== 410 bytes in 58 blocks are still reachable in loss record 32 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x46FEFAE: strdup (strdup.c:43)
==11341== by 0x808C52B: mp_msg (mp_msg.c:92)
==11341==
==11341==
==11341== 520 bytes in 1 blocks are still reachable in loss record 33 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x4134C99: lame_init (in /usr/lib/libmp3lame.so.0.0.0)
==11341== by 0x80B8F4E: mpae_init_lame (ae_lame.c:158)
==11341==
==11341==
==11341== 768 bytes in 1 blocks are still reachable in loss record 34 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E84FD: prepare_font (font_load_ft.c:635)
==11341==
==11341==
==11341== 768 bytes in 1 blocks are still reachable in loss record 35 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E84B0: prepare_font (font_load_ft.c:631)
==11341==
==11341==
==11341== 1,668 (1,656 direct, 12 indirect) bytes in 2 blocks are definitely
lost in loss record 36 of 68
==11341== at 0x401D970: memalign (vg_replace_malloc.c:332)
==11341== by 0x84E2C24: av_malloc (mem.c:66)
==11341==
==11341==
==11341== 2,304 bytes in 1 blocks are possibly lost in loss record 37 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x80B0A20: new_audio_encoder (ae.c:88)
==11341== by 0x46AD31E: libc_start_main (libc-start.c:237)
==11341==
==11341==
==11341== 2,308 bytes in 1 blocks are definitely lost in loss record 38 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81229DE: af_resize_local_buffer (af.c:629)
==11341== by 0x8122550: af_play (af.c:513)
==11341==
==11341==
==11341== 2,516 bytes in 1 blocks are still reachable in loss record 39 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x41329B7: lame_init_params (in /usr/lib/libmp3lame.so.0.0.0)
==11341== by 0x80B92B8: mpae_init_lame (ae_lame.c:190)
==11341==
==11341==
==11341== 2,582 bytes in 1 blocks are definitely lost in loss record 40 of 68
==11341== at 0x401D89D: realloc (vg_replace_malloc.c:306)
==11341== by 0x812F899: play (af_lavcresample.c:114)
==11341== by 0x8122550: af_play (af.c:513)
==11341==
==11341==
==11341== 2,582 bytes in 1 blocks are possibly lost in loss record 41 of 68
==11341== at 0x401D89D: realloc (vg_replace_malloc.c:306)
==11341== by 0x812F899: play (af_lavcresample.c:114)
==11341== by 0x8122550: af_play (af.c:513)
==11341==
==11341==
==11341== 3,928 bytes in 20 blocks are definitely lost in loss record 42 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x80B98EE: muxer_write_chunk (muxer.c:85)
==11341==
==11341==
==11341== 4,096 bytes in 2 blocks are still reachable in loss record 43 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x80C2E2F: lavf_new_stream (muxer_lavf.c:134)
==11341==
==11341==
==11341== 4,492 bytes in 2 blocks are still reachable in loss record 44 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x413FC42: (within /usr/lib/libmp3lame.so.0.0.0)
==11341== by 0x41405F0: psymodel_init (in /usr/lib/libmp3lame.so.0.0.0)
==11341== by 0x4132218: lame_init_params (in /usr/lib/libmp3lame.so.0.0.0)
==11341== by 0x80B92B8: mpae_init_lame (ae_lame.c:190)
==11341==
==11341==
==11341== 5,120 bytes in 1 blocks are still reachable in loss record 45 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E90ED: read_font_desc_ft (font_load_ft.c:677)
==11341==
==11341==
==11341== 6,128 bytes in 518 blocks are still reachable in loss record 46 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x8091214: m_config_add_option (m_config.c:238)
==11341==
==11341==
==11341== 6,128 bytes in 518 blocks are still reachable in loss record 47 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x809118A: m_config_add_option (m_config.c:228)
==11341==
==11341==
==11341== 6,400 bytes in 1 blocks are still reachable in loss record 48 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E9136: read_font_desc_ft (font_load_ft.c:683)
==11341==
==11341==
==11341== 6,548 bytes in 1 blocks are still reachable in loss record 49 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E3340: vo_init_osd (sub.c:790)
==11341== by 0x46AD31E:
libc_start_main (libc-start.c:237)
==11341==
==11341==
==11341== 6,548 bytes in 1 blocks are still reachable in loss record 50 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E329E: vo_init_osd (sub.c:790)
==11341== by 0x46AD31E: libc_start_main (libc-start.c:237)
==11341==
==11341==
==11341== 6,548 bytes in 1 blocks are still reachable in loss record 51 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E31F9: vo_init_osd (sub.c:790)
==11341== by 0x46AD31E:
libc_start_main (libc-start.c:237)
==11341==
==11341==
==11341== 6,548 bytes in 1 blocks are still reachable in loss record 52 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E32EF: vo_init_osd (sub.c:790)
==11341== by 0x46AD31E: libc_start_main (libc-start.c:237)
==11341==
==11341==
==11341== 6,548 bytes in 1 blocks are still reachable in loss record 53 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E324A: vo_init_osd (sub.c:790)
==11341== by 0x46AD31E:
libc_start_main (libc-start.c:237)
==11341==
==11341==
==11341== 6,891 bytes in 422 blocks are still reachable in loss record 54 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x809127A: m_config_add_option (m_config.c:201)
==11341==
==11341==
==11341== 7,150 bytes in 1 blocks are still reachable in loss record 55 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E914F: read_font_desc_ft (font_load_ft.c:686)
==11341==
==11341==
==11341== 11,752 bytes in 994 blocks are still reachable in loss record 56 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x8092356: m_config_push (m_config.c:136)
==11341==
==11341==
==11341== 15,168 bytes in 637 blocks are still reachable in loss record 57 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x80910D5: m_config_add_option (m_config.c:196)
==11341==
==11341==
==11341== 16,384 bytes in 1 blocks are still reachable in loss record 58 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x4128362: init_bit_stream_w (in /usr/lib/libmp3lame.so.0.0.0)
==11341== by 0x4131AF9: lame_init_params (in /usr/lib/libmp3lame.so.0.0.0)
==11341== by 0x80B92B8: mpae_init_lame (ae_lame.c:190)
==11341==
==11341==
==11341== 32,640 bytes in 1 blocks are still reachable in loss record 59 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x46AE01E: gconv_open (gconv_open.c:282)
==11341== by 0x46ADB57: iconv_open (iconv_open.c:54)
==11341== by 0x808C519: mp_msg (mp_msg.c:91)
==11341==
==11341==
==11341== 33,321 bytes in 65 blocks are still reachable in loss record 60 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x433EC0C: (within /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x433EFEB: FT_Alloc (in /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x4369B79: (within /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x438793A: (within /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x438877A: (within /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x4342895: (within /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x4343244: FT_Open_Face (in /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x4343CB2: FT_New_Memory_Face (in /usr/lib/libfreetype.so.6.3.8)
==11341== by 0x81E8E75: read_font_desc_ft (font_load_ft.c:932)
==11341==
==11341==
==11341== 65,552 bytes in 2 blocks are still reachable in loss record 61 of 68
==11341== at 0x401D970: memalign (vg_replace_malloc.c:332)
==11341== by 0x84E2CD6: av_mallocz (mem.c:66)
==11341==
==11341==
==11341== 81,572 bytes in 1 blocks are possibly lost in loss record 62 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x80B98EE: muxer_write_chunk (muxer.c:85)
==11341==
==11341==
==11341== 134,792 bytes in 1 blocks are still reachable in loss record 63 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x4132933: lame_init_params (in /usr/lib/libmp3lame.so.0.0.0)
==11341== by 0x80B92B8: mpae_init_lame (ae_lame.c:190)
==11341==
==11341==
==11341== 172,580 bytes in 1 blocks are still reachable in loss record 64 of 68
==11341== at 0x401D7AA: calloc (vg_replace_malloc.c:279)
==11341== by 0x4134D16: lame_init_old (in /usr/lib/libmp3lame.so.0.0.0)
==11341== by 0x4134CA9: lame_init (in /usr/lib/libmp3lame.so.0.0.0)
==11341== by 0x80B8F4E: mpae_init_lame (ae_lame.c:158)
==11341==
==11341==
==11341== 786,708 bytes in 1 blocks are still reachable in loss record 65 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x81E8C09: read_font_desc_ft (font_load_ft.c:841)
==11341==
==11341==
==11341== 1,048,576 bytes in 1 blocks are still reachable in loss record 66 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x808878C: main (mencoder.c:897)
==11341==
==11341==
==11341== 1,048,584 bytes in 1 blocks are still reachable in loss record 67 of 68
==11341== at 0x401D970: memalign (vg_replace_malloc.c:332)
==11341== by 0x818A311: video_read_properties (video.c:298)
==11341==
==11341==
==11341== 2,097,152 bytes in 1 blocks are still reachable in loss record 68 of 68
==11341== at 0x401C422: malloc (vg_replace_malloc.c:149)
==11341== by 0x808856F: main (mencoder.c:743)
==11341==
==11341== LEAK SUMMARY:
==11341== definitely lost: 11,043 bytes in 35 blocks.
==11341== indirectly lost: 285 bytes in 6 blocks.
==11341== possibly lost: 86,458 bytes in 3 blocks.
==11341== still reachable: 5,549,154 bytes in 3,262 blocks.
==11341== suppressed: 0 bytes in 0 blocks.

Change History (5)

comment:1 Changed 13 years ago by reimar

Use gdb if valgrind does not work. And try -demuxer lavf and -ac ffmp3.

comment:2 Changed 13 years ago by nick@…

(In reply to comment #1)

And try -demuxer lavf and -ac ffmp3.

Ok, I set: -demuxer lavf -oac faac -ac ffmp3
and remove: -oac mp3lame -lameopts abr:br=56
and got another FPE

fnm@voodle-ci:/usr/local/src$ /usr/local/bin/mencoder
./dvb.Bloomberg_European_TV.20061123193659.000005.ts -o ./output.flv -of lavf
-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames:format=flv -ovc
lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
-srate 22050 -demuxer lavf -oac faac -ac ffmp3
MEncoder dev-SVN-r21384-4.0.3 (C) 2000-2006 MPlayer Team
CPU: Dual Core AMD Opteron(tm) Processor 285 (Family: 15, Model: 33, Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

success: format: 0 data: 0x0 - 0x1fe000
libavformat file format detected.
VIDEO: [mpg2] 704x576 0bpp 25.000 fps 3500.0 kbps (427.2 kbyte/s)
[V] filefmt:35 fourcc:0x3267706D size:704x576 fps:25.00 ftime:=0.0400
==========================================================================
Forced audio codec: ffmp3
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [ffmp3] afm: ffmpeg (FFmpeg MPEG layer-3 audio decoder)
==========================================================================
MUXER_LAVF *
You have certified that your video stream does not contain B frames.
REMEMBER: MEncoder's libavformat muxing is presently broken and will generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Pos: 0.0s 2f (17%) 0.00fps Trem: 0min 0mb A-V:-0.004 [0:0]
1 duplicate frame(s)!
VIDEO CODEC ID: 22
AUDIO CODEC ID: 15002, TAG: 0
Writing header...
[flv @ 0x85d0980]dimensions not set
Floating point exception

VALGRIND: Integer divide by zero!
fnm@voodle-ci:/usr/local/src$ valgrind --leak-check=full /usr/local/bin/mencoder
./dvb.Bloomberg_European_TV.20061123193659.000005.ts -o ./output.flv -of lavf
-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames:format=flv -ovc
lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
-srate 22050 -demuxer lavf -oac faac -ac ffmp3
==17727== Memcheck, a memory error detector.
==17727== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==17727== Using LibVEX rev 1471, a library for dynamic binary translation.
==17727== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks? LLP.
==17727== Using valgrind-3.1.0-Debian, a dynamic binary instrumentation framework.
==17727== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==17727== For more details, rerun with: -v
==17727==
MEncoder dev-SVN-r21384-4.0.3 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium 4/Celeron 4 Northwood; Pentium 4 EE/Xeon Prestonia,Gallatin
(Family: 15, Model: 2, Stepping: 7)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

success: format: 0 data: 0x0 - 0x1fe000
libavformat file format detected.
VIDEO: [mpg2] 704x576 0bpp 25.000 fps 3500.0 kbps (427.2 kbyte/s)
[V] filefmt:35 fourcc:0x3267706D size:704x576 fps:25.00 ftime:=0.0400
==========================================================================
Forced audio codec: ffmp3
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [ffmp3] afm: ffmpeg (FFmpeg MPEG layer-3 audio decoder)
==========================================================================
MUXER_LAVF *
You have certified that your video stream does not contain B frames.
REMEMBER: MEncoder's libavformat muxing is presently broken and will generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Pos: 0.0s 2f (17%) 1.24fps Trem: 0min 0mb A-V:-0.004 [0:0]
1 duplicate frame(s)!
VIDEO CODEC ID: 22
AUDIO CODEC ID: 15002, TAG: 0
Writing header...
[flv @ 0x85d0980]dimensions not set
==17727==
==17727== Process terminating with default action of signal 8 (SIGFPE)
==17727== Integer divide by zero at address 0x634039E7
==17727== at 0x859DBE8: divdi3 (in /usr/local/bin/mencoder)
==17727== by 0x81ECDBC: compute_pkt_fields2 (utils.c:3104)
==17727==
==17727== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 63 from 1)
==17727== malloc/free: in use at exit: 17,539,240 bytes in 3,541 blocks.
==17727== malloc/free: 16,536 allocs, 12,995 frees, 27,309,799 bytes allocated.
==17727== For counts of detected errors, rerun with: -v
==17727== searching for pointers to 3,541 not-freed blocks.
==17727== checked 16,761,612 bytes.
==17727==
==17727== 65 bytes in 2 blocks are definitely lost in loss record 24 of 104
==17727== at 0x401C422: malloc (vg_replace_malloc.c:149)
==17727== by 0x8087649: get_path (get_path.c:60)
==17727== by 0x46AD31E:
libc_start_main (libc-start.c:237)
==17727==
==17727== LEAK SUMMARY:
==17727== definitely lost: 65 bytes in 2 blocks.
==17727== possibly lost: 0 bytes in 0 blocks.
==17727== still reachable: 17,539,175 bytes in 3,539 blocks.
==17727== suppressed: 0 bytes in 0 blocks.
==17727== Reachable blocks (those to which a pointer was found) are not shown.
==17727== To see them, rerun with: --show-reachable=yes
Floating point exception

What the dimensions should I set?

comment:3 Changed 13 years ago by reimar

* Bug 661 has been marked as a duplicate of this bug. *

comment:4 Changed 13 years ago by nick@…

  • Status changed from new to assigned

(In reply to comment #1)

Use gdb if valgrind does not work. And try -demuxer lavf and -ac ffmp3.

I guess than it's CPU-specific bug.
Anyway I need to convert file using my params.

comment:5 Changed 12 years ago by nick@…

  • Resolution set to later
  • Status changed from assigned to closed

sudo -u nobody ./configure --enable-dynamic-plugins --enable-color-console --enable-runtime-cpudetection --targt=i686

Error: Runtime CPU detection only works for x86, x86-64 and PPC!

Check "" if you do not understand why it failed.

Note: See TracTickets for help on using tickets.