public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33372] New: segfault on incomplete code in openmp mode
@ 2007-09-10 1:45 gcc at abeckmann dot de
2007-09-11 20:04 ` [Bug libgomp/33372] " bangerth at dealii dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: gcc at abeckmann dot de @ 2007-09-10 1:45 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1796 bytes --]
Playing with the code reduction tools, i produced a segfault with the following
(incomplete) code:
=======================================
template < typename T >
void f ( )
{
unsigned n ( ) ;
#pragma omp parallel num_threads(n)
=======================================
$ /suse/NOBACKUP/gcc/gcc-4.2-branch/bin/g++ -v -march=i686 -O3 -fopenmp -W
-Wall -c segfault2.ii
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4_2-branch/configure --enable-languages=c,c++
--prefix=/suse/NOBACKUP/gcc/gcc-4.2-branch
Thread model: posix
gcc version 4.2.2 20070910 (prerelease)
/suse/NOBACKUP/gcc/gcc-4.2-branch/libexec/gcc/i686-pc-linux-gnu/4.2.2/cc1plus
-fpreprocessed segfault2.ii -quiet -dumpbase segfault2.ii -march=i686 -auxbase
segfault2 -O3 -W -Wall -version -fopenmp -o /tmp/ccUQF7PA.s
GNU C++ version 4.2.2 20070910 (prerelease) (i686-pc-linux-gnu)
compiled by GNU C version 4.2.2 20070908 (prerelease).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 4c766e638e42be49e7fc1a3400590598
segfault2.ii: In function void f():
segfault2.ii:5: internal compiler error: Segmentation fault
without -fopenmp, I get
segfault2.ii:5: warning: ignoring #pragma omp parallel
segfault2.ii:4: error: expected `}' at end of input
--
Summary: segfault on incomplete code in openmp mode
Product: gcc
Version: 4.2.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc at abeckmann dot de
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33372
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgomp/33372] segfault on incomplete code in openmp mode
2007-09-10 1:45 [Bug c++/33372] New: segfault on incomplete code in openmp mode gcc at abeckmann dot de
@ 2007-09-11 20:04 ` bangerth at dealii dot org
2007-10-22 2:46 ` [Bug c++/33372] " jakub at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: bangerth at dealii dot org @ 2007-09-11 20:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from bangerth at dealii dot org 2007-09-11 20:04 -------
Confirmed.
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|c++ |libgomp
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-09-11 20:04:11
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33372
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/33372] segfault on incomplete code in openmp mode
2007-09-10 1:45 [Bug c++/33372] New: segfault on incomplete code in openmp mode gcc at abeckmann dot de
2007-09-11 20:04 ` [Bug libgomp/33372] " bangerth at dealii dot org
@ 2007-10-22 2:46 ` jakub at gcc dot gnu dot org
2007-10-22 19:11 ` jakub at gcc dot gnu dot org
2007-12-03 3:48 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-10-22 2:46 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Component|libgomp |c++
Last reconfirmed|2007-09-11 20:04:11 |2007-10-22 02:45:50
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33372
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/33372] segfault on incomplete code in openmp mode
2007-09-10 1:45 [Bug c++/33372] New: segfault on incomplete code in openmp mode gcc at abeckmann dot de
2007-09-11 20:04 ` [Bug libgomp/33372] " bangerth at dealii dot org
2007-10-22 2:46 ` [Bug c++/33372] " jakub at gcc dot gnu dot org
@ 2007-10-22 19:11 ` jakub at gcc dot gnu dot org
2007-12-03 3:48 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-10-22 19:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2007-10-22 19:11 -------
Subject: Bug 33372
Author: jakub
Date: Mon Oct 22 19:11:36 2007
New Revision: 129555
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129555
Log:
PR c++/33372
* semantics.c (finish_omp_clauses): Check !type_dependent_expression_p
before checking if its type is integral.
* g++.dg/gomp/pr33372-1.C: New test.
* g++.dg/gomp/pr33372-2.C: New test.
* g++.dg/gomp/pr33372-3.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/gomp/pr33372-1.C
trunk/gcc/testsuite/g++.dg/gomp/pr33372-2.C
trunk/gcc/testsuite/g++.dg/gomp/pr33372-3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33372
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/33372] segfault on incomplete code in openmp mode
2007-09-10 1:45 [Bug c++/33372] New: segfault on incomplete code in openmp mode gcc at abeckmann dot de
` (2 preceding siblings ...)
2007-10-22 19:11 ` jakub at gcc dot gnu dot org
@ 2007-12-03 3:48 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-12-03 3:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-12-03 03:48 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Keywords| |ice-on-invalid-code
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33372
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-12-03 3:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-10 1:45 [Bug c++/33372] New: segfault on incomplete code in openmp mode gcc at abeckmann dot de
2007-09-11 20:04 ` [Bug libgomp/33372] " bangerth at dealii dot org
2007-10-22 2:46 ` [Bug c++/33372] " jakub at gcc dot gnu dot org
2007-10-22 19:11 ` jakub at gcc dot gnu dot org
2007-12-03 3:48 ` pinskia at gcc dot gnu dot 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).