public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/39825]  New: sigsegv compiling ffmpeg svn
@ 2009-04-20 20:31 sergio dot roa at dfki dot de
  2009-04-20 20:34 ` [Bug middle-end/39825] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: sergio dot roa at dfki dot de @ 2009-04-20 20:31 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2372 bytes --]

Trying to compile the last svn ffmpeg version in a powerpc machine with Ubuntu
8.10:

$ uname -a
Linux aliena 2.6.25-2-powerpc #1 Tue Sep 30 14:49:00 UTC 2008 ppc GNU/Linux

$ gcc -v
Using built-in specs.
Target: powerpc-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu12'
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3
--program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-mpfr --disable-softfloat --enable-secureplt
--enable-targets=powerpc-linux,powerpc64-linux --with-cpu=default32
--with-long-double-128 --enable-checking=release --build=powerpc-linux-gnu
--host=powerpc-linux-gnu --target=powerpc-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)

The error is:

gcc -DHAVE_AV_CONFIG_H -I. -I"/home/sergio/ffmpeg" -D_ISOC99_SOURCE
-D_POSIX_C_SOURCE=200112 -std=c99 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-fomit-frame-pointer -maltivec -mabi=altivec -pthread -g
-Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization
-Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings
-Wtype-limits -Wundef -O3 -fno-math-errno -fno-signed-zeros         -c -o
libavcodec/bmp.o libavcodec/bmp.c
libavcodec/bmp.c: In function ‘bmp_decode_frame’:
libavcodec/bmp.c:51: warning: ‘rgb[1]’ may be used uninitialized in this
function
libavcodec/bmp.c:51: warning: ‘rgb[2]’ may be used uninitialized in this
function
libavcodec/bmp.c:307: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.3/README.Bugs> for instructions.
make: *** [libavcodec/bmp.o] Error 1

Using the same gcc version in a 386 Ubuntu 8.10 machine there is no error.


-- 
           Summary: sigsegv compiling ffmpeg svn
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sergio dot roa at dfki dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39825


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/39825] sigsegv compiling ffmpeg svn
  2009-04-20 20:31 [Bug c/39825] New: sigsegv compiling ffmpeg svn sergio dot roa at dfki dot de
@ 2009-04-20 20:34 ` pinskia at gcc dot gnu dot org
  2009-04-21  5:04 ` bje at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-20 20:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
          Component|c                           |middle-end
           Keywords|                            |ice-on-valid-code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39825


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/39825] sigsegv compiling ffmpeg svn
  2009-04-20 20:31 [Bug c/39825] New: sigsegv compiling ffmpeg svn sergio dot roa at dfki dot de
  2009-04-20 20:34 ` [Bug middle-end/39825] " pinskia at gcc dot gnu dot org
@ 2009-04-21  5:04 ` bje at gcc dot gnu dot org
  2009-04-21 12:47 ` sergio dot roa at dfki dot de
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: bje at gcc dot gnu dot org @ 2009-04-21  5:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from bje at gcc dot gnu dot org  2009-04-21 05:03 -------
Thanks for the report.  Could you possibly attach the preprocessed source file
that triggers the internal compiler error?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39825


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/39825] sigsegv compiling ffmpeg svn
  2009-04-20 20:31 [Bug c/39825] New: sigsegv compiling ffmpeg svn sergio dot roa at dfki dot de
  2009-04-20 20:34 ` [Bug middle-end/39825] " pinskia at gcc dot gnu dot org
  2009-04-21  5:04 ` bje at gcc dot gnu dot org
@ 2009-04-21 12:47 ` sergio dot roa at dfki dot de
  2009-04-21 12:58 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: sergio dot roa at dfki dot de @ 2009-04-21 12:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from sergio dot roa at dfki dot de  2009-04-21 12:47 -------
Created an attachment (id=17663)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17663&action=view)
preprocessed source file


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39825


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/39825] sigsegv compiling ffmpeg svn
  2009-04-20 20:31 [Bug c/39825] New: sigsegv compiling ffmpeg svn sergio dot roa at dfki dot de
                   ` (2 preceding siblings ...)
  2009-04-21 12:47 ` sergio dot roa at dfki dot de
@ 2009-04-21 12:58 ` rguenth at gcc dot gnu dot org
  2009-04-21 13:23 ` sergio dot roa at dfki dot de
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-21 12:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-04-21 12:57 -------
Reducing.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39825


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/39825] sigsegv compiling ffmpeg svn
  2009-04-20 20:31 [Bug c/39825] New: sigsegv compiling ffmpeg svn sergio dot roa at dfki dot de
                   ` (3 preceding siblings ...)
  2009-04-21 12:58 ` rguenth at gcc dot gnu dot org
@ 2009-04-21 13:23 ` sergio dot roa at dfki dot de
  2009-04-21 13:55 ` rguenth at gcc dot gnu dot org
  2009-04-21 14:52 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 10+ messages in thread
From: sergio dot roa at dfki dot de @ 2009-04-21 13:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from sergio dot roa at dfki dot de  2009-04-21 13:23 -------
I compiled again disabling Altivec optimizations and it worked :)

$./configure --disable-altivec
[...]
$make
[...]

$ ./ffmpeg
FFmpeg version SVN-r18634, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-postproc --enable-pthreads
--enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora
--enable-libxvid --disable-altivec
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.27. 0 / 52.27. 0
  libavformat   52.32. 0 / 52.32. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Apr 21 2009 15:16:50, gcc: 4.3.2
At least one output file must be specified

I hope there are not so much optimization issues by using this ffmpeg...
Anyway, I guess this bug should be solved...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39825


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/39825] sigsegv compiling ffmpeg svn
  2009-04-20 20:31 [Bug c/39825] New: sigsegv compiling ffmpeg svn sergio dot roa at dfki dot de
                   ` (4 preceding siblings ...)
  2009-04-21 13:23 ` sergio dot roa at dfki dot de
@ 2009-04-21 13:55 ` rguenth at gcc dot gnu dot org
  2009-04-21 14:52 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-21 13:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-04-21 13:55 -------
