From kdevelop-bugs Thu Jun 17 10:11:57 1999 From: Marko Grönroos Date: Thu, 17 Jun 1999 10:11:57 +0000 To: kdevelop-bugs Subject: KDevelop crashes while parsing sources [13:00,17.06.99] X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=93303751621876 > Bugreport ID : 13:00,17.06.99 > Originator : Marko Grönroos > E-Mail : magi@iki.fi > Subject : KDevelop crashes while parsing sources > Error Class : software bug > Error Location: logical file tree > Priority : high > Severity : critical > Bug Description --------------------------- KDevelop crashes while parsing source files (at startup and otherwise) if there are syntactic errors in the source: [magi@magi ~]$ kdevelop CClassView::refresh( proj ) parsing:[/home/magi/c/testiprojekti/testiprojekti/testiprojekti.h] parsing:[/home/magi/c/testiprojekti/testiprojekti/testiprojektidoc.h] parsing:[/home/magi/c/testiprojekti/testiprojekti/testiprojektiview.h] Virtual memory exceeded in `new' (Crashing takes actually about a minute, as the machine starts swapping a lot) This was caused because of erroneous line in the code, more specifically: ... protected: virtual public: } You may ask why does it read "virtual" there. I was trying to write a method declaration, and tried to copy&paste the declaration from elsewhere. When I hit the Paste-button, the kdevelop reserved lots of memory, until it crashed. But apparently it had saved the file, so it then crashed every time at startup until I removed the word "virtual" from there. > How to repeat the error ------------------- > Bugfix or Workaround ---------------------- Workaround: don't write erroneous code. > System Information ------------------------ > KDevelop version : 0.4 > KDE version : 1.1.1 > QT version : 1.42 > OS/Distribution : Linux 2.2.3 / Redhat 5.2 > Compiler : egcs-2.90.29 980515 (egcs-1.0.3 release)