Recent

Author Topic: Using OpenDialog to add lines to DBMemo crashes debugger in Lazarus  (Read 5934 times)

bill0287

  • Full Member
  • ***
  • Posts: 146
See attached project.

If I add an OpenDialog component to the project, press F9, execute the dialog in some way, and then close the running application I get a "gdb.exe has stopped running error".  No problems with the project until the opendialog component is added.

Could this be a bug?

Lazarus 1.0.14 32-bit FPC 2.6.2 running on Win7 64-bit.

« Last Edit: January 03, 2014, 03:49:21 am by bill0287 »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12016
  • Debugger - SynEdit - and more
    • wiki
Re: Using OpenDialog to add lines to DBMemo crashes debugger in Lazarus
« Reply #1 on: January 02, 2014, 08:32:49 pm »
Most likely a bug in gdb.

on 64 bit the open dialog can also trigger the "SEH" (search forum) issue, but that is unrelated.

Most likely http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#gdb.exe_has_stopped_working

If that does not help, see end of the above page, for how to get a logfile.


bill0287

  • Full Member
  • ***
  • Posts: 146
Re: Using OpenDialog to add lines to DBMemo crashes debugger in Lazarus
« Reply #2 on: January 03, 2014, 05:51:24 am »
Using the above link, placing the following string in the Debug_Startup_Options prevented the error message from appearing.

--eval-command="set auto-solib-add off"

It's worth noting that I had never encountered this problem until I used the OpenDialog component on the form.


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12016
  • Debugger - SynEdit - and more
    • wiki
Re: Using OpenDialog to add lines to DBMemo crashes debugger in Lazarus
« Reply #3 on: January 03, 2014, 01:35:11 pm »
Using open dialog means a lot of windows and 3rd party dll are opened. (any shell add on, icon or context menu handler...). GDB will check them all.

The line you added prevents gdb from looking for debug info for those dll.

Apparently on your system one of the dll, has some data that gdb can not handle.



 

TinyPortal © 2005-2018