Reducing very slowly ... which makes it sound like a GC issue.

But, confirmed with the original testcase and a cross-compiler.  Fails on
the 4.3 branch with -O3 -fno-math-errno -maltivec -mabi=altivec -g, works
for me on the trunk.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |4.3.3
      Known to work|                            |4.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2009-04-21 13:55:45
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39825


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/39825] sigsegv compiling ffmpeg svn
  2009-04-20 20:31 [Bug c/39825] New: sigsegv compiling ffmpeg svn sergio dot roa at dfki dot de
                   ` (5 preceding siblings ...)
  2009-04-21 13:55 ` rguenth at gcc dot gnu dot org
@ 2009-04-21 14:52 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-21 14:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-04-21 14:52 -------
Indeed.  Fails with --param ggc-min-expand=100 --param ggc-min-heapsize=131072,
works with --param ggc-min-expand=100 --param ggc-min-heapsize=0.

Didn't we have a ppc GC problem somewhere?  With always-collect we get

./cc1  -quiet -o /dev/null bmp.i -O3 -fno-math-errno -maltivec -mabi=altivec -g
--param ggc-min-expand=0 --param ggc-min-heapsize=0
libavcodec/bmp.c: In function 'bmp_decode_frame':
libavcodec/bmp.c:307: internal compiler error: in tree_node_structure, at
tree.c:2241
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

during collecting of

#17 0x00000000005b8f9c in gt_ggc_mx_VEC_rtx_gc (x_p=0x7ffff36fa000)
    at gtype-desc.c:786
786               gt_ggc_m_7rtx_def ((*x).base.vec[i0]);


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |GC


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39825


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/39825] sigsegv compiling ffmpeg svn
       [not found] <bug-39825-4@http.gcc.gnu.org/bugzilla/>
  2011-12-08 18:57 ` gseanmcg at gmail dot com
@ 2011-12-09  9:11 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-09  9:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39825

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-09 09:09:38 UTC ---
Assuming fixed.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/39825] sigsegv compiling ffmpeg svn
       [not found] <bug-39825-4@http.gcc.gnu.org/bugzilla/>
@ 2011-12-08 18:57 ` gseanmcg at gmail dot com
  2011-12-09  9:11 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 10+ messages in thread
From: gseanmcg at gmail dot com @ 2011-12-08 18:57 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39825

Sean McGovern <gseanmcg at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gseanmcg at gmail dot com

--- Comment #7 from Sean McGovern <gseanmcg at gmail dot com> 2011-12-08 18:55:21 UTC ---
GCC 4.3 has not supported for some time now, and FFMPEG currently builds
successfully on PPC Linux with GCC 4.5 (see http://fate.ffmpeg.org/).

Please close this bug.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-12-09  9:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-20 20:31 [Bug c/39825] New: sigsegv compiling ffmpeg svn sergio dot roa at dfki dot de
2009-04-20 20:34 ` [Bug middle-end/39825] " pinskia at gcc dot gnu dot org
2009-04-21  5:04 ` bje at gcc dot gnu dot org
2009-04-21 12:47 ` sergio dot roa at dfki dot de
2009-04-21 12:58 ` rguenth at gcc dot gnu dot org
2009-04-21 13:23 ` sergio dot roa at dfki dot de
2009-04-21 13:55 ` rguenth at gcc dot gnu dot org
2009-04-21 14:52 ` rguenth at gcc dot gnu dot org
     [not found] <bug-39825-4@http.gcc.gnu.org/bugzilla/>
2011-12-08 18:57 ` gseanmcg at gmail dot com
2011-12-09  9:11 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).