public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/33424]  New: segmentation fault for legal code with -O2
@ 2007-09-13 20:08 dcb314 at hotmail dot com
  2007-09-13 20:09 ` [Bug c/33424] " dcb314 at hotmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dcb314 at hotmail dot com @ 2007-09-13 20:08 UTC (permalink / raw)
  To: gcc-bugs

I just tried to compile Suse Linux package mysql-5.0.45-18
with the GNU C compiler version 4.3 snapshot 20070907.

The compiler said

if gcc -DHAVE_CONFIG_H -I. -I../../strings -I.. -I../include -I../../include   
-DDBUG_OFF -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -DPIC -fPIC
-DUNDEF_HAVE_INITGROUPS -DFORCE_INIT_OF_VARS -fno-strict-aliasing   -MT
ctype-utf8.o -MD -MP -MF ".deps/ctype-utf8.Tpo" -c -o ctype-utf8.o
../../strings/ctype-utf8.c; \
        then mv -f ".deps/ctype-utf8.Tpo" ".deps/ctype-utf8.Po"; else rm -f
".deps/ctype-utf8.Tpo"; exit 1; fi
In file included from ../../strings/ctype-utf8.c:21:
../../include/my_global.h:556: warning: function declaration isn't a prototype
../../strings/ctype-utf8.c: In function 'my_strnncollsp_utf8':
../../strings/ctype-utf8.c:2448: 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.

Here is some help from valgrind

==19535== Invalid read of size 2
==19535==    at 0x9FFF59: cse_cc_succs (cse.c:6737)
==19535==    by 0xA08F11: rest_of_handle_cse2 (cse.c:6962)
==19535==    by 0x631218: execute_one_pass (passes.c:1115)
==19535==    by 0x6313EF: execute_pass_list (passes.c:1168)
==19535==    by 0x631404: execute_pass_list (passes.c:1169)
==19535==    by 0x70957F: tree_rest_of_compilation (tree-optimize.c:404)
==19535==    by 0x8767DF: cgraph_expand_function (cgraphunit.c:1077)
==19535==    by 0x878A3D: cgraph_optimize (cgraphunit.c:1146)
==19535==    by 0x41625D: c_write_global_declarations (c-decl.c:8080)
==19535==    by 0x6B095F: toplev_main (toplev.c:1058)
==19535==    by 0x52BDB43: (below main) (in /lib64/libc-2.6.so)
==19535==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
/tmp/q.i: In function 'my_strnncollsp_utf8':
/tmp/q.i:10725: 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.

Preprocessed source attached. Flag -O2 required.


-- 
           Summary: segmentation fault for legal code with -O2
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: suse-linux-x86_64


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


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

* [Bug c/33424] segmentation fault for legal code with -O2
  2007-09-13 20:08 [Bug c/33424] New: segmentation fault for legal code with -O2 dcb314 at hotmail dot com
@ 2007-09-13 20:09 ` dcb314 at hotmail dot com
  2008-08-31 12:28 ` [Bug rtl-optimization/33424] " rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: dcb314 at hotmail dot com @ 2007-09-13 20:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dcb314 at hotmail dot com  2007-09-13 20:09 -------
Created an attachment (id=14207)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14207&action=view)
C source code


-- 


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


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

* [Bug rtl-optimization/33424] segmentation fault for legal code with -O2
  2007-09-13 20:08 [Bug c/33424] New: segmentation fault for legal code with -O2 dcb314 at hotmail dot com
  2007-09-13 20:09 ` [Bug c/33424] " dcb314 at hotmail dot com
@ 2008-08-31 12:28 ` rguenth at gcc dot gnu dot org
  2008-12-25 17:52 ` pinskia at gcc dot gnu dot org
  2008-12-26  9:58 ` dcb314 at hotmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-08-31 12:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2008-08-31 12:27 -------
We endlessly recurse in cse_cc_succs on i686-pc-linux-gnu with -O3.  Related to
PR36635.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |36635
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-08-31 12:27:34
               date|                            |


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


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

* [Bug rtl-optimization/33424] segmentation fault for legal code with -O2
  2007-09-13 20:08 [Bug c/33424] New: segmentation fault for legal code with -O2 dcb314 at hotmail dot com
  2007-09-13 20:09 ` [Bug c/33424] " dcb314 at hotmail dot com
  2008-08-31 12:28 ` [Bug rtl-optimization/33424] " rguenth at gcc dot gnu dot org
@ 2008-12-25 17:52 ` pinskia at gcc dot gnu dot org
  2008-12-26  9:58 ` dcb314 at hotmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-25 17:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2008-12-25 17:50 -------
I think this is fixed on the trunk now.


-- 


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


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

* [Bug rtl-optimization/33424] segmentation fault for legal code with -O2
  2007-09-13 20:08 [Bug c/33424] New: segmentation fault for legal code with -O2 dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2008-12-25 17:52 ` pinskia at gcc dot gnu dot org
@ 2008-12-26  9:58 ` dcb314 at hotmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: dcb314 at hotmail dot com @ 2008-12-26  9:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dcb314 at hotmail dot com  2008-12-26 09:55 -------
(In reply to comment #3)
> I think this is fixed on the trunk now.

I agree. I just re-checked it and it seems 
fixed to me.


-- 

dcb314 at hotmail dot com changed:

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


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


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

end of thread, other threads:[~2008-12-26  9:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-13 20:08 [Bug c/33424] New: segmentation fault for legal code with -O2 dcb314 at hotmail dot com
2007-09-13 20:09 ` [Bug c/33424] " dcb314 at hotmail dot com
2008-08-31 12:28 ` [Bug rtl-optimization/33424] " rguenth at gcc dot gnu dot org
2008-12-25 17:52 ` pinskia at gcc dot gnu dot org
2008-12-26  9:58 ` dcb314 at hotmail dot com

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