public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/65766] New: gFortran Compiler SEGFAULTING on compiling simple program
@ 2015-04-15  0:19 giorgianb at gmail dot com
  2015-04-15  1:52 ` [Bug fortran/65766] " jvdelisle at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: giorgianb at gmail dot com @ 2015-04-15  0:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65766
           Summary: gFortran Compiler SEGFAULTING on compiling simple
                    program
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: giorgianb at gmail dot com

Created attachment 35315
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35315&action=edit
Program that leads to gfortran SEGFAULTING

The problem is that when using gfortran to compile a simple program
(the source code for the program is attached) on the Raspberry Pi 2,
the compiler crashes, giving this error message:

bash-4.2$ gfortran-4.9 7.f95
f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.

Some version info from gfortran-4.9:

bash-4.2$ gfortran-4.9 --version
GNU Fortran (Raspbian 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPY

Running the program uname -a to give some info:

bash-4.2$ uname -a
Linux raspberrypi 3.18.10-v7+ #774 SMP PREEMPT Wed Mar 25 14:10:30 GMT
2015 armv7l GNU/Linux

Running gfortran-4.9 in valgrind hints to an unsupported system call:

bash-4.2$ valgrind gfortran-4.9 7.f95
==5539== Memcheck, a memory error detector
==5539== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==5539== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==5539== Command: gfortran-4.9 7.f95
==5539==
--5539-- WARNING: unhandled syscall: 369
--5539-- You may be able to write your own handler.
--5539-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--5539-- Nevertheless we consider this a bug.  Please report
--5539-- it at http://valgrind.org/support/bug_reports.html.
--5539-- WARNING: unhandled syscall: 369
--5539-- You may be able to write your own handler.
--5539-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--5539-- Nevertheless we consider this a bug.  Please report
--5539-- it at http://valgrind.org/support/bug_reports.html.
f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
==5539==
==5539== HEAP SUMMARY:
==5539==     in use at exit: 41,873 bytes in 89 blocks
==5539==   total heap usage: 218 allocs, 129 frees, 52,452 bytes allocated
==5539==
==5539== LEAK SUMMARY:
==5539==    definitely lost: 5,337 bytes in 34 blocks
==5539==    indirectly lost: 16 bytes in 1 blocks
==5539==      possibly lost: 0 bytes in 0 blocks
==5539==    still reachable: 36,520 bytes in 54 blocks
==5539==         suppressed: 0 bytes in 0 blocks
==5539== Rerun with --leak-check=full to see details of leaked memory
==5539==
==5539== For counts of detected and suppressed errors, rerun with: -v
==5539== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Thank you for your time. I appreciate the GNU community's effort into
producing good compilers.

Giorgian


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

* [Bug fortran/65766] gFortran Compiler SEGFAULTING on compiling simple program
  2015-04-15  0:19 [Bug fortran/65766] New: gFortran Compiler SEGFAULTING on compiling simple program giorgianb at gmail dot com
@ 2015-04-15  1:52 ` jvdelisle at gcc dot gnu.org
  2015-07-28  8:26 ` t56xjcu6dh at snkmail dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2015-04-15  1:52 UTC (permalink / raw)
  To: gcc-bugs

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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-04-15
                 CC|                            |jvdelisle at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
The problem is related to these lines:

--- snip ---
 str%elems(1:) = charvar(1:)
--- snip ---
 charvar(1:) = str%elems(1:)
--- snip ---

On my system with trunk I get:

$ gfc 7.f90

f951: out of memory allocating 26154014304 bytes after a total of 569344 bytes

I have ulimits set  ... to infinity and beyond!


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

* [Bug fortran/65766] gFortran Compiler SEGFAULTING on compiling simple program
  2015-04-15  0:19 [Bug fortran/65766] New: gFortran Compiler SEGFAULTING on compiling simple program giorgianb at gmail dot com
  2015-04-15  1:52 ` [Bug fortran/65766] " jvdelisle at gcc dot gnu.org
