public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/35822]  New: Internal compiler error: segmentation fault
@ 2008-04-04  6:43 rbertran at ac dot upc dot edu
  2008-04-04  6:44 ` [Bug c/35822] " rbertran at ac dot upc dot edu
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: rbertran at ac dot upc dot edu @ 2008-04-04  6:43 UTC (permalink / raw)
  To: gcc-bugs

Crosstoolchain for the Cell. I got an internal compiler error (segmentation
fault). I'm usign gcc 4.3.0 .

Command:

/opt/ia32/cell/toolchain/2008-03-28/bin/../bin/spu-gcc        -W -Wall -Winline
-Wno-main  -I. -I ../../../include -I ../../../include/spu -I ../../include/jpc
-I /scratch/local/rbertran/cellbench//src/lib/misc -I
/scratch/local/rbertran/cellbench//src/lib/sync/spu -I
/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include -I
/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include  -DSPU -DFLOAT_MODE
-DSIMD_EN -DEN_INTERLEAVING -O5 -c jpc_qmfb_synthesize.c
jpc_qmfb_synthesize.c: In function 'jpc_ns_invlift_row':
jpc_qmfb_synthesize.c:1775: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [jpc_qmfb_synthesize.o] Error 1
[Exit 2 ]

Command verbose:
/opt/ia32/cell/toolchain/2008-03-28/bin/../bin/spu-gcc        -W -Wall -Winline
-Wno-main  -I. -I ../../../include -I ../../../include/spu -I ../../include/jpc
-I /scratch/local/rbertran/cellbench//src/lib/misc -I
/scratch/local/rbertran/cellbench//src/lib/sync/spu -I
/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include -I
/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include  -DSPU -DFLOAT_MODE
-DSIMD_EN -DEN_INTERLEAVING -O5 -c jpc_qmfb_analyze.c -v


Using built-in specs.
Target: spu
Configured with: /home/users/rbertran/scratch-local/cache/gcc-4.3.0/configure
--prefix=/opt/ia32/cell/toolchain/2008-03-28/spu --target=spu --with-newlib
--program-prefix=spu- --disable-nls --enable-languages=c,c++
--with-as=/opt/ia32/cell/toolchain/2008-03-28/spu/bin/spu-as
--with-ld=/opt/ia32/cell/toolchain/2008-03-28/spu/bin/spu-ld
Thread model: single
gcc version 4.3.0 (GCC) 
COLLECT_GCC_OPTIONS='-W' '-Wall' '-Winline' '-Wno-main' '-I.' '-I'
'../../../include' '-I' '../../../include/spu' '-I' '../../include/jpc' '-I'
'/scratch/local/rbertran/cellbench//src/lib/misc' '-I'
'/scratch/local/rbertran/cellbench//src/lib/sync/spu' '-I'
'/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include' '-I'
'/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include' '-DSPU' '-DFLOAT_MODE'
'-DSIMD_EN' '-DEN_INTERLEAVING' '-O5' '-c' '-v'
 /opt/ia32/cell/toolchain/2008-03-28/spu/libexec/gcc/spu/4.3.0/cc1 -quiet -v
-I. -I ../../../include -I ../../../include/spu -I ../../include/jpc -I
/scratch/local/rbertran/cellbench//src/lib/misc -I
/scratch/local/rbertran/cellbench//src/lib/sync/spu -I
/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include -I
/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include -DSPU -DFLOAT_MODE
-DSIMD_EN -DEN_INTERLEAVING jpc_qmfb_analyze.c -quiet -dumpbase
jpc_qmfb_analyze.c -auxbase jpc_qmfb_analyze -O5 -W -Wall -Winline -Wno-main
-version -o /tmp/cc9ZNCcX.s
ignoring nonexistent directory
"/opt/ia32/cell/toolchain/2008-03-28/spu/lib/gcc/spu/4.3.0/../../../../spu/sys-include"
ignoring nonexistent directory
"/scratch/local/rbertran/cellbench//src/lib/misc"
ignoring nonexistent directory
"/scratch/local/rbertran/cellbench//src/lib/sync/spu"
ignoring duplicate directory
"/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory
"/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include"
  as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../../include
 ../../../include/spu
 ../../include/jpc
 /opt/ia32/cell/toolchain/2008-03-28/spu/lib/gcc/spu/4.3.0/include
 /opt/ia32/cell/toolchain/2008-03-28/spu/lib/gcc/spu/4.3.0/include-fixed

/opt/ia32/cell/toolchain/2008-03-28/spu/lib/gcc/spu/4.3.0/../../../../spu/include
End of search list.
GNU C (GCC) version 4.3.0 (spu)
        compiled by GNU C version 4.1.2 20070925 (Red Hat 4.1.2-33), GMP
version 4.2.2, MPFR version 2.3.0-p2.
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129342
Compiler executable checksum: 573e1376cb959e61371bea7b2f291bfa
jpc_qmfb_analyze.c: In function 'jpc_ns_fwdlift_row':
jpc_qmfb_analyze.c:1810: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[Exit 1 ]

GDB debug:
gdb --args /opt/ia32/cell/toolchain/2008-03-28/spu/libexec/gcc/spu/4.3.0/cc1
-quiet -v -I. -I ../../../include -I ../../../include/spu -I ../../include/jpc
-I /scratch/local/rbertran/cellbench//src/lib/misc -I
/scratch/local/rbertran/cellbench//src/lib/sync/spu -I
/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include -I
/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include -DSPU -DFLOAT_MODE
-DSIMD_EN -DEN_INTERLEAVING jpc_qmfb_analyze.c -quiet -dumpbase
jpc_qmfb_analyze.c -auxbase jpc_qmfb_analyze -O5 -W -Wall -Winline -Wno-main
-version -o /tmp/cco5lHmh.s
GNU gdb Red Hat Linux (6.6-45.fc8rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program:
/opt/ia32/cell/toolchain/2008-03-28/spu/libexec/gcc/spu/4.3.0/cc1 -quiet -v -I.
-I ../../../include -I ../../../include/spu -I ../../include/jpc -I
/scratch/local/rbertran/cellbench//src/lib/misc -I
/scratch/local/rbertran/cellbench//src/lib/sync/spu -I
/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include -I
/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include -DSPU -DFLOAT_MODE
-DSIMD_EN -DEN_INTERLEAVING jpc_qmfb_analyze.c -quiet -dumpbase
jpc_qmfb_analyze.c -auxbase jpc_qmfb_analyze -O5 -W -Wall -Winline -Wno-main
-version -o /tmp/cco5lHmh.s
ignoring nonexistent directory
"/opt/ia32/cell/toolchain/2008-03-28/spu/lib/gcc/spu/4.3.0/../../../../spu/sys-include"
ignoring nonexistent directory
"/scratch/local/rbertran/cellbench//src/lib/misc"
ignoring nonexistent directory
"/scratch/local/rbertran/cellbench//src/lib/sync/spu"
ignoring duplicate directory
"/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory
"/opt/ia32/cell/toolchain/2008-03-28/bin/../spu/include"
  as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../../include
 ../../../include/spu
 ../../include/jpc
 /opt/ia32/cell/toolchain/2008-03-28/spu/lib/gcc/spu/4.3.0/include
 /opt/ia32/cell/toolchain/2008-03-28/spu/lib/gcc/spu/4.3.0/include-fixed

/opt/ia32/cell/toolchain/2008-03-28/spu/lib/gcc/spu/4.3.0/../../../../spu/include
End of search list.
GNU C (GCC) version 4.3.0 (spu)
        compiled by GNU C version 4.1.2 20070925 (Red Hat 4.1.2-33), GMP
version 4.2.2, MPFR version 2.3.0-p2.
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129342
Compiler executable checksum: 573e1376cb959e61371bea7b2f291bfa

Program received signal SIGSEGV, Segmentation fault.
set_bb_for_stmt (t=0x0, bb=0xb77c5bb8) at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/tree-cfg.c:2670
2670      if (TREE_CODE (t) == PHI_NODE)
Missing separate debuginfos, use: debuginfo-install glibc.i686 gmp.i386
mpfr.i386
(gdb) where
#0  set_bb_for_stmt (t=0x0, bb=0xb77c5bb8) at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/tree-cfg.c:2670
#1  0x0823f124 in bsi_insert_after (i=0xbfe23020, t=0x0, m=BSI_NEW_STMT) at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/tree-cfg.c:2781
#2  0x08241811 in bsi_insert_on_edge_immediate (e=0xb7808258, stmt=0x0) at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/tree-cfg.c:3048
#3  0x08313cc0 in vect_create_data_ref_ptr (stmt=<value optimized out>,
at_loop=0xb778ca20, offset=0x0, initial_address=0xbfe231b0,
ptr_incr=0xbfe231ac, 
    only_init=0 '\0', type=0x0, inv_p=0xbfe231b7 "") at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/tree-vect-transform.c:1105
#4  0x0831b94c in vectorizable_load (stmt=0xb7cd6e70, bsi=0xbfe232fc,
vec_stmt=0xbfe231f8, slp_node=0x0)
    at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/tree-vect-transform.c:5774
#5  0x0831e602 in vect_transform_stmt (stmt=0xb7cd6e70, bsi=0xbfe232fc,
strided_store=0xbfe2331f "", slp_node=0xb77c5bb8)
    at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/tree-vect-transform.c:6228
#6  0x0831f9de in vect_transform_loop (loop_vinfo=0xa4c93d0) at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/tree-vect-transform.c:7547
#7  0x083228c3 in vectorize_loops () at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/tree-vectorizer.c:2691
#8  0x081cb124 in execute_one_pass (pass=0x852fae0) at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/passes.c:1122
#9  0x081cb2c7 in execute_pass_list (pass=0x852fae0) at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/passes.c:1175
#10 0x081cb2da in execute_pass_list (pass=0x852f9a0) at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/passes.c:1176
#11 0x081cb2da in execute_pass_list (pass=0x852f1a0) at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/passes.c:1176
#12 0x0826e719 in tree_rest_of_compilation (fndecl=0xb7e17780) at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/tree-optimize.c:404
#13 0x083645b8 in cgraph_expand_function (node=0xb7e3dce4) at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/cgraphunit.c:1157
#14 0x08365f0d in cgraph_optimize () at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/cgraphunit.c:1220
#15 0x08058047 in c_write_global_declarations () at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/c-decl.c:8080
#16 0x082391d6 in toplev_main (argc=36, argv=0xbfe23594) at
/home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/toplev.c:1055
#17 0x080a6042 in main (argc=Cannot access memory at address 0x0
) at /home/users/rbertran/scratch-local/cache/gcc-4.3.0/gcc/main.c:35

Sorry if I'm missing some other information that you need. I'm new submitting
bugs to gcc. If you need something else, let me know.


-- 
           Summary: Internal compiler error: segmentation fault
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rbertran at ac dot upc dot edu


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


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

* [Bug c/35822] Internal compiler error: segmentation fault
  2008-04-04  6:43 [Bug c/35822] New: Internal compiler error: segmentation fault rbertran at ac dot upc dot edu
@ 2008-04-04  6:44 ` rbertran at ac dot upc dot edu
  2008-04-04  6:46 ` rbertran at ac dot upc dot edu
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rbertran at ac dot upc dot edu @ 2008-04-04  6:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rbertran at ac dot upc dot edu  2008-04-04 06:43 -------
Created an attachment (id=15421)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15421&action=view)
Temp file generated when -save-temp flag is set


-- 


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


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

* [Bug c/35822] Internal compiler error: segmentation fault
  2008-04-04  6:43 [Bug c/35822] New: Internal compiler error: segmentation fault rbertran at ac dot upc dot edu
  2008-04-04  6:44 ` [Bug c/35822] " rbertran at ac dot upc dot edu
