public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/44223]  New: segmentation fault with -g -fsched-pressure
@ 2010-05-21  2:01 astrange at ithinksw dot com
  2010-05-21  2:02 ` [Bug rtl-optimization/44223] " astrange at ithinksw dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: astrange at ithinksw dot com @ 2010-05-21  2:01 UTC (permalink / raw)
  To: gcc-bugs

> gcc -O3 -g -fsched-pressure -fschedule-insns -S crash1m.i
crash1m.i: In function 'ff_adts_write_frame_header':
crash1m.i:35:2: 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.

Backtrace:
(gdb) run
Starting program:
/usr/local/gcc46/libexec/gcc/x86_64-apple-darwin10.3.1/4.6.0/cc1 -fpreprocessed
crash1m.i -march=core2 -mcx16 -msahf -maes -mpclmul -mpopcnt -msse4.2 --param
l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072
-mtune=core2 -fPIC -feliminate-unused-debug-symbols -quiet -dumpbase crash1m.i
-mmacosx-version-min=10.6.3 -auxbase crash1m -g -O3 -version -fsched-pressure
-fschedule-insns -o crash1m.s
Reading symbols for shared libraries .++++++++++. done
GNU C (GCC) version 4.6.0 20100521 (experimental) (x86_64-apple-darwin10.3.1)
        compiled by GNU C version 4.2.1 (Apple Inc. build 5659), GMP version
4.3.1, MPFR version 2.4.2-p3, MPC version 0.8
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C (GCC) version 4.6.0 20100521 (experimental) (x86_64-apple-darwin10.3.1)
        compiled by GNU C version 4.2.1 (Apple Inc. build 5659), GMP version
4.3.1, MPFR version 2.4.2-p3, MPC version 0.8
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 5c588719ada4c17718f398d6d2dbd7a3

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x00000001004edc54 in dying_use_p (use=0x141720070) at
../../../src/gcc/gcc/haifa-sched.c:769
769         if (NONDEBUG_INSN_P (next->insn)
(gdb) bt
#0  0x00000001004edc54 in dying_use_p (use=0x141720070) at
../../../src/gcc/gcc/haifa-sched.c:769
#1  0x00000001004f055d in setup_insn_reg_pressure_info [inlined] () at
/Users/astrange/Projects/src/gcc/gcc/haifa-sched.c:1130
#2  0x00000001004f055d in ready_sort (ready=0x100b0b5e0) at
../../../src/gcc/gcc/haifa-sched.c:1502
#3  0x00000001004f5e4b in schedule_block (target_bb=0x7fff5fbfe4e8) at
../../../src/gcc/gcc/haifa-sched.c:3203
#4  0x000000010060c8bd in schedule_insns () at
../../../src/gcc/gcc/sched-rgn.c:3001
#5  0x000000010060cd4f in rest_of_handle_sched () at
../../../src/gcc/gcc/sched-rgn.c:3512
#6  0x000000010059cb3f in execute_one_pass (pass=0x100b99d40) at
../../../src/gcc/gcc/passes.c:1589
#7  0x000000010059ce1d in execute_pass_list (pass=0x100b99d40) at
../../../src/gcc/gcc/passes.c:1644
#8  0x000000010059ce2f in execute_pass_list (pass=0x100b98ec0) at
../../../src/gcc/gcc/passes.c:1645
#9  0x00000001006cd1d0 in invoke_plugin_callbacks [inlined] () at
/Users/astrange/Projects/src/gcc/gcc/plugin.h:413
#10 0x00000001006cd1d0 in tree_rest_of_compilation (fndecl=0x14252f300) at
../../../src/gcc/gcc/tree-optimize.c:416
#11 0x0000000100898ef6 in cgraph_expand_function (node=0x14240cd20) at
../../../src/gcc/gcc/cgraphunit.c:1622
#12 0x000000010089c07d in cgraph_expand_all_functions [inlined] () at
/Users/astrange/Projects/src/gcc/gcc/cgraphunit.c:1701
#13 0x000000010089c07d in cgraph_optimize () at
../../../src/gcc/gcc/cgraphunit.c:1957
#14 0x000000010089c676 in cgraph_finalize_compilation_unit () at
../../../src/gcc/gcc/cgraphunit.c:1161
#15 0x000000010000f0f2 in c_write_global_declarations () at
../../../src/gcc/gcc/c-decl.c:9578
#16 0x00000001006623c5 in do_compile () at ../../../src/gcc/gcc/toplev.c:1059
#17 0x0000000100662b1d in toplev_main (argc=32, argv=0x7fff5fbfe828) at
../../../src/gcc/gcc/toplev.c:2433
#18 0x0000000100000f64 in start ()


-- 
           Summary: segmentation fault with -g -fsched-pressure
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: astrange at ithinksw dot com
  GCC host triplet: x86_64-apple-darwin10.3.1


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


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

* [Bug rtl-optimization/44223] segmentation fault with -g -fsched-pressure
  2010-05-21  2:01 [Bug rtl-optimization/44223] New: segmentation fault with -g -fsched-pressure astrange at ithinksw dot com
@ 2010-05-21  2:02 ` astrange at ithinksw dot com
  2010-05-21  9:41 ` rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: astrange at ithinksw dot com @ 2010-05-21  2:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from astrange at ithinksw dot com  2010-05-21 02:02 -------
Created an attachment (id=20715)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20715&action=view)
file


-- 


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


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

* [Bug rtl-optimization/44223] segmentation fault with -g -fsched-pressure
  2010-05-21  2:01 [Bug rtl-optimization/44223] New: segmentation fault with -g -fsched-pressure astrange at ithinksw dot com
  2010-05-21  2:02 ` [Bug rtl-optimization/44223] " astrange at ithinksw dot com
