public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/61342] New: Segfault when using default clause and VLA in OpenMP task
@ 2014-05-28 11:18 philippe.virouleau at imag dot fr
2021-02-12 11:37 ` [Bug c/61342] " jakub at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: philippe.virouleau at imag dot fr @ 2014-05-28 11:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61342
Bug ID: 61342
Summary: Segfault when using default clause and VLA in OpenMP
task
Product: gcc
Version: 4.10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: philippe.virouleau at imag dot fr
Created attachment 32871
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32871&action=edit
produced output
I got a segmentation fault from gcc when compiling a code using variable length
array inside an open mp task, with "default(none)" specified.
The minimal example that triggers the segfault with my gcc is the following :
int main()
{
int x = 2;
int y = 2;
double f_[2][2];
double (*f)[x][y] = (double (*)[x][y])f_;
#pragma omp parallel
#pragma omp master
{
for (int i = 0; i < x; i++)
for (int j = 0; j < y; j++)
#pragma omp task default(none) shared(f) firstprivate(i, j)
{
(*f)[i][j] = 1;
}
}
}
Attached is the is the produced stacktrace (with command line and gcc version),
and my operating system is Debian (Linux daisy 3.14-1-amd64 #1 SMP Debian
3.14.4-1 (2014-05-13) x86_64 GNU/Linux).
Note that removing the "default(none)" makes the code compile normally
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/61342] Segfault when using default clause and VLA in OpenMP task
2014-05-28 11:18 [Bug c/61342] New: Segfault when using default clause and VLA in OpenMP task philippe.virouleau at imag dot fr
@ 2021-02-12 11:37 ` jakub at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-02-12 11:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61342
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed by the PR85696 fix.
*** This bug has been marked as a duplicate of bug 85696 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-12 11:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-28 11:18 [Bug c/61342] New: Segfault when using default clause and VLA in OpenMP task philippe.virouleau at imag dot fr
2021-02-12 11:37 ` [Bug c/61342] " jakub at gcc dot gnu.org
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).