public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/61535] New: SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c
@ 2014-06-17 11:34 ro at gcc dot gnu.org
  2014-06-17 11:34 ` [Bug target/61535] " ro at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: ro at gcc dot gnu.org @ 2014-06-17 11:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61535

            Bug ID: 61535
           Summary: SIGBUS in gen_group_rtx compiling 64-bit
                    gcc.dg/vect/vect-singleton_1.c
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: alalaw01 at gcc dot gnu.org, ebotcazou at gcc dot gnu.org
              Host: sparc-sun-solaris2.1[01]
            Target: sparc-sun-solaris2.1[01]
             Build: sparc-sun-solaris2.1[01]

The new gcc.dg/vect/vect-singleton_1.c test FAILs on 64-bit Solaris 10 and
11/SPARC:

FAIL: gcc.dg/vect/vect-singleton_1.c (internal compiler error)
FAIL: gcc.dg/vect/vect-singleton_1.c (test for excess errors)
FAIL: gcc.dg/vect/vect-singleton_1.c -flto -ffat-lto-objects (internal compiler
error)
FAIL: gcc.dg/vect/vect-singleton_1.c -flto -ffat-lto-objects (test for excess
errors)

E.g.

$ ./cc1 -fpreprocessed vect-singleton_1.i -quiet -m64 -o vect-singleton_1.s
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/vect/vect-singleton_1.c: In
function 'test_vadd_f32':
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/vect/vect-singleton_1.c:30:91:
internal compiler error: Bus Error
 TEST (float, float32x1_t, f32)
                                                                               
           ^
0x7046bb crash_signal
        /vol/gcc/src/hg/trunk/local/gcc/toplev.c:337
0x41dca0 gen_group_rtx(rtx_def*)
        /vol/gcc/src/hg/trunk/local/gcc/expr.c:1598
0x4c87eb expand_function_start(tree_node*)
        /vol/gcc/src/hg/trunk/local/gcc/function.c:4787
0x338e13 execute
        /vol/gcc/src/hg/trunk/local/gcc/cfgexpand.c:5692


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
gen_group_rtx (orig=0xfb4c0d90) at /vol/gcc/src/hg/trunk/local/gcc/expr.c:1598
1598      if (i)
(gdb) where
#0  gen_group_rtx (orig=0xfb4c0d90)
    at /vol/gcc/src/hg/trunk/local/gcc/expr.c:1598
#1  0x004c87ec in expand_function_start (subr=0xfb49c380)
    at /vol/gcc/src/hg/trunk/local/gcc/function.c:4787
#2  0x00338e14 in (anonymous namespace)::pass_expand::execute (
    this=<optimized out>, fun=0xfb423248)
    at /vol/gcc/src/hg/trunk/local/gcc/cfgexpand.c:5692
#3  0x00633c3c in execute_one_pass (pass=pass@entry=0x1014b40)
    at /vol/gcc/src/hg/trunk/local/gcc/passes.c:2180
#4  0x00634120 in execute_pass_list_1 (pass=0x1014b40, pass@entry=0x1012768)
    at /vol/gcc/src/hg/trunk/local/gcc/passes.c:2233
#5  0x00634188 in execute_pass_list (fn=0xfb423248, pass=0x1012768)
    at /vol/gcc/src/hg/trunk/local/gcc/passes.c:2244
#6  0x00362788 in expand_function (node=0xfb4a8380)
    at /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:1787
#7  0x003657d4 in output_in_order ()
    at /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:2019
#8  compile () at /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:2260
#9  0x00365b04 in finalize_compilation_unit ()
    at /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:2342
#10 0x001fb80c in c_write_global_declarations ()
    at /vol/gcc/src/hg/trunk/local/gcc/c/c-decl.c:10452
#11 0x0070477c in compile_file ()
    at /vol/gcc/src/hg/trunk/local/gcc/toplev.c:562
#12 0x00706cd0 in do_compile ()
    at /vol/gcc/src/hg/trunk/local/gcc/toplev.c:1918
#13 toplev_main (argc=7, argv=0xffbff484)
    at /vol/gcc/src/hg/trunk/local/gcc/toplev.c:1994
#14 0x001dbd04 in _start ()

Running again with display/i $pc, one sees there's an unaligned access:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
gen_group_rtx (orig=0xfb4c0d90) at /vol/gcc/src/hg/trunk/local/gcc/expr.c:1598
1598      if (i)
1: x/i $pc
=> 0x41dca0 <gen_group_rtx(rtx_def*)+36>:       ld  [ %g3 + 8 ], %g3
(gdb) p/x $g3
$2 = 0xafafafaf

truss shows

    Incurred fault #5, FLTACCESS  %pc = 0x0041DCA0
      siginfo: SIGBUS BUS_ADRALN addr=0xAFAFAFB7
    Received signal #10, SIGBUS [caught]
      siginfo: SIGBUS BUS_ADRALN addr=0xAFAFAFB7

  Rainer


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

* [Bug target/61535] SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c
  2014-06-17 11:34 [Bug target/61535] New: SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c ro at gcc dot gnu.org
@ 2014-06-17 11:34 ` ro at gcc dot gnu.org
  2014-06-17 11:35 ` ro at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ro at gcc dot gnu.org @ 2014-06-17 11:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61535

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.10.0


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

* [Bug target/61535] SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c
  2014-06-17 11:34 [Bug target/61535] New: SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c ro at gcc dot gnu.org
  2014-06-17 11:34 ` [Bug target/61535] " ro at gcc dot gnu.org
