From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14778 invoked by alias); 7 Aug 2014 11:58:32 -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 14730 invoked by uid 48); 7 Aug 2014 11:58:27 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/61871] FAIL: regexp from libgo testsuite on non-split stack targets Date: Thu, 07 Aug 2014 11:58: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.10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com 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-08/txt/msg00458.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61871 --- Comment #2 from Uro=C5=A1 Bizjak --- The backtrace mentions "malloc/free - deadlock" and the segmentation fault happens later: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x200011d3270 (LWP 18336)] 0x0000020000e8bbac in memmove () from /lib/libc.so.6.1 (gdb) bt #0 0x0000020000e8bbac in memmove () from /lib/libc.so.6.1 #1 0x00000200005b3a84 in gwrite (v=3D0x200009372f0, n=3D19) at /home/uros/gcc-svn/trunk/libgo/runtime/print.c:38 #2 0x00000200005b4868 in runtime_printf (s=3D0x200008eab4c ">") at /home/uros/gcc-svn/trunk/libgo/runtime/print.c:96 #3 0x00000200005b3014 in runtime_startpanic () at /home/uros/gcc-svn/trunk/libgo/runtime/panic.c:97 #4 0x00000200005b3160 in runtime_throw (s=3D0x2000093820c "malloc/free - deadlock") at /home/uros/gcc-svn/trunk/libgo/runtime/panic.c:189 #5 0x00000200005c01d4 in runtime_mallocgc (size=3D40, typ=3D0, flag=3D0) at /home/uros/gcc-svn/trunk/libgo/runtime/malloc.goc:116 #6 0x00000200005a4b30 in __go_new (size=3D2199032605516) at /home/uros/gcc-svn/trunk/libgo/runtime/go-new.c:15 #7 0x00000200008e9a34 in regexp_syntax.inst.pN22_regexp_syntax.compiler (c=3D0x200009372f0, op=3D19 '\023') at /home/uros/gcc-svn/trunk/libgo/go/regexp/syntax/compile.go:173 #8 0x00000200008eaadc in regexp_syntax.rune.pN22_regexp_syntax.compiler (c=3D0x200009372f0, r=3D..., flags=3D212) at /home/uros/gcc-svn/trunk/libgo/go/regexp/syntax/compile.go:267 #9 0x00000200008eaf20 in regexp_syntax.compile.pN22_regexp_syntax.compiler (c=3D0xc208c1a988, re=3D0xc208b7fce0) at /home/uros/gcc-svn/trunk/libgo/go/regexp/syntax/compile.go:110 #10 0x00000200008eb628 in regexp_syntax.compile.pN22_regexp_syntax.compiler (c=3D0xc208c1a988, re=3D) at /home/uros/gcc-svn/trunk/libgo/go/regexp/syntax/compile.go:154 #11 0x00000200008eb2f0 in regexp_syntax.compile.pN22_regexp_syntax.compiler (c=3D0xc208c1a988, re=3D0xc208bb0f50) at /home/uros/gcc-svn/trunk/libgo/go/regexp/syntax/compile.go:146 #12 0x00000200008eb444 in regexp_syntax.compile.pN22_regexp_syntax.compiler (c=3D0xc208c1a988, re=3D) at /home/uros/gcc-svn/trunk/libgo/go/regexp/syntax/compile.go:156 #13 0x00000200008eb2f0 in regexp_syntax.compile.pN22_regexp_syntax.compiler (c=3D0xc208c1a988, re=3D0xc208bb1030) at /home/uros/gcc-svn/trunk/libgo/go/regexp/syntax/compile.go:146 #14 0x00000200008eb444 in regexp_syntax.compile.pN22_regexp_syntax.compiler (c=3D0xc208c1a988, re=3D) at /home/uros/gcc-svn/trunk/libgo/go/regexp/syntax/compile.go:156 #15 0x00000200008eb2f0 in regexp_syntax.compile.pN22_regexp_syntax.compiler (c=3D0xc208c1a988, re=3D0xc208bb1110) at /home/uros/gcc-svn/trunk/libgo/go/regexp/syntax/compile.go:146 ... #3822 0x00000200008eb444 in regexp_syntax.compile.pN22_regexp_syntax.compil= er (c=3D0xc208c1a988, re=3D) at /home/uros/gcc-svn/trunk/libgo/go/regexp/syntax/compile.go:156 #3823 0x00000200008eb2f0 in regexp_syntax.compile.pN22_regexp_syntax.compil= er (c=3D0xc208c1a988, re=3D0xc208c2d650) at /home/uros/gcc-svn/trunk/libgo/go/regexp/syntax/compile.go:146 #3824 0x00000200008eb444 in regexp_syntax.compile.pN22_regexp_syntax.compil= er (c=3D0xc208c1a988, re=3D) at /home/uros/gcc-svn/trunk/libgo/go/regexp/syntax/compile.go:156 #3825 0x00000200008eb444 in regexp_syntax.compile.pN22_regexp_syntax.compil= er (c=3D0xc208c1a988, re=3D) at /home/uros/gcc-svn/trunk/libgo/go/regexp/syntax/compile.go:156 #3826 0x00000200008eb700 in regexp_syntax.Compile (re=3D0xc208c2d6c0) at /home/uros/gcc-svn/trunk/libgo/go/regexp/syntax/compile.go:83 #3827 0x0000000120021584 in regexp.compile (expr=3D..., mode=3D, longest=3D) at regexp.go:161 #3828 0x00000001200213dc in regexp.Compile (expr=3D...) at regexp.go:118 #3829 0x0000000120021f18 in regexp.MustCompile (str=3D...) at regexp.go:219 #3830 0x000000012000fa14 in regexp.TestOnePassCutoff (t=3D) = at all_test.go:478 #3831 0x00000200006a96ac in testing.tRunner (test=3D0xc20844f288, param=3D) at /home/uros/gcc-svn/trunk/libgo/go/testing/testing.go:422 #3832 testing.$thunk15 (__go_thunk_parameter=3D) at /home/uros/gcc-svn/trunk/libgo/go/testing/testing.go:504 #3833 0x00000200005b774c in kickoff () at /home/uros/gcc-svn/trunk/libgo/runtime/proc.c:229 #3834 0x0000020000e42264 in ?? () from /lib/libc.so.6.1 There is quite some recursion, maybe this is the reason for a deadlock. >>From gcc-bugs-return-457962-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 07 12:03:29 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 18146 invoked by alias); 7 Aug 2014 12:03:29 -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 18093 invoked by uid 48); 7 Aug 2014 12:03:25 -0000 From: "vehre at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/60255] Deferred character length variable at (1) cannot yet be associated with unlimited polymorphic entities Date: Thu, 07 Aug 2014 12:03: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vehre at gmx dot de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created 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-08/txt/msg00459.txt.bz2 Content-length: 773 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60255 Andre Vehreschild changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vehre at gmx dot de --- Comment #6 from Andre Vehreschild --- Created attachment 33267 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33267&action=edit Extended version of janus' patch. Includes testcase and more Hi, I propose an extended version of the patch janus began. I think we should also mark the symbol in the vtab to be deferred and not to have length 0 to prevent confussion with zero-length arrays. Please find patch attached and on ml. - Andre