From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3134 invoked by alias); 24 May 2014 15:23:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 3085 invoked by uid 48); 24 May 2014 15:23:33 -0000 From: "maciej at opencsw dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/61303] gccgo: segfault, regression since 4.8.2 Date: Sat, 24 May 2014 15:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: maciej at opencsw dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: 2014-05/txt/msg02128.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61303 --- Comment #1 from Maciej Blizi=C5=84ski --- I did some more testing. Running it under truss makes the binary work: > truss -f -o /tmp/crashtest.truss bin/crashtest 2014/05/24 17:15:34 Making a request to http://buildfarm.opencsw.org/pkgdb/rest/catalogs/unstable/sparc/SunOS5.10/f= or-generation/as-dicts/ 2014/05/24 17:15:44 Retrieved {unstable sparc SunOS5.10} with 3704 packages 2014/05/24 17:15:44 Writing {unstable sparc SunOS5.10} to catalog 2014/05/24 17:15:44 Catalog index written successfully Running the same binary without truss makes it crash: > bin/crashtest 2014/05/24 17:16:03 Making a request to http://buildfarm.opencsw.org/pkgdb/rest/catalogs/unstable/sparc/SunOS5.10/f= or-generation/as-dicts/ [hangs and eventually segfaults] Running the same binary under gdb makes it segfault immediately: > gdb bin/crashtest GNU gdb (GDB) 7.7 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.10". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from bin/crashtest...done. (gdb) run Starting program: /home/maciej/src/opencsw-gar/v2/go/bin/crashtest [Thread debugging using libthread_db enabled] [New Thread 1 (LWP 1)] [New LWP 2 ] [New LWP 3 ] 2014/05/24 17:22:40 Making a request to http://buildfarm.opencsw.org/pkgdb/rest/catalogs/unstable/sparc/SunOS5.10/f= or-generation/as-dicts/ [New Thread 3 (LWP 3)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 3 (LWP 3)] 0xfe730e98 in memcpy () from /platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1 (gdb) where #0 0xfe730e98 in memcpy () from /platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1 #1 0xfeb8e00c in runtime_netpoll (block=3Dblock@entry=3D1 '\001') at /home/maciej/src/opencsw/pkg/gcc4/trunk/work/solaris10-sparc/build-isa-spar= cv8plus/gcc-4.9.0/libgo/runtime/netpoll_select.c:163 #2 0xfeb92e98 in findrunnable () at /home/maciej/src/opencsw/pkg/gcc4/trunk/work/solaris10-sparc/build-isa-spar= cv8plus/gcc-4.9.0/libgo/runtime/proc.c:1653 #3 schedule () at /home/maciej/src/opencsw/pkg/gcc4/trunk/work/solaris10-sparc/build-isa-spar= cv8plus/gcc-4.9.0/libgo/runtime/proc.c:1751 #4 0xfeb93138 in runtime_mstart (mp=3D0xde810800) at /home/maciej/src/opencsw/pkg/gcc4/trunk/work/solaris10-sparc/build-isa-spar= cv8plus/gcc-4.9.0/libgo/runtime/proc.c:1000 #5 0xff1faee8 in _lwp_start () from /lib/libc.so.1 Backtrace stopped: previous frame identical to this frame (corrupt stack?) >>From gcc-bugs-return-452438-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat May 24 15:36:59 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12331 invoked by alias); 24 May 2014 15:36:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11709 invoked by uid 55); 24 May 2014 15:36:53 -0000 From: "dominiq at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55789] [4.7 Regression] Needless realloc with array constructor. Date: Sat, 24 May 2014 15:36: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.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: 2014-05/txt/msg02130.txt.bz2 Content-length: 1360 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55789 --- Comment #17 from dominiq at gcc dot gnu.org --- Author: dominiq Date: Sat May 24 15:36:14 2014 New Revision: 210893 URL: http://gcc.gnu.org/viewcvs?rev=210893&root=gcc&view=rev Log: 2014-05-24 Dominique d'Humieres Backport r195492 and r195815 2013-01-27 Paul Thomas PR fortran/55789 PR fortran/56047 * gfortran.h : Add associate_var to symbol_attr. * resolve.c (resolve_assoc_var): Set associate_var attribute. If the target class_ok is set, set it for the associate variable. * check.c (allocatable_check): Associate variables should not have the allocatable attribute even if their symbols do. * class.c (gfc_build_class_symbol): Symbols with associate_var set will always have a good class container. 2013-02-06 Paul Thomas PR fortran/55789 * trans-array.c (trans_array_constructor): Remove condition 'dynamic' = true if the loop ubound is a VAR_DECL. Modified: branches/gcc-4_7-branch/gcc/fortran/ChangeLog branches/gcc-4_7-branch/gcc/fortran/check.c branches/gcc-4_7-branch/gcc/fortran/class.c branches/gcc-4_7-branch/gcc/fortran/gfortran.h branches/gcc-4_7-branch/gcc/fortran/resolve.c branches/gcc-4_7-branch/gcc/fortran/trans-array.c