public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/36288] New: OpenMP-C++: segmentation fault in basic string constructors @ 2008-05-21 8:40 hailijuan at gmail dot com 2008-05-21 8:42 ` [Bug c++/36288] " hailijuan at gmail dot com ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: hailijuan at gmail dot com @ 2008-05-21 8:40 UTC (permalink / raw) To: gcc-bugs the testcase b.cc is attached to show the problem. the error just happened with -m64. -bash-3.00$ /import/dr3/s10/gcc-4.2/bin/g++ b.cc -m64 -fopenmp -bash-3.00$ export LD_LIBRARY_PATH=/import/dr3/s10/gcc-4.2/lib/sparcv9 -bash-3.00$ ./a.out Segmentation Fault (core dumped) -bash-3.00$ dbx a.out (dbx) run Running: a.out (process id 12660) Reading libc_psr.so.1 t@1 (l@1) signal SEGV (no mapping at the fault address) in _memcpy at 0xffffffff7dc00ee0 0xffffffff7dc00ee0: _memcpy+0x0660: stda %f32, [%o0] 0xf0 dbx: internal error: signal SIGSEGV (no mapping at the fault address) dbx's coredump will appear in /tmp Abort (core dumped) -bash-3.00$ /import/dr3/s10/gcc-4.2/bin/g++ -v Using built-in specs. Target: sparc-sun-solaris2.10 Configured with: /import/dr2/starlex/1/gcc-4.2-20070228/configure --prefix=/import/dr3/s10/gcc-4.2 --enable-languages=c,c++,fortran --enable-rpath --with-mpfr=/import/dr3/s10/gcc-4.2 --with-gmp=/import/dr3/s10/gcc-4.2 Thread model: posix gcc version 4.2.0 20070228 (prerelease) -- Summary: OpenMP-C++: segmentation fault in basic string constructors Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hailijuan at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36288 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/36288] OpenMP-C++: segmentation fault in basic string constructors 2008-05-21 8:40 [Bug c++/36288] New: OpenMP-C++: segmentation fault in basic string constructors hailijuan at gmail dot com @ 2008-05-21 8:42 ` hailijuan at gmail dot com 2008-05-28 7:29 ` pinskia at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: hailijuan at gmail dot com @ 2008-05-21 8:42 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from hailijuan at gmail dot com 2008-05-21 08:41 ------- Created an attachment (id=15660) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15660&action=view) C++ OpenMP program. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36288 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/36288] OpenMP-C++: segmentation fault in basic string constructors 2008-05-21 8:40 [Bug c++/36288] New: OpenMP-C++: segmentation fault in basic string constructors hailijuan at gmail dot com 2008-05-21 8:42 ` [Bug c++/36288] " hailijuan at gmail dot com @ 2008-05-28 7:29 ` pinskia at gcc dot gnu dot org 2008-05-28 7:52 ` pinskia at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2008-05-28 7:29 UTC (permalink / raw) To: gcc-bugs -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org Severity|major |normal http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36288 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/36288] OpenMP-C++: segmentation fault in basic string constructors 2008-05-21 8:40 [Bug c++/36288] New: OpenMP-C++: segmentation fault in basic string constructors hailijuan at gmail dot com 2008-05-21 8:42 ` [Bug c++/36288] " hailijuan at gmail dot com 2008-05-28 7:29 ` pinskia at gcc dot gnu dot org @ 2008-05-28 7:52 ` pinskia at gcc dot gnu dot org 2008-05-28 7:53 ` [Bug middle-end/36288] " pinskia at gcc dot gnu dot org 2008-05-28 8:55 ` hailijuan at gmail dot com 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2008-05-28 7:52 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from pinskia at gcc dot gnu dot org 2008-05-28 07:51 ------- Hmm, I don't think this is a bug as the assignment of the string is not going to be atomic so you could get a partial assignment of a.astr happening. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36288 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/36288] OpenMP-C++: segmentation fault in basic string constructors 2008-05-21 8:40 [Bug c++/36288] New: OpenMP-C++: segmentation fault in basic string constructors hailijuan at gmail dot com ` (2 preceding siblings ...) 2008-05-28 7:52 ` pinskia at gcc dot gnu dot org @ 2008-05-28 7:53 ` pinskia at gcc dot gnu dot org 2008-05-28 8:55 ` hailijuan at gmail dot com 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2008-05-28 7:53 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from pinskia at gcc dot gnu dot org 2008-05-28 07:53 ------- Is there a reason why you think this is well defined code? -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |middle-end http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36288 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/36288] OpenMP-C++: segmentation fault in basic string constructors 2008-05-21 8:40 [Bug c++/36288] New: OpenMP-C++: segmentation fault in basic string constructors hailijuan at gmail dot com ` (3 preceding siblings ...) 2008-05-28 7:53 ` [Bug middle-end/36288] " pinskia at gcc dot gnu dot org @ 2008-05-28 8:55 ` hailijuan at gmail dot com 4 siblings, 0 replies; 6+ messages in thread From: hailijuan at gmail dot com @ 2008-05-28 8:55 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from hailijuan at gmail dot com 2008-05-28 08:54 ------- Subject: Re: OpenMP-C++: segmentation fault in basic string constructors no. thanks for your comments. i have correct the testcase. the error is gone with gcc-4.2. thanks again. 2008/5/28 pinskia at gcc dot gnu dot org <gcc-bugzilla@gcc.gnu.org>: > > > ------- Comment #3 from pinskia at gcc dot gnu dot org 2008-05-28 07:53 ------- > Is there a reason why you think this is well defined code? > > > -- > > pinskia at gcc dot gnu dot org changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Component|c++ |middle-end > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36288 > > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36288 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-05-28 8:55 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-05-21 8:40 [Bug c++/36288] New: OpenMP-C++: segmentation fault in basic string constructors hailijuan at gmail dot com 2008-05-21 8:42 ` [Bug c++/36288] " hailijuan at gmail dot com 2008-05-28 7:29 ` pinskia at gcc dot gnu dot org 2008-05-28 7:52 ` pinskia at gcc dot gnu dot org 2008-05-28 7:53 ` [Bug middle-end/36288] " pinskia at gcc dot gnu dot org 2008-05-28 8:55 ` hailijuan at gmail 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).