[Bug c/41311] [4.5 regression] FFmpeg crashes when converting mpg to avi
--- Comment #9 from nospamname at web dot de 2009-09-09 14:54 --- ratecontrol.c line 624 cause crash in my source.assert is done by this command(should be fbngt) FBNLT _ff_rate_estimate_qscale+$716 ;118F015C q= get_qscale(s, rce, rate_factor, picture_number); printf(%f\n,q); // (is 613.928) if (q 0) return -1; TRAP assert(q0.0); the TRAP command is a define to jump in debugger with trap #0.i notice it seem break the peephole detect and so GCC 4.5.0 produce working code when trap is in.see the FBNGT _ff_rate_estimate_qscale+$71A.thats correct and ffmpeg work. on 2. asm snippet that do not work its. and the assert is execute FMOVE.D (A7)+,FP0 FMOVE.S FP0,D4 FMOVE.S D4,FP4 FMOVE.D FP4,-(A7) PEA _ff_get_2pass_fcode+$24(PC) ; JSR _printf ;11A1563C LEA $20(A7),A7 FTST.S D4 FBLT_ff_rate_estimate_qscale+$5D4 TRAP#0 FTST.S D4 FBNGT _ff_rate_estimate_qscale+$71A FMOVE.D FP4,-(A7) MOVE.L A3,-(A7) MOVE.L A2,-(A7) without this asm command trap #0 the asm code that fail. MOVE.L D1,-(A7) MOVE.L D0,-(A7) FMOVE.D (A7)+,FP0 FMOVE.S FP0,D4 FMOVE.S D4,FP4 FMOVE.D FP4,-(A7) PEA _ff_get_2pass_fcode+$24(PC) ;118EF9E8 JSR _printf ;11A15638 LEA $20(A7),A7 FTST.S D4 FBLT_ff_rate_estimate_qscale+$5D0 ;118F0016 FBNLT _ff_rate_estimate_qscale+$716 ;118F015C FMOVE.D FP4,-(A7) MOVE.L A3,-(A7) MOVE.L A2,-(A7) JSR _ff_rac_terminate+$19E(PC) ;118ECF6C MOVE.L D1,-(A7) MOVE.L D0,-(A7) FMOVE.D (A7)+,FP1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41311
[Bug c/41311] [4.5 regression] FFmpeg crashes when converting mpg to avi
--- Comment #1 from ami_stuff at o2 dot pl 2009-09-08 18:06 --- Created an attachment (id=18543) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18543action=view) preprocessed file GCC 4.4.2 -O1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41311
[Bug c/41311] [4.5 regression] FFmpeg crashes when converting mpg to avi
--- Comment #2 from ami_stuff at o2 dot pl 2009-09-08 18:07 --- Created an attachment (id=18544) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18544action=view) asm output GCC 4.4.2 -O1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41311
[Bug c/41311] [4.5 regression] FFmpeg crashes when converting mpg to avi
--- Comment #3 from ami_stuff at o2 dot pl 2009-09-08 18:08 --- Created an attachment (id=18545) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18545action=view) preprocessed file GCC 4.5.0 -O0 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41311
[Bug c/41311] [4.5 regression] FFmpeg crashes when converting mpg to avi
--- Comment #4 from ami_stuff at o2 dot pl 2009-09-08 18:09 --- Created an attachment (id=18546) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18546action=view) asm output GCC 4.5.0 -O0 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41311
[Bug c/41311] [4.5 regression] FFmpeg crashes when converting mpg to avi
--- Comment #5 from ami_stuff at o2 dot pl 2009-09-08 18:10 --- Created an attachment (id=18547) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18547action=view) preprocessed file GCC 4.5.0 -O1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41311
[Bug c/41311] [4.5 regression] FFmpeg crashes when converting mpg to avi
--- Comment #6 from ami_stuff at o2 dot pl 2009-09-08 18:11 --- Created an attachment (id=18548) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18548action=view) asm output GCC 4.5.0 -O1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41311
[Bug c/41311] [4.5 regression] FFmpeg crashes when converting mpg to avi
--- Comment #7 from schwab at linux-m68k dot org 2009-09-08 18:16 --- Fix all the warnings first then try again. -- schwab at linux-m68k dot org changed: What|Removed |Added Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41311
[Bug c/41311] [4.5 regression] FFmpeg crashes when converting mpg to avi
--- Comment #8 from ami_stuff at o2 dot pl 2009-09-08 18:36 --- I don't know how to do it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41311