Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Hitting breakpoint freezes UI in Ubuntu, requiring reboot(Hitting breakpoint freezes UI in Ubuntu, requiring reboot)
Hitting breakpoint freezes UI in Ubuntu, requiring reboot [message #1718807] Wed, 30 December 2015 10:15 Go to next message
Eclipse UserFriend
I've got a catastrophic bug using Eclipse (64-bit C++ application, CDT, gcc, gdb on Ubuntu 14.04).
I filed a bug report here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=484870

I'm not sure I've selected the correct "Product" (yes, I read the FAQ, but it was not helpful).
No response yet - possibly everybody's off for the holidays.

Any hints?
Thanks in advance for any help with bug reporting or work-around!
Best Regards, Dave
Re: Hitting breakpoint freezes UI in Ubuntu, requiring reboot [message #1718830 is a reply to message #1718807] Wed, 30 December 2015 15:48 Go to previous messageGo to next message
Eclipse UserFriend
There is a gdb log when debugging with Eclipse. What does it say?
Try running another debugger (say, ddd) and see what happens. They key, of course, is to eliminate variables. Try running with gdb alone.

Eclipse sometimes gets lost at a breakpoint presumably trying to load variable values. However, I've never lost UI control when this happens but have had to terminate the run or sometimes terminate Eclipse.

Is the machine frozen or is focus being held (sans cursor) somewhere? One advantage to running with two machines is the ability to ssh in and at least kill the running program. Can also be done from an Android phone. Saves having to reboot.

Unfortunately, submitting a bug doesn't mean anyone will act on it or even acknowledge its existence.. There are bugs listed that have been outstanding since forever. sometimes, though they are quietly corrected without a response in Bugzilla.

It's one of the problems with free open source: you are really on your own.

Re: Hitting breakpoint freezes UI in Ubuntu, requiring reboot [message #1718839 is a reply to message #1718830] Wed, 30 December 2015 19:07 Go to previous messageGo to next message
Eclipse UserFriend
David Vavra wrote on Wed, 30 December 2015 20:48
There is a gdb log when debugging with Eclipse. What does it say?


Where can I find this log file?

David Vavra wrote on Wed, 30 December 2015 20:48
Try running another debugger (say, ddd) and see what happens. They key, of course, is to eliminate variables. Try running with gdb alone.

Eclipse sometimes gets lost at a breakpoint presumably trying to load variable values. However, I've never lost UI control when this happens but have had to terminate the run or sometimes terminate Eclipse.

Is the machine frozen or is focus being held (sans cursor) somewhere? One advantage to running with two machines is the ability to ssh in and at least kill the running program. Can also be done from an Android phone. Saves having to reboot.


The machine is not frozen (when I power it down, I see the normal shutdown processing). The UI is truly buggered, so mouse moves but clicks do nothing. Some keys function but not enough to operate Eclipse or change to a different window.

I don't understand what a 2nd machine will help with - I still can't debug?

David Vavra wrote on Wed, 30 December 2015 20:48
Unfortunately, submitting a bug doesn't mean anyone will act on it or even acknowledge its existence.. There are bugs listed that have been outstanding since forever. sometimes, though they are quietly corrected without a response in Bugzilla.

It's one of the problems with free open source: you are really on your own.


Ironically, I'm trying to contribute to another open source project, but blocked by this...
If I have some time I'll attempt to use gdb directly but its been some years...
Thanks for the reply,
Best Regards, Dave
Re: Hitting breakpoint freezes UI in Ubuntu, requiring reboot [message #1718843 is a reply to message #1718839] Wed, 30 December 2015 21:15 Go to previous messageGo to next message
Eclipse UserFriend
The gdb log is one of the consoles when debugging. There's a pull down menu to select it.

The 2nd machine gives the "ability to ssh in and at least kill the running program". You can also run anther debugger and attach to tasks but it's tricky. If the machine is frozen you couldn't even use ssh which is why I asked. If you don't mind rebooting then reboot.

There's always ddd instead of gdb. It's more like the Eclipse interface. Somewhat klunkier though.
Re: Hitting breakpoint freezes UI in Ubuntu, requiring reboot [message #1718871 is a reply to message #1718843] Thu, 31 December 2015 07:49 Go to previous messageGo to next message
Eclipse UserFriend
Hi Dave,
reading your report I'd like to raise a couple of simple points, hope it helps. First, from what you say it's only Eclipse that it's frozen, not the machine. If so, there is no need to reboot it, just kill eclipse from the console Very Happy

Now I've seldom utilised gdb inside eclipse, so I am not very knowledgeable of using this combo. Though if the target you are debugging is rather large, then the freeze might be due to gdb attempting to load/read all the symbols in the target. To consider the size of the target, keep in mind all the dynamic libraries that are linked. To check whether this might be your case, try to run both top and gdb in a terminal, debugging your target and hitting <TAB> to set a breakpoint (for an autocompletion), it will kick off the loading of symbols.
Re: Hitting breakpoint freezes UI in Ubuntu, requiring reboot [message #1718894 is a reply to message #1718843] Fri, 01 January 2016 10:27 Go to previous messageGo to next message
Eclipse UserFriend
David Vavra wrote on Thu, 31 December 2015 02:15
The gdb log is one of the consoles when debugging. There's a pull down menu to select it.


The UI is frozen, so I cannot select a menu.

The breakpoint information is displayed completely on the screen, including stack info, variables, whatever I had set up in the debug context. Hence, it looks like Eclipse has managed to freeze the UI (does not look like a gdb problem).
Re: Hitting breakpoint freezes UI in Ubuntu, requiring reboot [message #1718895 is a reply to message #1718871] Fri, 01 January 2016 10:29 Go to previous message
Eclipse UserFriend
Mickey Mouse wrote on Thu, 31 December 2015 12:49
Hi Dave,
reading your report I'd like to raise a couple of simple points, hope it helps. First, from what you say it's only Eclipse that it's frozen, not the machine. If so, there is no need to reboot it, just kill eclipse from the console Very Happy


The entire UI is frozen. I cannot access a console window. Killing Eclipse would not help with debugging the application...
Previous Topic:Unable to Run or Debug code using GSL
Next Topic:linux path on windows output consol
Goto Forum:
  


Current Time: Thu Nov 06 19:48:12 EST 2025

Powered by FUDForum. Page generated in 0.04198 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top