@ 2008-04-04  6:46 ` rbertran at ac dot upc dot edu
  2008-04-04  6:49 ` rbertran at ac dot upc dot edu
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rbertran at ac dot upc dot edu @ 2008-04-04  6:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rbertran at ac dot upc dot edu  2008-04-04 06:45 -------
Created an attachment (id=15422)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15422&action=view)
Temp file generated when -save-temp flag is set


-- 


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


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

* [Bug c/35822] Internal compiler error: segmentation fault
  2008-04-04  6:43 [Bug c/35822] New: Internal compiler error: segmentation fault rbertran at ac dot upc dot edu
  2008-04-04  6:44 ` [Bug c/35822] " rbertran at ac dot upc dot edu
  2008-04-04  6:46 ` rbertran at ac dot upc dot edu
@ 2008-04-04  6:49 ` rbertran at ac dot upc dot edu
  2008-04-04  6:58 ` rbertran at ac dot upc dot edu
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rbertran at ac dot upc dot edu @ 2008-04-04  6:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rbertran at ac dot upc dot edu  2008-04-04 06:48 -------
host: x86 linux gnu
build: x86 linux gnu
target : spe


-- 


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


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

* [Bug c/35822] Internal compiler error: segmentation fault
  2008-04-04  6:43 [Bug c/35822] New: Internal compiler error: segmentation fault rbertran at ac dot upc dot edu
                   ` (2 preceding siblings ...)
  2008-04-04  6:49 ` rbertran at ac dot upc dot edu