@ 2015-07-28  8:26 ` t56xjcu6dh at snkmail dot com
  2015-07-28  8:38 ` t56xjcu6dh at snkmail dot com
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: t56xjcu6dh at snkmail dot com @ 2015-07-28  8:26 UTC (permalink / raw)
  To: gcc-bugs

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

Louis Krupp <t56xjcu6dh at snkmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |t56xjcu6dh at snkmail dot com

--- Comment #2 from Louis Krupp <t56xjcu6dh at snkmail dot com> ---
Created attachment 36079
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36079&action=edit
Program to demonstrate the bug and test a patch


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

* [Bug fortran/65766] gFortran Compiler SEGFAULTING on compiling simple program
  2015-04-15  0:19 [Bug fortran/65766] New: gFortran Compiler SEGFAULTING on compiling simple program giorgianb at gmail dot com
  2015-04-15  1:52 ` [Bug fortran/65766] " jvdelisle at gcc dot gnu.org
  2015-07-28  8:26 ` t56xjcu6dh at snkmail dot com
@ 2015-07-28  8:38 ` t56xjcu6dh at snkmail dot com
  2015-07-30 12:11 ` dominiq at lps dot ens.fr
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: t56xjcu6dh at snkmail dot com @ 2015-07-28  8:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Louis Krupp <t56xjcu6dh at snkmail dot com> ---
Created attachment 36080
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36080&action=edit
Proposed patch

The problem is with substrings of allocatable string components of derived
types.  The code seems to be trying to get the string length from typespec of
the derived type variable instead of from the component.

The attached patch gets the component typespec from the reference chain.

I don't understand the code well enough to have a lot of confidence in this
patch, but it seems like a step in the right direction.


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

* [Bug fortran/65766] gFortran Compiler SEGFAULTING on compiling simple program
  2015-04-15  0:19 [Bug fortran/65766] New: gFortran Compiler SEGFAULTING on compiling simple program giorgianb at gmail dot com
                   ` (2 preceding siblings ...)
  2015-07-28  8:38 ` t56xjcu6dh at snkmail dot com
@ 2015-07-30 12:11 ` dominiq at lps dot ens.fr
  2015-09-10 10:00 ` dominiq at lps dot ens.fr
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-07-30 12:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The patch in comment 3 fixes the PR without regression, as well as pr61676,
pr63494, and  pr66562 (duplicates?).

Note that patches should be posted to gcc-patches@gcc.gnu.org and for gfortran
to fortran@gcc.gnu.org with the change log entry.


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

* [Bug fortran/65766] gFortran Compiler SEGFAULTING on compiling simple program
  2015-04-15  0:19 [Bug fortran/65766] New: gFortran Compiler SEGFAULTING on compiling simple program giorgianb at gmail dot com
                   ` (3 preceding siblings ...)
  2015-07-30 12:11 ` dominiq at lps dot ens.fr
@ 2015-09-10 10:00 ` dominiq at lps dot ens.fr
  2015-09-10 10:01 ` dominiq at lps dot ens.fr
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-09-10 10:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Fixed by the patch at https://gcc.gnu.org/ml/fortran/2015-07/msg00166.html.


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

* [Bug fortran/65766] gFortran Compiler SEGFAULTING on compiling simple program
  2015-04-15  0:19 [Bug fortran/65766] New: gFortran Compiler SEGFAULTING on compiling simple program giorgianb at gmail dot com
                   ` (4 preceding siblings ...)
  2015-09-10 10:00 ` dominiq at lps dot ens.fr
@ 2015-09-10 10:01 ` dominiq at lps dot ens.fr
  2015-09-10 10:04 ` dominiq at lps dot ens.fr
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-09-10 10:01 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian.thompson at liv dot ac.uk

--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
*** Bug 61676 has been marked as a duplicate of this bug. ***


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

* [Bug fortran/65766] gFortran Compiler SEGFAULTING on compiling simple program
  2015-04-15  0:19 [Bug fortran/65766] New: gFortran Compiler SEGFAULTING on compiling simple program giorgianb at gmail dot com
                   ` (5 preceding siblings ...)
  2015-09-10 10:01 ` dominiq at lps dot ens.fr