@ 2014-06-17 11:35 ` ro at gcc dot gnu.org
  2014-08-06 12:07 ` [Bug target/61535] [4.10 Regression] " ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ro at gcc dot gnu.org @ 2014-06-17 11:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61535

--- Comment #1 from Rainer Orth <ro at gcc dot gnu.org> ---
Created attachment 32953
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32953&action=edit
preprocessed input


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

* [Bug target/61535] [4.10 Regression] SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c
  2014-06-17 11:34 [Bug target/61535] New: SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c ro at gcc dot gnu.org
  2014-06-17 11:34 ` [Bug target/61535] " ro at gcc dot gnu.org
  2014-06-17 11:35 ` ro at gcc dot gnu.org
@ 2014-08-06 12:07 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2014-10-24  9:32 ` [Bug target/61535] [5 " ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2014-08-06 12:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61535

--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
I'm seeing the same on the 4.7, 4.8, and 4.9 branches.  Also
reproducible in i386-pc-solaris2.11 x sparc-solaris2.11 and
x86_64-unknown-linux-gnu crosses.

    Rainer


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

* [Bug target/61535] [5 Regression] SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c
  2014-06-17 11:34 [Bug target/61535] New: SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c ro at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-08-06 12:07 ` [Bug target/61535] [4.10 Regression] " ro at CeBiTec dot Uni-Bielefeld.DE