@ 2008-04-04  6:58 ` rbertran at ac dot upc dot edu
  2008-04-04  7:10 ` rbertran at ac dot upc dot edu
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rbertran at ac dot upc dot edu @ 2008-04-04  6:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rbertran at ac dot upc dot edu  2008-04-04 06:57 -------
I've been testing using the Cell SDK3.0, and I can compile the program. I've
used -O3 and -ftree-vectorize flags. The gcc version provided by the SDK is
4.1.1.


-- 


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


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

* [Bug c/35822] Internal compiler error: segmentation fault
  2008-04-04  6:43 [Bug c/35822] New: Internal compiler error: segmentation fault rbertran at ac dot upc dot edu
                   ` (3 preceding siblings ...)
  2008-04-04  6:58 ` rbertran at ac dot upc dot edu
@ 2008-04-04  7:10 ` rbertran at ac dot upc dot edu
  2008-04-04  7:11 ` rbertran at ac dot upc dot edu
  2008-04-04  7:26 ` rbertran at ac dot upc dot edu
  6 siblings, 0 replies; 8+ messages in thread
From: rbertran at ac dot upc dot edu @ 2008-04-04  7:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rbertran at ac dot upc dot edu  2008-04-04 07:09 -------
Created an attachment (id=15423)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15423&action=view)
File generated using the flag -fdump-tree-vect

As it seems that error comes from the vectorizer (see the gdb output), I
thought that this information is useful.


-- 


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


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

* [Bug c/35822] Internal compiler error: segmentation fault
  2008-04-04  6:43 [Bug c/35822] New: Internal compiler error: segmentation fault rbertran at ac dot upc dot edu
                   ` (4 preceding siblings ...)
  2008-04-04  7:10 ` rbertran at ac dot upc dot edu
@ 2008-04-04  7:11 ` rbertran at ac dot upc dot edu
  2008-04-04  7:26 ` rbertran at ac dot upc dot edu
  6 siblings, 0 replies; 8+ messages in thread
From: rbertran at ac dot upc dot edu @ 2008-04-04  7:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rbertran at ac dot upc dot edu  2008-04-04 07:10 -------
Created an attachment (id=15424)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15424&action=view)
File generated using the flag -fdump-tree-vect and
-ftree-vectorizer-verbose=9999


-- 


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


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

* [Bug c/35822] Internal compiler error: segmentation fault
  2008-04-04  6:43 [Bug c/35822] New: Internal compiler error: segmentation fault rbertran at ac dot upc dot edu
                   ` (5 preceding siblings ...)
  2008-04-04  7:11 ` rbertran at ac dot upc dot edu
@ 2008-04-04  7:26 ` rbertran at ac dot upc dot edu
  6 siblings, 0 replies; 8+ messages in thread
From: rbertran at ac dot upc dot edu @ 2008-04-04  7:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rbertran at ac dot upc dot edu  2008-04-04 07:25 -------


*** This bug has been marked as a duplicate of 35821 ***


-- 

rbertran at ac dot upc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2008-04-04  7:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-04  6:43 [Bug c/35822] New: Internal compiler error: segmentation fault rbertran at ac dot upc dot edu
2008-04-04  6:44 ` [Bug c/35822] " rbertran at ac dot upc dot edu
2008-04-04  6:46 ` rbertran at ac dot upc dot edu
2008-04-04  6:49 ` rbertran at ac dot upc dot edu
2008-04-04  6:58 ` rbertran at ac dot upc dot edu
2008-04-04  7:10 ` rbertran at ac dot upc dot edu
2008-04-04  7:11 ` rbertran at ac dot upc dot edu
2008-04-04  7:26 ` rbertran at ac dot upc dot edu

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).