This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 198498 - C++ debugger randomly chooses not to run at all (until Netbeans restart)
Summary: C++ debugger randomly chooses not to run at all (until Netbeans restart)
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: henk89
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-11 04:16 UTC by m_gol
Modified: 2012-06-09 04:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m_gol 2011-05-11 04:16:10 UTC
I often experience many issues involving how Netbeans handle C++ projects. First of all, it sometimes (randomly) chooses not to activate the "Step into" global option and I can't just press F7 to start debugging, I have to right-click the project (which is set as main project!) and click "Step into".

Secondly, very often clicking "Step into" makes Netbeans point me at the end of my few short functions (actually, at the end of the first one) and nothing works, neither "Step into" nor "Step over". Restarting the debugger doesn't help, I have to restart Netbeans and re-add all my watches...

It really hampers writing performance, so I consider it critical.

I use Ubuntu 11.04 x64.
Comment 1 Egor Ushakov 2011-05-11 07:22:35 UTC
please attach gdblog (http://wiki.netbeans.org/GdbLog) from one of these sessions
Comment 2 m_gol 2011-05-11 08:08:55 UTC
I found this at the end of the log (just when it hangs):

~"/build/buildd/gdb-7.2/gdb/thread.c:598: internal-error: is_thread_state: Assertion `tp' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.\nQuit this debugging session? "
~"(y or n) [answered Y; input not from terminal]\n"
~"/build/buildd/gdb-7.2/gdb/thread.c:598: internal-error: is_thread_state: Assertion `tp' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.\nCreate a core file of GDB? "
~"(y or n) [answered Y; input not from terminal]\n"

So I suppose I should report it to GDB?
Comment 3 Egor Ushakov 2011-05-11 08:11:29 UTC
I think so, anyway it is strange that the next gdb session is impossible until you restart the IDE...
Comment 4 m_gol 2011-05-11 08:14:40 UTC
Yes, it is strange. It took me some time to make this error appear again (Murphy's laws in effect) to report it here but once it happened, stopping execution, rebuilding everything and clicking "Step into" hung IDE immediately...
Comment 5 m_gol 2011-05-11 08:16:41 UTC
Sorry for double posting, but I remembered one thing - when these things crash I also get a compiz crash. I have to restart it then using "compiz --replace"...
Comment 6 m_gol 2011-05-11 19:46:30 UTC
OK, but even though GDB seems to be at its fault we still have two Netbeans issues:
1) to make GDB work again I have to restart Netbeans (and Netbeans should close GDB process at termination so this shouldn't happen)
2) I often have to manually click "Step into" by right-clicking the main project, even though it should be accessible via main Debug menu and the F7 key.
Comment 7 Egor Ushakov 2011-05-12 09:59:52 UTC
agree, will fix
Comment 8 Alexander Pepin 2011-07-06 14:05:44 UTC
No QA action needed.
Comment 9 Egor Ushakov 2012-04-19 13:33:57 UTC
we need to detect that gdb has died (or core dumped), show notification to the user and close the session. Now if gdb dies all buttons are still enabled but do nothing and it is impossible to kill the session.
Comment 10 henk89 2012-05-28 09:58:06 UTC
Fixed in:
http://hg.netbeans.org/cnd-main/rev/51a4b9da00a2
Comment 11 Quality Engineering 2012-05-29 05:49:11 UTC
Integrated into 'main-golden', will be available in build *201205290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/51a4b9da00a2
User: Nikolay Koldunov <henk89@netbeans.org>
Log: Fixed #198498 - C++ debugger randomly chooses not to run at all (until Netbeans restart)
Comment 12 henk89 2012-05-29 10:38:32 UTC
Extra fix:
http://hg.netbeans.org/cnd-main/rev/8b85ec33feae
Comment 13 Quality Engineering 2012-06-09 04:34:13 UTC
Integrated into 'main-golden', will be available in build *201206090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8b85ec33feae
User: Nikolay Koldunov <henk89@netbeans.org>
Log: Extra fix #198498 - C++ debugger randomly chooses not to run at all (until Netbeans restart)