public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/45644] [4.6 Regression] 450.soplex in SPEC CPU 2006 is miscompiled
       [not found] <bug-45644-4@http.gcc.gnu.org/bugzilla/>
@ 2011-02-21 23:46 ` law at redhat dot com
  2012-01-09 18:43 ` jamborm at gcc dot gnu.org
  2012-01-09 20:07 ` jamborm at gcc dot gnu.org
  2 siblings, 0 replies; 11+ messages in thread
From: law at redhat dot com @ 2011-02-21 23:46 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mbooth at redhat dot com

--- Comment #9 from Jeffrey A. Law <law at redhat dot com> 2011-02-21 23:09:31 UTC ---
*** Bug 46452 has been marked as a duplicate of this bug. ***


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

* [Bug middle-end/45644] [4.6 Regression] 450.soplex in SPEC CPU 2006 is miscompiled
       [not found] <bug-45644-4@http.gcc.gnu.org/bugzilla/>
  2011-02-21 23:46 ` [Bug middle-end/45644] [4.6 Regression] 450.soplex in SPEC CPU 2006 is miscompiled law at redhat dot com
@ 2012-01-09 18:43 ` jamborm at gcc dot gnu.org
  2012-01-09 20:07 ` jamborm at gcc dot gnu.org
  2 siblings, 0 replies; 11+ messages in thread
From: jamborm at gcc dot gnu.org @ 2012-01-09 18:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Martin Jambor <jamborm at gcc dot gnu.org> 2012-01-09 18:40:17 UTC ---
Author: jamborm
Date: Mon Jan  9 18:40:09 2012
New Revision: 183023

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183023
Log:
2012-01-09  Martin Jambor  <mjambor@suse.cz>

    PR tree-optimization/51759

    Backport from mainline
    2010-09-15  Martin Jambor  <mjambor@suse.cz>

        PR middle-end/45644
        * tree-sra.c (create_access): Check for bit-fields directly.

        * testsuite/gcc.dg/ipa/pr45644.c: New test.
    * testsuite/g++.dg/ipa/pr51759.C: Likewise.


Added:
    branches/gcc-4_5-branch/gcc/testsuite/g++.dg/ipa/pr51759.C
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/ipa/pr45644.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_5-branch/gcc/tree-sra.c


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

* [Bug middle-end/45644] [4.6 Regression] 450.soplex in SPEC CPU 2006 is miscompiled
       [not found] <bug-45644-4@http.gcc.gnu.org/bugzilla/>
  2011-02-21 23:46 ` [Bug middle-end/45644] [4.6 Regression] 450.soplex in SPEC CPU 2006 is miscompiled law at redhat dot com
  2012-01-09 18:43 ` jamborm at gcc dot gnu.org
@ 2012-01-09 20:07 ` jamborm at gcc dot gnu.org
  2 siblings, 0 replies; 11+ messages in thread
From: jamborm at gcc dot gnu.org @ 2012-01-09 20:07 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nobled at dreamwidth dot
                   |                            |org

--- Comment #11 from Martin Jambor <jamborm at gcc dot gnu.org> 2012-01-09 20:05:27 UTC ---
*** Bug 51759 has been marked as a duplicate of this bug. ***


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

* [Bug middle-end/45644] [4.6 Regression] 450.soplex in SPEC CPU 2006 is miscompiled
  2010-09-10 23:13 [Bug middle-end/45644] New: " hjl dot tools at gmail dot com
                   ` (6 preceding siblings ...)
  2010-09-15 16:01 ` jamborm at gcc dot gnu dot org
@ 2010-09-15 16:06 ` jamborm at gcc dot gnu dot org
  7 siblings, 0 replies; 11+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-09-15 16:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jamborm at gcc dot gnu dot org  2010-09-15 16:06 -------
Fixed.


-- 

jamborm at gcc dot gnu dot org changed:

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


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


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

* [Bug middle-end/45644] [4.6 Regression] 450.soplex in SPEC CPU 2006 is miscompiled
  2010-09-10 23:13 [Bug middle-end/45644] New: " hjl dot tools at gmail dot com
                   ` (5 preceding siblings ...)
  2010-09-15 13:26 ` jamborm at gcc dot gnu dot org
@ 2010-09-15 16:01 ` jamborm at gcc dot gnu dot org
  2010-09-15 16:06 ` jamborm at gcc dot gnu dot org
  7 siblings, 0 replies; 11+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-09-15 16:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jamborm at gcc dot gnu dot org  2010-09-15 16:00 -------
