This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10269: ncurses function in class causes malloc() syscall to loop infinitly
- From: bangerth at dealii dot org
- To: fr33z3 at sources dot redhat dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gmx dot net at sources dot redhat dot com, nobody at gcc dot gnu dot org
- Date: 31 Mar 2003 15:41:58 -0000
- Subject: Re: c++/10269: ncurses function in class causes malloc() syscall to loop infinitly
- Reply-to: bangerth at dealii dot org, fr33z3 at sources dot redhat dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gmx dot net at sources dot redhat dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: ncurses function in class causes malloc() syscall to loop infinitly
State-Changed-From-To: open->feedback
State-Changed-By: bangerth
State-Changed-When: Mon Mar 31 15:41:58 2003
State-Changed-Why:
I don't have the necessary libraries and header files
installed on my system, so can't test. However, I think
it's a bug in your code: in this part of your code
if (1) {
mask omask;
omask.~mask();
}
The destructor of omask is called twice. Since you do
some memory deallocation there, I would not be entirely
surprised if that would lead to strange effects later on.
Can you say what happens if you fix this?
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10269