public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46811] New: Compiler lock with no error message while compiling boost::condition with bad parameters
@ 2010-12-05 17:23 pedro_nf at yahoo dot com
2010-12-05 17:26 ` [Bug c++/46811] " pedro_nf at yahoo dot com
2021-08-11 23:22 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: pedro_nf at yahoo dot com @ 2010-12-05 17:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46811
Summary: Compiler lock with no error message while compiling
boost::condition with bad parameters
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: pedro_nf@yahoo.com
Created attachment 22644
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22644
This version of the program locks the compiler
I'm not sure if this is a gcc problem or boost problem. This problem happens
while compiling a simple application that uses boost::condition. In fact I made
a mistake and exchanged the 2nd and 3rd parameters of the condition.timed_wait
function. Instead of a compiler error, the compiler will do nothing for a long
time and then it will start printing the same string over and over again, this
is an extract of my console after a ctrl-C:
oost::lambda::plus_action>, boost::tuples::tuple<const
boost::posix_time::ptime,
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::arithmetic_action<boost::lambda::plus_action>,
boost::tuples::tuple<const boost::posix_time::ptime,
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::arithmetic_action<boost::lambda::plus_action>,
boost::tuples::tuple<const boost::posix_time::ptime,
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::arithmetic_action<boost::lambda::plus_action>,
boost::tuples::tuple<const boost::posix_time::ptime,
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::arithmetic_action<boost::lambda::plus_action>,
boost::tuples::tuple<const boost::posix_ti^C
It will stay like this for a very long time. If I compile the same program but
with the timed_wait parameters in the good order then it compiles instantly.
I saw this first at work using a Fedora 12 and boost 1.41. My PC at work is not
very fast so the wait was very long. I lost about 1 hour trying to compile with
no error message until I realized my mistake.
Now I'm at home using a Fedora 14 and boost 1.44 and I have the same behaviour.
But with a AMD Phenom(tm) II X6 1090T Processor the timing is much shorter, two
initial minutes of nothing, followed by 10 minutes of printing the same strings
over and over and then it stops with no error message.
My configuration:
gcc-4.5.1-4.fc14.x86_64
boost-1.44.0-1.fc14.x86_64
Linux ********* 2.6.35.6-48.fc14.x86_64 #1 SMP Fri Oct 22 15:36:08 UTC 2010
x86_64 x86_64 x86_64 GNU/Linux
To reproduce it just try to compile the gcc-lock.cpp file in attach.
Exchanging the 2nd and 3rd parameters of the timed_wait function will fix the
problem and it will compile instantly.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/46811] Compiler lock with no error message while compiling boost::condition with bad parameters
2010-12-05 17:23 [Bug c++/46811] New: Compiler lock with no error message while compiling boost::condition with bad parameters pedro_nf at yahoo dot com
@ 2010-12-05 17:26 ` pedro_nf at yahoo dot com
2021-08-11 23:22 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pedro_nf at yahoo dot com @ 2010-12-05 17:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46811
--- Comment #1 from pedro_nf at yahoo dot com 2010-12-05 17:26:16 UTC ---
Created attachment 22645
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22645
The same program but with the correct parameters, it compiles instantly
This is the same program but with the timed_wait parameters in the good order,
it compiles instantly.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/46811] Compiler lock with no error message while compiling boost::condition with bad parameters
2010-12-05 17:23 [Bug c++/46811] New: Compiler lock with no error message while compiling boost::condition with bad parameters pedro_nf at yahoo dot com
2010-12-05 17:26 ` [Bug c++/46811] " pedro_nf at yahoo dot com
@ 2021-08-11 23:22 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-11 23:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46811
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I can reproduce the problem with boost 1.63 but using 1.74 fixes the issue.
Note even clang takes a long time to error out with 1.63.
So I really doubt there is much to be done here.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-11 23:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-05 17:23 [Bug c++/46811] New: Compiler lock with no error message while compiling boost::condition with bad parameters pedro_nf at yahoo dot com
2010-12-05 17:26 ` [Bug c++/46811] " pedro_nf at yahoo dot com
2021-08-11 23:22 ` pinskia 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).