Bug #17256 2010-06-14 07:39

clemens1509

Debugger->Watch-window not thread safe

remove watche-variable quickly after a step and gdb is still waiting for some variables, the C::B crashes.

Category
Application::Crash
Group
 
Status
Closed
Close date
2010-09-27 14:14
Assigned to
jenslody
ID_56653 2010-06-16 13:53

I am also seeing some problems with watch variables. You risk a crash if a variable goes out of scope. In addition, if you stopped debugging with variables still in the watch window, and then start debugging again, the IDE can crash. SIGSEGV.

ollydbg 2010-06-26 01:18

Which type of variable did you watch?

GDB has no idea (little idea) about the scope of a variable.

Can you give some sample code?

clemens1509 2010-06-26 16:27

It crashes on any variable.

when I remove a watch-variable in the watchwindow while C::B is retrieving the value from gdb it crashes in the moment gdb is ready.

I guess C::B has a reference to the watch-variable and the reference isn't valid when gdb print out the value and C::B tries to write into the variable.

Hope this helps ?

jenslody 2010-09-27 14:14

This bug is now fixed in HEAD.

Thank you for reporting it.