@ 2015-09-10 10:04 ` dominiq at lps dot ens.fr
  2015-10-06 23:47 ` lkrupp at gcc dot gnu.org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-09-10 10:04 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jwmwalrus at gmail dot com

--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
*** Bug 63494 has been marked as a duplicate of this bug. ***


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

* [Bug fortran/65766] gFortran Compiler SEGFAULTING on compiling simple program
  2015-04-15  0:19 [Bug fortran/65766] New: gFortran Compiler SEGFAULTING on compiling simple program giorgianb at gmail dot com
                   ` (6 preceding siblings ...)
  2015-09-10 10:04 ` dominiq at lps dot ens.fr
@ 2015-10-06 23:47 ` lkrupp at gcc dot gnu.org
  2015-10-07  0:14 ` lkrupp at gcc dot gnu.org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: lkrupp at gcc dot gnu.org @ 2015-10-06 23:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from lkrupp at gcc dot gnu.org ---
Author: lkrupp
Date: Tue Oct  6 23:47:18 2015
New Revision: 228551

URL: https://gcc.gnu.org/viewcvs?rev=228551&root=gcc&view=rev
Log:
2015-10-06  Louis Krupp <louis.krupp@zoho.com>
        PR fortran/65766
        * resolve.c (gfc_resolve_substring_charlen): For derived type,
        use typespec of string component when resolving substring length.

2015-10-06  Louis Krupp     <louis.krupp@zoho.com>

        PR fortran/65766
        * gfortran.dg/substr_alloc_string_comp_1.f90: New.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug fortran/65766] gFortran Compiler SEGFAULTING on compiling simple program
  2015-04-15  0:19 [Bug fortran/65766] New: gFortran Compiler SEGFAULTING on compiling simple program giorgianb at gmail dot com
                   ` (7 preceding siblings ...)
  2015-10-06 23:47 ` lkrupp at gcc dot gnu.org
@ 2015-10-07  0:14 ` lkrupp at gcc dot gnu.org
  2015-10-07  7:47 ` dominiq at lps dot ens.fr
  2015-10-07  9:30 ` louis.krupp at zoho dot com
  10 siblings, 0 replies; 12+ messages in thread
From: lkrupp at gcc dot gnu.org @ 2015-10-07  0:14 UTC (permalink / raw)
  To: gcc-bugs

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

lkrupp at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |lkrupp at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #9 from lkrupp at gcc dot gnu.org ---
Fixed on the trunk.  Thanks for the report!


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

* [Bug fortran/65766] gFortran Compiler SEGFAULTING on compiling simple program
  2015-04-15  0:19 [Bug fortran/65766] New: gFortran Compiler SEGFAULTING on compiling simple program giorgianb at gmail dot com
                   ` (8 preceding siblings ...)
  2015-10-07  0:14 ` lkrupp at gcc dot gnu.org
@ 2015-10-07  7:47 ` dominiq at lps dot ens.fr
  2015-10-07  9:30 ` louis.krupp at zoho dot com
  10 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-10-07  7:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> 2015-10-06  Louis Krupp     <louis.krupp@zoho.com>
>
>	PR fortran/65766
>	* gfortran.dg/substr_alloc_string_comp_1.f90: New.

AFAICT the test has not been committed.
>From gcc-bugs-return-498931-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 07 07:56:00 2015
Return-Path: <gcc-bugs-return-498931-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84423 invoked by alias); 7 Oct 2015 07:56:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 84330 invoked by uid 48); 7 Oct 2015 07:55:56 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/67879] unnecessary jump in ternary
Date: Wed, 07 Oct 2015 07:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on component version dependson everconfirmed
Message-ID: <bug-67879-4-iLoIw02UE4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67879-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67879-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-10/txt/msg00486.txt.bz2
Content-length: 1968

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg879

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-10-07
          Component|c                           |tree-optimization
            Version|unknown                     |5.2.0
         Depends on|                            |23286
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
With GCC 5 at -O2 it's

_Z1fiiPi:
.LFB0:
        .cfi_startproc
        cmpl    %esi, %edi
        movl    (%rdx), %eax
        jl      .L5
        addl    $1, %eax
        ret
        .p2align 4,,10
        .p2align 3
.L5:
        rep ret

vs.

_Z2f2iiPi:
.LFB1:
        .cfi_startproc
        xorl    %eax, %eax
        cmpl    %esi, %edi
        setge   %al
        addl    (%rdx), %eax
        ret

where f2 is already in if-converted form on the GIMPLE level:

int f2(int, int, int*) (int a, int b, int * c)
{
  int _6;
  int _7;
  bool _8;
  int _9;

  <bb 2>:
  _6 = *c_5(D);
  _8 = a_2(D) >= b_3(D);
  _9 = (int) _8;
  _7 = _6 + _9;
  return _7;

The reason why we are not if-converting f on the GIMPLE level is
the lack of a code hoisting pass and thus we have

  <bb 2>:
  if (a_2(D) < b_3(D))
    goto <bb 3>;
  else
    goto <bb 4>;

  <bb 3>:
  iftmp.0_6 = *c_5(D);
  goto <bb 5>;

  <bb 4>:
  _7 = *c_5(D);
  iftmp.0_8 = _7 + 1;

  <bb 5>:
  # iftmp.0_1 = PHI <iftmp.0_6(3), iftmp.0_8(4)>

which "confuses" phiopt enough.  Only RTL hoists the loads (in 261r.mach?).

PR23286 tracks the lack of code hoisting on GIMPLE.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id#286
[Bug 23286] Missed code hoisting optimization


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

* [Bug fortran/65766] gFortran Compiler SEGFAULTING on compiling simple program
  2015-04-15  0:19 [Bug fortran/65766] New: gFortran Compiler SEGFAULTING on compiling simple program giorgianb at gmail dot com
                   ` (9 preceding siblings ...)
  2015-10-07  7:47 ` dominiq at lps dot ens.fr
@ 2015-10-07  9:30 ` louis.krupp at zoho dot com
  10 siblings, 0 replies; 12+ messages in thread
