public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/32550] openmp: COPYPRIVATE of pointer variables fails Date: Fri, 29 Jun 2007 21:00:00 -0000 [thread overview] Message-ID: <20070629210043.11254.qmail@sourceware.org> (raw) In-Reply-To: <bug-32550-14710@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from dfranke at gcc dot gnu dot org 2007-06-29 21:00 ------- Bill, thanks for your report! Here's a slightly simplified testcase: $> cat pr32550.f90 integer, pointer, save :: ptr integer, target :: targ !$omp threadprivate(ptr) !$omp parallel shared(targ) !$omp single ptr => targ !$omp end single copyprivate(ptr) !$omp end parallel END The testcase compiles, but crashes on execution (SIGSEGV). If the COPYPRIVATE-clause or the pointer/target attributes are removed, the resulting binary does not crash. Output from gdb is not very helpful, but valgrind gives: ==32677== Thread 2: ==32677== Invalid write of size 4 ==32677== at 0x80486FE: MAIN__.omp_fn.0 (pr32550.f90:9) ==32677== by 0x40FAFFC: gomp_thread_start (team.c:108) ==32677== by 0x410F2C0: start_thread (in /lib/libpthread-2.5.so) ==32677== by 0x41D8FAD: clone (in /lib/libc-2.5.so) ==32677== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==32677== ==32677== Process terminating with default action of signal 11 (SIGSEGV) ==32677== Access not within mapped region at address 0x0 ==32677== at 0x80486FE: MAIN__.omp_fn.0 (pr32550.f90:9) ==32677== by 0x40FAFFC: gomp_thread_start (team.c:108) ==32677== by 0x410F2C0: start_thread (in /lib/libpthread-2.5.so) ==32677== by 0x41D8FAD: clone (in /lib/libc-2.5.so) Adding Jakub as CC. -- dfranke at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dfranke at gcc dot gnu dot | |org, jakub at gcc dot gnu | |dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 GCC build triplet|x86_64-suse-linux | GCC host triplet|x86_64-suse-linux | GCC target triplet|x86_64-suse-linux | Keywords| |openmp Known to fail| |4.2.1 4.3.0 Last reconfirmed|0000-00-00 00:00:00 |2007-06-29 21:00:42 date| | Summary|THE COPYPRIVATE CLAUSE FAILS|openmp: COPYPRIVATE of |TO COPY THE PTR AT THE END |pointer variables fails |OF A 'SINGLE' CONSTRUCT | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32550
next prev parent reply other threads:[~2007-06-29 21:00 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-06-29 18:46 [Bug fortran/32550] New: THE COPYPRIVATE CLAUSE FAILS TO COPY THE PTR AT THE END OF A 'SINGLE' CONSTRUCT longb at cray dot com 2007-06-29 21:00 ` dfranke at gcc dot gnu dot org [this message] 2007-07-02 11:17 ` [Bug fortran/32550] openmp: COPYPRIVATE of pointer variables fails jakub at gcc dot gnu dot org 2007-07-12 12:17 ` jakub at gcc dot gnu dot org 2007-07-12 12:21 ` jakub at gcc dot gnu dot org 2007-09-17 22:38 ` jakub at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20070629210043.11254.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).