c++/10269: ncurses function in class causes malloc() syscall to loop infinitly
bangerth@dealii.org
bangerth@dealii.org
Mon Mar 31 16:24:00 GMT 2003
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
More information about the Gcc-bugs
mailing list