This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/10269: ncurses function in class causes malloc() syscall to loop infinitly


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]