From: louis.krupp at zoho dot com @ 2015-10-07  9:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from louis.krupp at zoho dot com ---
Dominique,

Vous avez raison;  j'en suis désolé.  Je viens de le faire.

Louis

---- On Wed, 07 Oct 2015 00:47:39 -0700 dominiq at lps dot ens.fr  wrote ---- 
>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65766 
> 
>--- Comment #10 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- 
>> 2015-10-06 Louis Krupp <louis.krupp@zoho.com> 
>> 
>>    PR fortran/65766 
>>    * gfortran.dg/substr_alloc_string_comp_1.f90: New. 
> 
>AFAICT the test has not been committed. 
> 
>-- 
>You are receiving this mail because: 
>You are on the CC list for the bug.
>From gcc-bugs-return-498943-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 07 09:32:38 2015
Return-Path: <gcc-bugs-return-498943-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24714 invoked by alias); 7 Oct 2015 09:32:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 24607 invoked by uid 48); 7 Oct 2015 09:32:35 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/65766] gFortran Compiler SEGFAULTING on compiling simple program
Date: Wed, 07 Oct 2015 09:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65766-4-s0Ianj5c6I@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65766-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-10/txt/msg00498.txt.bz2
Content-length: 221

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

--- Comment #12 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Vous avez raison;  j'en suis désolé.  Je viens de le faire.

No problem! Thanks.
>From gcc-bugs-return-498945-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 07 09:49:24 2015
Return-Path: <gcc-bugs-return-498945-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91849 invoked by alias); 7 Oct 2015 09:49:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91503 invoked by uid 48); 7 Oct 2015 09:49:20 -0000
From: "marcin.slusarz at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type
Date: Wed, 07 Oct 2015 09:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marcin.slusarz at intel dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-40752-4-kTOSTnFLJ1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-40752-4@http.gcc.gnu.org/bugzilla/>
References: <bug-40752-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-10/txt/msg00500.txt.bz2
Content-length: 477

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

Marcin Ślusarz <marcin.slusarz at intel dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marcin.slusarz at intel dot com

