public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/21567] New: Segmentation fault of the compiler when compiling @ 2005-05-14 11:29 alexander_herrmann at yahoo dot com dot au 2005-05-14 11:47 ` [Bug tree-optimization/21567] " belyshev at depni dot sinp dot msu dot ru ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: alexander_herrmann at yahoo dot com dot au @ 2005-05-14 11:29 UTC (permalink / raw) To: gcc-bugs The compiler get's a segmentation fault on this one :) The compiler 4.0.0 was configurated with --enable-languages=c,c++,java --enable-shared --enable-threads=posix --with-cpu=i686 and built with make CFLAGS='-O' LIBCFLAGS='-g -O2' \ LIBCXXFLAGS='-g -O2 -fno-implicit-templates' profiledbootstrap aie_sql_meta.c: In Funktion aie_sql_meta_create_indexซ: aie_sql_meta.c:23: interner Compiler-Fehler: Segmentation fault #include <stdlib.h> #include <stdio.h> #include <time.h> // reduced Testcase // compiled with // gcc -Wall -O3 aie_sql_meta.c // Alexander J. Herrmann 13.05.2005 webmaster@aiengine.org typedef int bool; bool aie_sql_meta_create_index(void); void aie_sql_meta_get_index_def_from_id(int indexid, int *tableid, int *index_typ); int main(void) { aie_sql_meta_create_index(); return(0); } bool aie_sql_meta_create_index(void) { bool rc = 1; int tableid; // Never gets initialized int index_typ = 1; int indexid = 0; aie_sql_meta_get_index_def_from_id(indexid, &tableid, &index_typ); if (__builtin_expect(((index_typ) || (tableid <= 0)),0)) { // error variables not set but also not used rc = 0; } else { // tableid was never initialized printf("%d %d\n", tableid, index_typ); } return(rc); } void aie_sql_meta_get_index_def_from_id(int indexid, int *tableid, int *index_typ) { if (indexid == 1) { // the Good case *tableid = 1; *index_typ = 0; } else { *index_typ = 0; } } -- Summary: Segmentation fault of the compiler when compiling Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: alexander_herrmann at yahoo dot com dot au CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux GCC host triplet: i686-pc-linux GCC target triplet: i686-pc-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21567 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/21567] Segmentation fault of the compiler when compiling 2005-05-14 11:29 [Bug c/21567] New: Segmentation fault of the compiler when compiling alexander_herrmann at yahoo dot com dot au @ 2005-05-14 11:47 ` belyshev at depni dot sinp dot msu dot ru 2005-05-14 16:30 ` [Bug translation/21567] " pinskia at gcc dot gnu dot org 2005-06-08 13:27 ` reichelt at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: belyshev at depni dot sinp dot msu dot ru @ 2005-05-14 11:47 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From belyshev at depni dot sinp dot msu dot ru 2005-05-14 11:46 ------- Please attach preprocessed testcase, see http://gcc.gnu.org/bugs.html#need for details. Also please try recent snapshot of 4.0 ftp://gcc.gnu.org/pub/gcc/snapshots/4.0-20050507/ -- What |Removed |Added ---------------------------------------------------------------------------- Component|c |tree-optimization GCC build triplet|i686-pc-linux | GCC host triplet|i686-pc-linux | Keywords| |ice-on-valid-code Summary|Segmentation fault of the |Segmentation fault of the |compiler when compiling |compiler when compiling http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21567 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug translation/21567] Segmentation fault of the compiler when compiling 2005-05-14 11:29 [Bug c/21567] New: Segmentation fault of the compiler when compiling alexander_herrmann at yahoo dot com dot au 2005-05-14 11:47 ` [Bug tree-optimization/21567] " belyshev at depni dot sinp dot msu dot ru @ 2005-05-14 16:30 ` pinskia at gcc dot gnu dot org 2005-06-08 13:27 ` reichelt at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-05-14 16:30 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-14 16:30 ------- I want to say this is a translation bug. -- What |Removed |Added ---------------------------------------------------------------------------- Component|tree-optimization |translation http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21567 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug translation/21567] Segmentation fault of the compiler when compiling 2005-05-14 11:29 [Bug c/21567] New: Segmentation fault of the compiler when compiling alexander_herrmann at yahoo dot com dot au 2005-05-14 11:47 ` [Bug tree-optimization/21567] " belyshev at depni dot sinp dot msu dot ru 2005-05-14 16:30 ` [Bug translation/21567] " pinskia at gcc dot gnu dot org @ 2005-06-08 13:27 ` reichelt at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: reichelt at gcc dot gnu dot org @ 2005-06-08 13:27 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From reichelt at gcc dot gnu dot org 2005-06-08 13:27 ------- The original error message reads: bug.c: In function 'aie_sql_meta_create_index': bug.c:25: warning: 'tableid' is used uninitialized in this function bug.c: In function 'main': bug.c:25: warning: 'tableid' is used uninitialized in this function So this bug is a dupe of PR 21364. *** This bug has been marked as a duplicate of 21364 *** -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21567 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-06-08 13:27 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-05-14 11:29 [Bug c/21567] New: Segmentation fault of the compiler when compiling alexander_herrmann at yahoo dot com dot au 2005-05-14 11:47 ` [Bug tree-optimization/21567] " belyshev at depni dot sinp dot msu dot ru 2005-05-14 16:30 ` [Bug translation/21567] " pinskia at gcc dot gnu dot org 2005-06-08 13:27 ` reichelt at gcc dot gnu dot 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).