From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22635 invoked by alias); 15 Jun 2012 06:57:59 -0000 Received: (qmail 22624 invoked by uid 22791); 15 Jun 2012 06:57:58 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,TW_JH,TW_JJ X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Jun 2012 06:57:44 +0000 From: "jjhforrest at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53672] gcc/branches/cilkplus does not like C++ spawn (when optimized) Date: Fri, 15 Jun 2012 06:57: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jjhforrest at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 X-SW-Source: 2012-06/txt/msg00977.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53672 --- Comment #3 from John Forrest 2012-06-15 0= 6:57:43 UTC --- Balaji, Attached - AbcMatrix.ii gives segfault using "compile" There are more than a dozen places in my code where code such as - > for (int i=3D0;i which[i]=3Dcilk_spawn pivotColumnDantzig(i,useRowCopy,updates,spare,= best[i]); > which[numberBlocks-1]=3DpivotColumnDantzig(numberBlocks-1,useRowCopy,u= pdates, > spare,best[numberBlocks-1]); > cilk_sync; > inside a class such as AbcMatrix segfaults on compilation. If I=20 create a non class static function doWork(AbcMatrix * matrix, other=20 stuff) and in that function do which[i]=3Dcilk_spawn(matrix,other stuff) it works. There is not much of an overhead but is ugly and time consuming. Hope you can reproduce fault. Regards, John On 14/06/12 17:56, bviyer at gmail dot com wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53672 > > Balaji V. Iyer changed: > > What |Removed |Added > -------------------------------------------------------------------------= --- > CC| |bviyer at gmail dot com > > --- Comment #1 from Balaji V. Iyer 2012-06-14 1= 6:56:19 UTC --- > Hello John, > This problem seem to be fixed as of this commit: > > git:0ac59c91905a106865589114d4e55f0c7f256874 > svn: revision:188147 > > I tried your code and mine passes fine. > > Thanks, > > Balaji V. Iyer. >