--- Comment #28 from Marcin Ślusarz <marcin.slusarz at intel dot com> ---
*** Bug 67764 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-498944-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 07 09:49:21 2015
Return-Path: <gcc-bugs-return-498944-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91546 invoked by alias); 7 Oct 2015 09:49:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91407 invoked by uid 48); 7 Oct 2015 09:49:17 -0000
From: "marcin.slusarz at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/67764] -Wconversion generates false warnings for bitmask+cast expressions
Date: Wed, 07 Oct 2015 09:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 5.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marcin.slusarz at intel dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-67764-4-06QCWCc7yu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67764-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67764-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-10/txt/msg00499.txt.bz2
Content-length: 625

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

Marcin Ślusarz <marcin.slusarz at intel dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #5 from Marcin Ślusarz <marcin.slusarz at intel dot com> ---
Heh, I took a closer look and this bug indeed is a duplicate. -Wconversion is
quite useless in its current form.

*** This bug has been marked as a duplicate of bug 40752 ***
>From gcc-bugs-return-498946-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 07 10:07:52 2015
Return-Path: <gcc-bugs-return-498946-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15884 invoked by alias); 7 Oct 2015 10:07:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15837 invoked by uid 48); 7 Oct 2015 10:07:46 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/67764] -Wconversion generates false warnings for bitmask+cast expressions
Date: Wed, 07 Oct 2015 10:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 5.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-67764-4-TMCXZwygSh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67764-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67764-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-10/txt/msg00501.txt.bz2
Content-length: 1249

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Marcin Ślusarz from comment #5)
> Heh, I took a closer look and this bug indeed is a duplicate. -Wconversion
> is quite useless in its current form.
> 
> *** This bug has been marked as a duplicate of bug 40752 ***

Being the main author of Wconversion, I do agree with this sentiment. You'll
see there is a patch there to alleviate this issue, but I couldn't manage to
get it approved and now I don't have the time to invest on this issue. If you
want to see this fixed, your best option is to adopt the patch, update it, test
it and try to get it approved. Comparisons with how Clang and other compilers
behave would be useful but they should not be the basis of your argumentation.
When arguing for a change, try to be smart and see the point of view of the
other side and address that convincingly.
>From gcc-bugs-return-498947-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 07 10:09:46 2015
Return-Path: <gcc-bugs-return-498947-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18480 invoked by alias); 7 Oct 2015 10:09:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 18118 invoked by uid 48); 7 Oct 2015 10:09:42 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/67843] experimental/filesystem/iterators/directory_iterator.cc fails on armv5t
Date: Wed, 07 Oct 2015 10:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67843-4-J4Kvi34CDf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67843-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67843-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-10/txt/msg00502.txt.bz2
Content-length: 494

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg843

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Running this under valgrind I see 900+ errors, the first 100 seem to be from
the global strings in the libstdc++-v3/testsuite/util/testsuite_fs.h file (I
think).

All the errors are basically nonsense, reporting errors in getpid() and
mkstemp() and things that are very unlikely to be broken, so either that
executable is horribly miscompiled or valgrind is useless with it.


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

end of thread, other threads:[~2015-10-07  9:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-15  0:19 [Bug fortran/65766] New: gFortran Compiler SEGFAULTING on compiling simple program giorgianb at gmail dot com
2015-04-15  1:52 ` [Bug fortran/65766] " jvdelisle at gcc dot gnu.org
2015-07-28  8:26 ` t56xjcu6dh at snkmail dot com
2015-07-28  8:38 ` t56xjcu6dh at snkmail dot com
2015-07-30 12:11 ` dominiq at lps dot ens.fr
2015-09-10 10:00 ` dominiq at lps dot ens.fr
2015-09-10 10:01 ` dominiq at lps dot ens.fr
2015-09-10 10:04 ` dominiq at lps dot ens.fr
2015-10-06 23:47 ` lkrupp at gcc dot gnu.org
2015-10-07  0:14 ` lkrupp at gcc dot gnu.org
2015-10-07  7:47 ` dominiq at lps dot ens.fr
2015-10-07  9:30 ` louis.krupp at zoho 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).