Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-02

debugger error when end application

8 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

FreeMan

osx yosemite fpc & lazarus svn qt x64
New project, run application then close application this gdb error come allways

While executing the command:
"TGDBMIDebuggerInstruction: "-file-exec-and-symbols ", " gdb reported:
"&"solib-target.c:326: internal-error: void solib_target_free_so(struct so_list *): Assertion `so->lm_info->name == NULL' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.""

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150219/d5656e19/attachment.html>

Reply by email

Martin Frb
to FreeMan
FreeMan wrote 11 lines
osx yosemite fpc & lazarus svn qt x64 New project, run application then close application this gdb error come allways While executing the command: "TGDBMIDebuggerInstruction: "-file-exec-and-symbols ", " gdb reported: "&"solib-target.c:326: internal-error: void solib_target_free_so(struct so_list *): Assertion `so->lm_info->name == NULL' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.""

This is a bug in gdb. It happens with a number of different messages. (I have plans to suppress those errors (during debugger shutdown)), but not yet the time)

Please change the "DisableLoadSymbolsForLibraries" option: http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#internal-error:_clear_dangling_display_expressions

Out of interest, which version of gdb?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150219/01c68810/attachment.html>

Reply by email

FreeMan
to Martin Frb

thank you,
GNU gdb (GDB) 7.8.1
brew has this, so installed this, version number is not my choise.

Martin Frb wrote 8 lines
This is a bug in gdb. It happens with a number of different messages. (I have plans to suppress those errors (during debugger shutdown)), but not yet the time) Please change the "DisableLoadSymbolsForLibraries" option: http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#internal-error:_clear_dangling_display_expressions Out of interest, which version of gdb?

Reply by email

FreeMan
to Martin Frb: This is a bug in gdb. It happens with a number of different messages. (I have plans to…

I have svn fpc & lazarus on osx. This solution not work for me,

Show quoted text 5 lines
Lazarus 1.2.4 and higher go to the debugger options and set the field "DisableLoadSymbolsForLibraries" to "True"

When run my project, a few second wait then, icon just jumping on dock :) I added icon to my appication, its not showing, main IDE caption show (Debuging) but project not starting, no any error comes. I click to reset debugger button, project not working, turn to IDE

Martin Frb wrote 9 lines
This is a bug in gdb. It happens with a number of different messages. (I have plans to suppress those errors (during debugger shutdown)), but not yet the time) Please change the "DisableLoadSymbolsForLibraries" option: http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#internal-error:_clear_dangling_display_expressions Out of interest, which version of gdb?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150220/6082adcc/attachment.html>

Reply by email

Martin Frb
to FreeMan
FreeMan wrote 11 lines
I have svn fpc & lazarus on osx. This solution not work for me, > > Lazarus 1.2.4 and higher > go to the debugger options and set the field > "DisableLoadSymbolsForLibraries" to "True" > When run my project, a few second wait then, icon just jumping on dock :) I added icon to my appication, its not showing, main IDE caption show (Debuging) but project not starting, no any error comes. I click to reset debugger button, project not working, turn to IDE

In this case please provide a log:
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session

And: Is your project a GUI app (with forms)? Or a console app? (console app does not work in debugger on Mac)

Also ensure correct setup: http://wiki.lazarus.freepascal.org/Debugger_Setup

On Mac you MUST use "type of debug info" = "dwarf (with enum)"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150220/35a92b16/attachment.html>

Reply by email

FreeMan
to Martin Frb

I have not debug problem, I can debug and everythink is okey. just when application end, then message popup.

Martin Frb wrote 11 lines
In this case please provide a log: http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session And: Is your project a GUI app (with forms)? Or a console app? (console app does not work in debugger on Mac) Also ensure correct setup: http://wiki.lazarus.freepascal.org/Debugger_Setup On Mac you MUST use "type of debug info" = "dwarf (with enum)"

Reply by email

Martin Frb
to FreeMan
FreeMan wrote
I have not debug problem, I can debug and everythink is okey. just when application end, then message popup.

The message is a bug in gdb. But it should disappear with "DisableLoadSymbolsForLibraries" to "True"

You wrote, after

go to the debugger options and set the field "DisableLoadSymbolsForLibraries" to "True"

the debug project did no longer start?

If yes, I need more info.

Otherwise just ignore the error at the end.

Reply by email

FreeMan
to Martin Frb
Martin Frb wrote 7 lines
You wrote, after > go to the debugger options and set the field > "DisableLoadSymbolsForLibraries" to "True" the debug project did no longer start? If yes, I need more info.

If I did this, IDE main form show debugging, on dock icon is showing, but not any action, I mean application not working. If its false (default) I have not any error, I can debuging. But on subject topic, when close application I get error. A few minute ago I remove all fpc and lazarus files and reinstall that from svn.

Otherwise just ignore the error at the end.

For test:
open IDE, new project is opened. Click to run, everything is okey, close from and I get this errors

first: "Debugger Warning" form and this is detail message:

While executing the command:

"TGDBMIDebuggerInstruction: "-file-exec-and-symbols ", " gdb reported:
"&"solib-target.c:326: internal-error: void solib_target_free_so(struct so_list *): Assertion `so->lm_info->name == NULL' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.""
Click ok button on it, "Debugger Error" form is open, and this is detailed message:

The GDB command:

"-file-exec-and-symbols "

did not return any result. The GDB process is no longer running.

Click stop then turn normal. In project option --> Compiler options --> debugging -> Uncheck or check "Generate debugging info for GDB" not change this error.
I get log file, if you want I can sent it to you . Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150221/3ed3a739/attachment.html>

Reply by email