Subject: Bug 45644

Author: jamborm
Date: Wed Sep 15 15:59:27 2010
New Revision: 164313

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164313
Log:
2010-09-15  Martin Jambor  <mjambor@suse.cz>

        PR middle-end/45644
        * tree-sra.c (create_access): Check for bit-fields directly.

        * testsuite/gcc.dg/ipa/pr45644.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/ipa/pr45644.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-sra.c


-- 


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


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

* [Bug middle-end/45644] [4.6 Regression] 450.soplex in SPEC CPU 2006 is miscompiled
  2010-09-10 23:13 [Bug middle-end/45644] New: " hjl dot tools at gmail dot com
                   ` (4 preceding siblings ...)
  2010-09-15 10:12 ` vladimir dot a dot kharchenko at intel dot com
@ 2010-09-15 13:26 ` jamborm at gcc dot gnu dot org
  2010-09-15 16:01 ` jamborm at gcc dot gnu dot org
  2010-09-15 16:06 ` jamborm at gcc dot gnu dot org
  7 siblings, 0 replies; 11+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-09-15 13:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jamborm at gcc dot gnu dot org  2010-09-15 13:25 -------
I have just sent a proposed fix to the mailing list:
http://gcc.gnu.org/ml/gcc-patches/2010-09/msg01244.html


-- 


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


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

* [Bug middle-end/45644] [4.6 Regression] 450.soplex in SPEC CPU 2006 is miscompiled
  2010-09-10 23:13 [Bug middle-end/45644] New: " hjl dot tools at gmail dot com
                   ` (3 preceding siblings ...)
  2010-09-14 17:55 ` jamborm at gcc dot gnu dot org
@ 2010-09-15 10:12 ` vladimir dot a dot kharchenko at intel dot com
  2010-09-15 13:26 ` jamborm at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: vladimir dot a dot kharchenko at intel dot com @ 2010-09-15 10:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from vladimir dot a dot kharchenko at intel dot com  2010-09-15 10:11 -------
When I run "./soplex -s1 -e -m45000 pds-50.mps" Seg fault is:

Program received signal SIGSEGV, Segmentation fault.
0x00000000004363a7 in size (this=0x7fffffffce40, ds=<value optimized out>) at
svector.h:174
174           if( m_elem != 0 )
Missing separate debuginfos, use: debuginfo-install glibc-2.11.1-6.x86_64
libgcc-4.4.3-4.fc12.x86_64 libstdc++-4.4.3-4.fc12.x86_64
(gdb) where
#0  0x00000000004363a7 in size (this=0x7fffffffce40, ds=<value optimized out>)
at svector.h:174
#1  soplex::SPxBasis::loadDesc (this=0x7fffffffce40, ds=<value optimized out>)
at spxbasis.cc:162
#2  0x000000000042d244 in soplex::SoPlex::read (this=0x7fffffffcce0, in=...,
rowNames=0x7fffffffdb50, 
    colNames=0x7fffffffdae0, intVars=0x0) at soplex.cc:56
#3  0x000000000042e085 in soplex::SoPlex::readFile (this=0x7fffffffcce0,
filename=<value optimized out>, 
    rowNames=0x7fffffffdb50, colNames=0x7fffffffdae0, intVars=0x0) at
soplex.cc:400
#4  0x000000000040a9b3 in main (argc=<value optimized out>, argv=<value
optimized out>) at example.cc:429

When I compiled spxbasis.cc by old compiler and linked with other object files
I received:
Program received signal SIGSEGV, Segmentation fault.
soplex::SPxWeightST::generate (this=0x70a470, base=...) at spxweightst.cc:248
248              if (bVec.size() == 1)
Missing separate debuginfos, use: debuginfo-install glibc-2.11.1-6.x86_64
libgcc-4.4.3-4.fc12.x86_64 libstdc++-4.4.3-4.fc12.x86_64
(gdb) where
#0  soplex::SPxWeightST::generate (this=0x70a470, base=...) at
spxweightst.cc:248
#1  0x000000000046c2db in soplex::SoPlex::solve (this=0x7fffffffcce0) at
spxsolve.cc:87
#2  0x000000000040aa73 in main (argc=<value optimized out>, argv=<value
optimized out>) at example.cc:458
(gdb) 
When I compiled spxweightst.cc and spxsolve.cc by old compiler I received Sef
fault in other place. It seems to me that the problem in header files, maybe
svector.h is compiled incorrectly.  


-- 


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


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

* [Bug middle-end/45644] [4.6 Regression] 450.soplex in SPEC CPU 2006 is miscompiled
  2010-09-10 23:13 [Bug middle-end/45644] New: " hjl dot tools at gmail dot com
                   ` (2 preceding siblings ...)
  2010-09-14 15:02 ` jamborm at gcc dot gnu dot org
@ 2010-09-14 17:55 ` jamborm at gcc dot gnu dot org
  2010-09-15 10:12 ` vladimir dot a dot kharchenko at intel dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-09-14 17:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jamborm at gcc dot gnu dot org  2010-09-14 17:54 -------
The miscompiled file appears to be spxweightst.o, the miscompilation probably
happens when transforming a call to int soplex::DataSet<DATA>::number(const
soplex::DataKey&) const [with DATA = soplex::SVSet::DLPSV]


-- 

jamborm at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jamborm at gcc dot gnu dot
                   |                            |org


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


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

* [Bug middle-end/45644] [4.6 Regression] 450.soplex in SPEC CPU 2006 is miscompiled
  2010-09-10 23:13 [Bug middle-end/45644] New: " hjl dot tools at gmail dot com
  2010-09-11  0:21 ` [Bug middle-end/45644] " hjl dot tools at gmail dot com
  2010-09-11  0:23 ` hjl dot tools at gmail dot com
@ 2010-09-14 15:02 ` jamborm at gcc dot gnu dot org
  2010-09-14 17:55 ` jamborm at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: jamborm at gcc dot gnu dot org @ 2010-09-14 15:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jamborm at gcc dot gnu dot org  2010-09-14 15:02 -------
I can reproduce the problem and it does not happen with -fno-ipa-sra => mine.


-- 

jamborm at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jamborm at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-09-14 15:02:30
               date|                            |


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


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

* [Bug middle-end/45644] [4.6 Regression] 450.soplex in SPEC CPU 2006 is miscompiled
  2010-09-10 23:13 [Bug middle-end/45644] New: " hjl dot tools at gmail dot com
  2010-09-11  0:21 ` [Bug middle-end/45644] " hjl dot tools at gmail dot com