@ 2010-05-21  9:41 ` rguenth at gcc dot gnu dot org
  2010-05-21 11:17 ` [Bug debug/44223] " jakub at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-21  9:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-05-21 09:41 -------
Confirmed on x86_64-linux with valgrind only, -O3 -fsched-pressure
-fschedule-insns -fPIC -march=core2 -g


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aoliva at gcc dot gnu dot
                   |                            |org, jakub at gcc dot gnu
                   |                            |dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-05-21 09:41:23
               date|                            |


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


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

* [Bug debug/44223] segmentation fault with -g -fsched-pressure
  2010-05-21  2:01 [Bug rtl-optimization/44223] New: segmentation fault with -g -fsched-pressure astrange at ithinksw dot com
  2010-05-21  2:02 ` [Bug rtl-optimization/44223] " astrange at ithinksw dot com
  2010-05-21  9:41 ` rguenth at gcc dot gnu dot org
@ 2010-05-21 11:17 ` jakub at gcc dot gnu dot org
  2010-05-21 11:22 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-21 11:17 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
          Component|rtl-optimization            |debug
   Last reconfirmed|2010-05-21 09:41:23         |2010-05-21 11:17:07
               date|                            |


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


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

* [Bug debug/44223] segmentation fault with -g -fsched-pressure
  2010-05-21  2:01 [Bug rtl-optimization/44223] New: segmentation fault with -g -fsched-pressure astrange at ithinksw dot com
                   ` (2 preceding siblings ...)
  2010-05-21 11:17 ` [Bug debug/44223] " jakub at gcc dot gnu dot org
@ 2010-05-21 11:22 ` jakub at gcc dot gnu dot org
  2010-05-21 11:24 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-21 11:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2010-05-21 11:21 -------
Caused by my PR44028 patch.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |44028
              nThis|                            |


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


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

* [Bug debug/44223] segmentation fault with -g -fsched-pressure
  2010-05-21  2:01 [Bug rtl-optimization/44223] New: segmentation fault with -g -fsched-pressure astrange at ithinksw dot com
                   ` (3 preceding siblings ...)
  2010-05-21 11:22 ` jakub at gcc dot gnu dot org
@ 2010-05-21 11:24 ` jakub at gcc dot gnu dot org
  2010-05-21 18:46 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-21 11:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2010-05-21 11:23 -------
Created an attachment (id=20719)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20719&action=view)
gcc46-pr44223.patch

Untested fix.


-- 


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


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

* [Bug debug/44223] segmentation fault with -g -fsched-pressure
  2010-05-21  2:01 [Bug rtl-optimization/44223] New: segmentation fault with -g -fsched-pressure astrange at ithinksw dot com
                   ` (4 preceding siblings ...)
  2010-05-21 11:24 ` jakub at gcc dot gnu dot org
@ 2010-05-21 18:46 ` jakub at gcc dot gnu dot org
  2010-05-21 18:48 ` jakub at gcc dot gnu dot org
  2010-05-21 18:49 ` jakub at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-21 18:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2010-05-21 18:45 -------
Subject: Bug 44223

Author: jakub
Date: Fri May 21 18:45:29 2010
New Revision: 159680

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159680
Log:
        PR debug/44223
        * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
        unchain each use from the cyclic next_regno_use chain first.

        * gcc.target/i386/pr44223.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr44223.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/haifa-sched.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug debug/44223] segmentation fault with -g -fsched-pressure
  2010-05-21  2:01 [Bug rtl-optimization/44223] New: segmentation fault with -g -fsched-pressure astrange at ithinksw dot com
                   ` (5 preceding siblings ...)
  2010-05-21 18:46 ` jakub at gcc dot gnu dot org
@ 2010-05-21 18:48 ` jakub at gcc dot gnu dot org
  2010-05-21 18:49 ` jakub at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-21 18:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2010-05-21 18:48 -------
Subject: Bug 44223

Author: jakub
Date: Fri May 21 18:48:19 2010
New Revision: 159681

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159681
Log:
        PR debug/44223
        * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
        unchain each use from the cyclic next_regno_use chain first.

        * gcc.target/i386/pr44223.c: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.target/i386/pr44223.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/haifa-sched.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug debug/44223] segmentation fault with -g -fsched-pressure
  2010-05-21  2:01 [Bug rtl-optimization/44223] New: segmentation fault with -g -fsched-pressure astrange at ithinksw dot com
                   ` (6 preceding siblings ...)
  2010-05-21 18:48 ` jakub at gcc dot gnu dot org
@ 2010-05-21 18:49 ` jakub at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-21 18:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jakub at gcc dot gnu dot org  2010-05-21 18:49 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2010-05-21 18:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-21  2:01 [Bug rtl-optimization/44223] New: segmentation fault with -g -fsched-pressure astrange at ithinksw dot com
2010-05-21  2:02 ` [Bug rtl-optimization/44223] " astrange at ithinksw dot com
2010-05-21  9:41 ` rguenth at gcc dot gnu dot org
2010-05-21 11:17 ` [Bug debug/44223] " jakub at gcc dot gnu dot org
2010-05-21 11:22 ` jakub at gcc dot gnu dot org
2010-05-21 11:24 ` jakub at gcc dot gnu dot org
2010-05-21 18:46 ` jakub at gcc dot gnu dot org
2010-05-21 18:48 ` jakub at gcc dot gnu dot org
2010-05-21 18:49 ` jakub 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).