@ 2014-10-24  9:32 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2014-10-24  9:51 ` ebotcazou at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2014-10-24  9:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61535

--- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
This also affects the new gcc.dg/pr63594-1.c and gcc.dg/pr63594-2.c
testcases.

    Rainer


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

* [Bug target/61535] [5 Regression] SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c
  2014-06-17 11:34 [Bug target/61535] New: SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c ro at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2014-10-24  9:32 ` [Bug target/61535] [5 " ro at CeBiTec dot Uni-Bielefeld.DE
@ 2014-10-24  9:51 ` ebotcazou at gcc dot gnu.org
  2014-10-24 10:12 ` ebotcazou at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2014-10-24  9:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61535

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-10-24
     Ever confirmed|0                           |1

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
RTL checking tells a little more:

eric@polaris:~/build/gcc/sparc-sun-solaris2.10> gcc/cc1 -quiet
vect-singleton_1.i -m64
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/vect/vect-singleton_1.c: In
function 'test_vadd_f32':
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/vect/vect-singleton_1.c:30:91:
internal compiler error: RTL check: access of elt 0 of vector with last elt -1
in gen_group_rtx, at expr.c:1622
0xcae23f rtvec_check_failed_bounds(rtvec_def const*, int, char const*, int,
char const*)
        /home/eric/svn/gcc/gcc/rtl.c:787
0x8f9258 gen_group_rtx(rtx_def*)
        /home/eric/svn/gcc/gcc/expr.c:1622
0x9b8e3f expand_function_start(tree_node*)
        /home/eric/svn/gcc/gcc/function.c:4803
0x7a8148 execute
        /home/eric/svn/gcc/gcc/cfgexpand.c:5709
Please submit a full bug report,
with preprocessed source if appropriate.


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

* [Bug target/61535] [5 Regression] SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c
  2014-06-17 11:34 [Bug target/61535] New: SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c ro at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2014-10-24  9:51 ` ebotcazou at gcc dot gnu.org
@ 2014-10-24 10:12 ` ebotcazou at gcc dot gnu.org
  2014-11-11 22:10 ` ebotcazou at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2014-10-24 10:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61535

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|ebotcazou at gcc dot gnu.org       |
           Assignee|unassigned at gcc dot gnu.org      |ebotcazou at gcc dot gnu.org

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Investigating.


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

* [Bug target/61535] [5 Regression] SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c
  2014-06-17 11:34 [Bug target/61535] New: SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c ro at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2014-10-24 10:12 ` ebotcazou at gcc dot gnu.org
@ 2014-11-11 22:10 ` ebotcazou at gcc dot gnu.org
  2014-11-11 22:14 ` [Bug target/61535] [4.9/5 " ebotcazou at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2014-11-11 22:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61535

--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Tue Nov 11 22:09:40 2014
New Revision: 217377

URL: https://gcc.gnu.org/viewcvs?rev=217377&root=gcc&view=rev
Log:
    PR target/61535
    * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
    smaller than 8 bytes.
    (sparc_function_arg_1): Tweak.
    (sparc_function_value_1): Tweak.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/sparc/sparc.c


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

* [Bug target/61535] [4.9/5 Regression] SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c
  2014-06-17 11:34 [Bug target/61535] New: SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c ro at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2014-11-11 22:10 ` ebotcazou at gcc dot gnu.org
@ 2014-11-11 22:14 ` ebotcazou at gcc dot gnu.org
  2014-11-11 22:15 ` ebotcazou at gcc dot gnu.org
  2014-11-11 22:17 ` ebotcazou at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2014-11-11 22:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61535

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|5.0                         |4.9.2
   Target Milestone|5.0                         |4.9.3
            Summary|[5 Regression] SIGBUS in    |[4.9/5 Regression] SIGBUS
                   |gen_group_rtx compiling     |in gen_group_rtx compiling
                   |64-bit                      |64-bit
                   |gcc.dg/vect/vect-singleton_ |gcc.dg/vect/vect-singleton_
                   |1.c                         |1.c

--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
The test has been backported onto the 4.9 branch.


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

* [Bug target/61535] [4.9/5 Regression] SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c
  2014-06-17 11:34 [Bug target/61535] New: SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c ro at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2014-11-11 22:14 ` [Bug target/61535] [4.9/5 " ebotcazou at gcc dot gnu.org
@ 2014-11-11 22:15 ` ebotcazou at gcc dot gnu.org
  2014-11-11 22:17 ` ebotcazou at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2014-11-11 22:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61535

--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Tue Nov 11 22:15:15 2014
New Revision: 217379

URL: https://gcc.gnu.org/viewcvs?rev=217379&root=gcc&view=rev
Log:
    PR target/61535
    * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
    smaller than 8 bytes.
    (sparc_function_arg_1): Tweak.
    (sparc_function_value_1): Tweak.

Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/config/sparc/sparc.c


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

* [Bug target/61535] [4.9/5 Regression] SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c
  2014-06-17 11:34 [Bug target/61535] New: SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c ro at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2014-11-11 22:15 ` ebotcazou at gcc dot gnu.org
@ 2014-11-11 22:17 ` ebotcazou at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2014-11-11 22:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61535

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

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

--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Fixed on mainline and 4.9 branch.


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

end of thread, other threads:[~2014-11-11 22:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-17 11:34 [Bug target/61535] New: SIGBUS in gen_group_rtx compiling 64-bit gcc.dg/vect/vect-singleton_1.c ro at gcc dot gnu.org
2014-06-17 11:34 ` [Bug target/61535] " ro at gcc dot gnu.org
2014-06-17 11:35 ` ro at gcc dot gnu.org
2014-08-06 12:07 ` [Bug target/61535] [4.10 Regression] " ro at CeBiTec dot Uni-Bielefeld.DE
2014-10-24  9:32 ` [Bug target/61535] [5 " ro at CeBiTec dot Uni-Bielefeld.DE
2014-10-24  9:51 ` ebotcazou at gcc dot gnu.org
2014-10-24 10:12 ` ebotcazou at gcc dot gnu.org
2014-11-11 22:10 ` ebotcazou at gcc dot gnu.org
2014-11-11 22:14 ` [Bug target/61535] [4.9/5 " ebotcazou at gcc dot gnu.org
2014-11-11 22:15 ` ebotcazou at gcc dot gnu.org
2014-11-11 22:17 ` ebotcazou at gcc dot gnu.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).