@ 2010-09-11  0:23 ` hjl dot tools at gmail dot com
  2010-09-14 15:02 ` jamborm at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-09-11  0:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl dot tools at gmail dot com  2010-09-11 00:23 -------
It also failed with

-DSPEC_CPU -DNDEBUG -O2 -ffast-math -DSPEC_CPU_LP64 -fno-strict-aliasing  


-- 


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


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

* [Bug middle-end/45644] [4.6 Regression] 450.soplex in SPEC CPU 2006 is miscompiled
  2010-09-10 23:13 [Bug middle-end/45644] New: " hjl dot tools at gmail dot com
@ 2010-09-11  0:21 ` hjl dot tools at gmail dot com
  2010-09-11  0:23 ` hjl dot tools at gmail dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-09-11  0:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hjl dot tools at gmail dot com  2010-09-11 00:20 -------
It is caused by revision 164135:

http://gcc.gnu.org/ml/gcc-cvs/2010-09/msg00427.html

I got

*** glibc detected *** ../run_base_test_lnx32e-gcc.0000/soplex_base.lnx32e-gcc:
double free or corruption (out): 0x0000000000722970 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3099675676]
../run_base_test_lnx32e-gcc.0000/soplex_base.lnx32e-gcc[0x449466]
../run_base_test_lnx32e-gcc.0000/soplex_base.lnx32e-gcc[0x4408e6]
../run_base_test_lnx32e-gcc.0000/soplex_base.lnx32e-gcc[0x406c4d]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x309961ec5d]
../run_base_test_lnx32e-gcc.0000/soplex_base.lnx32e-gcc[0x401e3d]
======= Memory map: ========
00400000-00464000 r-xp 00000000 08:11 56688876                          
/export/gnu/import/rrs/spec/2006/spec/benchspec/CPU2006/450.soplex/run/run_base_test_lnx32e-gcc.0000/soplex_base.lnx32e-gcc
00663000-00664000 rw-p 00063000 08:11 56688876                          
/export/gnu/import/rrs/spec/2006/spec/benchspec/CPU2006/450.soplex/run/run_base_test_lnx32e-gcc.0000/soplex_base.lnx32e-gcc
00664000-00732000 rw-p 00000000 00:00 0                                  [heap]
3099200000-309921e000 r-xp 00000000 08:05 1177353                       
/lib64/ld-2.12.1.so
309941e000-309941f000 r--p 0001e000 08:05 1177353                       
/lib64/ld-2.12.1.so
309941f000-3099420000 rw-p 0001f000 08:05 1177353                       
/lib64/ld-2.12.1.so
3099420000-3099421000 rw-p 00000000 00:00 0 
3099600000-3099786000 r-xp 00000000 08:05 1177356                       
/lib64/libc-2.12.1.so
3099786000-3099986000 ---p 00186000 08:05 1177356                       
/lib64/libc-2.12.1.so
3099986000-309998a000 r--p 00186000 08:05 1177356                       
/lib64/libc-2.12.1.so
309998a000-309998b000 rw-p 0018a000 08:05 1177356                       
/lib64/libc-2.12.1.so
309998b000-3099990000 rw-p 00000000 00:00 0 
309a600000-309a683000 r-xp 00000000 08:05 1177374                       
/lib64/libm-2.12.1.so
309a683000-309a882000 ---p 00083000 08:05 1177374                       
/lib64/libm-2.12.1.so
309a882000-309a883000 r--p 00082000 08:05 1177374                       
/lib64/libm-2.12.1.so
309a883000-309a884000 rw-p 00083000 08:05 1177374                       
/lib64/libm-2.12.1.so
7ffff7879000-7ffff7acb000 rw-p 00000000 00:00 0 
7ffff7acb000-7ffff7ae0000 r-xp 00000000 08:11 24960103                  
/export/gnu/import/rrs/164135/usr/lib64/libgcc_s.so.1
7ffff7ae0000-7ffff7cdf000 ---p 00015000 08:11 24960103                  
/export/gnu/import/rrs/164135/usr/lib64/libgcc_s.so.1
7ffff7cdf000-7ffff7ce0000 rw-p 00014000 08:11 24960103                  
/export/gnu/import/rrs/164135/usr/lib64/libgcc_s.so.1
7ffff7ce0000-7ffff7ce1000 rw-p 00000000 00:00 0 
7ffff7cf9000-7ffff7cfa000 rw-p 00000000 00:00 0 
7ffff7cfa000-7ffff7ddf000 r-xp 00000000 08:11 24960082                  
/export/gnu/import/rrs/164135/usr/lib64/libstdc++.so.6.0.15
7ffff7ddf000-7ffff7fde000 ---p 000e5000 08:11 24960082                  
/export/gnu/import/rrs/164135/usr/lib64/libstdc++.so.6.0.15
7ffff7fde000-7ffff7fe6000 r--p 000e4000 08:11 24960082                  
/export/gnu/import/rrs/164135/usr/lib64/libstdc++.so.6.0.15
7ffff7fe6000-7ffff7fe8000 rw-p 000ec000 08:11 24960082                  
/export/gnu/import/rrs/164135/usr/lib64/libstdc++.so.6.0.15
7ffff7fe8000-7ffff7ffe000 rw-p 00000000 00:00 0 
7ffff7ffe000-7ffff7fff000 r-xp 00000000 00:00 0                          [vdso]
7ffffffde000-7ffffffff000 rw-p 00000000 00:00 0                         
[stack]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                 
[vsyscall]


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mjambor at suse dot cz
   Target Milestone|---                         |4.6.0


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


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

end of thread, other threads:[~2012-01-09 20:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-45644-4@http.gcc.gnu.org/bugzilla/>
2011-02-21 23:46 ` [Bug middle-end/45644] [4.6 Regression] 450.soplex in SPEC CPU 2006 is miscompiled law at redhat dot com
2012-01-09 18:43 ` jamborm at gcc dot gnu.org
2012-01-09 20:07 ` jamborm at gcc dot gnu.org
2010-09-10 23:13 [Bug middle-end/45644] New: " hjl dot tools at gmail dot com
2010-09-11  0:21 ` [Bug middle-end/45644] " hjl dot tools at gmail dot com
2010-09-11  0:23 ` hjl dot tools at gmail dot com
2010-09-14 15:02 ` jamborm at gcc dot gnu dot org
2010-09-14 17:55 ` jamborm at gcc dot gnu dot org
2010-09-15 10:12 ` vladimir dot a dot kharchenko at intel dot com
2010-09-15 13:26 ` jamborm at gcc dot gnu dot org
2010-09-15 16:01 ` jamborm at gcc dot gnu dot org
2010-09-15 16:06 ` jamborm 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).