public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/59384] New: Cilk Plus array notation with for loop after segfaults
@ 2013-12-04 15:41 nick.tomlinson at arm dot com
2014-01-07 16:06 ` [Bug other/59384] " bviyer at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: nick.tomlinson at arm dot com @ 2013-12-04 15:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59384
Bug ID: 59384
Summary: Cilk Plus array notation with for loop after segfaults
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: nick.tomlinson at arm dot com
CC: bviyer at gcc dot gnu.org
Created attachment 31380
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31380&action=edit
Minimal reproducer
When I compile the attached file, GCC segfaults. This appears to be a result of
having a Cilk Plus array notation assignment followed by a for loop using the
array assigned to.
The attached file is a minimal (un-preprocessed to preserve comments; there are
no includes or preprocessor macros) reproducer. The comments include
observations about what triggers the bug, a stack trace from GCC, the output of
gcc -v, and the command line used to compile it.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/59384] Cilk Plus array notation with for loop after segfaults
2013-12-04 15:41 [Bug other/59384] New: Cilk Plus array notation with for loop after segfaults nick.tomlinson at arm dot com
@ 2014-01-07 16:06 ` bviyer at gmail dot com
2014-01-22 14:19 ` nick.tomlinson at arm dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bviyer at gmail dot com @ 2014-01-07 16:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59384
--- Comment #1 from Balaji V. Iyer <bviyer at gmail dot com> ---
Hi Nick,
I am sorry for taking a while to get back to you. As you can tell from
gcc-patches mailing list, we are actively pursuing to try and push Cilk
Plus into trunk. We have submitted a updated patch for _Cilk_for for review
for trunk in this thread (
http://gcc.gnu.org/ml/gcc-patches/2014-01/msg00235.html).
I looked at this bug and it looks like this bug does not appear if you use
_Cilk_for implementation in the thread mentioned above.
Thanks,
Balaji V. Iyer.
PS. The code snippet could have a race-condition. I think if you switch the
for and _Cilk_for the race might go away.
On Mon, Dec 16, 2013 at 6:09 AM, nick.tomlinson at arm dot com <
gcc-bugzilla@gcc.gnu.org> wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59384
>
> Nick Tomlinson <nick.tomlinson at arm dot com> changed:
>
> What |Removed |Added
>
> ----------------------------------------------------------------------------
> Target| |x86_64
> Host| |x86_64
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/59384] Cilk Plus array notation with for loop after segfaults
2013-12-04 15:41 [Bug other/59384] New: Cilk Plus array notation with for loop after segfaults nick.tomlinson at arm dot com
2014-01-07 16:06 ` [Bug other/59384] " bviyer at gmail dot com
@ 2014-01-22 14:19 ` nick.tomlinson at arm dot com
2014-01-22 16:04 ` bviyer at gmail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: nick.tomlinson at arm dot com @ 2014-01-22 14:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59384
--- Comment #2 from Nick Tomlinson <nick.tomlinson at arm dot com> ---
I tried that patch against the latest CilkPlus branch, but could not apply it.
I also tried building GCC 4.9 from trunk, but could not use cilk_for. Please
could you let me know if there is a branch that supports both cilk_for and
array notation?
Thanks
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/59384] Cilk Plus array notation with for loop after segfaults
2013-12-04 15:41 [Bug other/59384] New: Cilk Plus array notation with for loop after segfaults nick.tomlinson at arm dot com
2014-01-07 16:06 ` [Bug other/59384] " bviyer at gmail dot com
2014-01-22 14:19 ` nick.tomlinson at arm dot com
@ 2014-01-22 16:04 ` bviyer at gmail dot com
2014-01-24 12:46 ` nick.tomlinson at arm dot com
2014-01-24 12:48 ` nick.tomlinson at arm dot com
4 siblings, 0 replies; 6+ messages in thread
From: bviyer at gmail dot com @ 2014-01-22 16:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59384
Balaji V. Iyer <bviyer at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bviyer at gmail dot com
--- Comment #3 from Balaji V. Iyer <bviyer at gmail dot com> ---
Try this patch and the trunk revision mentioned in the thread:
http://gcc.gnu.org/ml/gcc-patches/2014-01/msg01170.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/59384] Cilk Plus array notation with for loop after segfaults
2013-12-04 15:41 [Bug other/59384] New: Cilk Plus array notation with for loop after segfaults nick.tomlinson at arm dot com
` (2 preceding siblings ...)
2014-01-22 16:04 ` bviyer at gmail dot com
@ 2014-01-24 12:46 ` nick.tomlinson at arm dot com
2014-01-24 12:48 ` nick.tomlinson at arm dot com
4 siblings, 0 replies; 6+ messages in thread
From: nick.tomlinson at arm dot com @ 2014-01-24 12:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59384
--- Comment #4 from Nick Tomlinson <nick.tomlinson at arm dot com> ---
Created attachment 31944
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31944&action=edit
Example that is broken when the suggested patch is used.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/59384] Cilk Plus array notation with for loop after segfaults
2013-12-04 15:41 [Bug other/59384] New: Cilk Plus array notation with for loop after segfaults nick.tomlinson at arm dot com
` (3 preceding siblings ...)
2014-01-24 12:46 ` nick.tomlinson at arm dot com
@ 2014-01-24 12:48 ` nick.tomlinson at arm dot com
4 siblings, 0 replies; 6+ messages in thread
From: nick.tomlinson at arm dot com @ 2014-01-24 12:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59384
--- Comment #5 from Nick Tomlinson <nick.tomlinson at arm dot com> ---
Hello
I tried the new patch against the suggested revision (patch and revision from
http://gcc.gnu.org/ml/gcc-patches/2014-01/msg01170.html). While I was able to
patch and build GCC, I get an incorrect warning from GCC when using _Cilk_for,
and the resulting program segfaults. See the attached reproducer.
Thanks
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-01-24 12:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-04 15:41 [Bug other/59384] New: Cilk Plus array notation with for loop after segfaults nick.tomlinson at arm dot com
2014-01-07 16:06 ` [Bug other/59384] " bviyer at gmail dot com
2014-01-22 14:19 ` nick.tomlinson at arm dot com
2014-01-22 16:04 ` bviyer at gmail dot com
2014-01-24 12:46 ` nick.tomlinson at arm dot com
2014-01-24 12:48 ` nick.tomlinson at arm 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).