Recent

Author Topic: Yosemith 10.10.1 / GDB Signed and still crashing  (Read 5031 times)

swierzbicki

  • Full Member
  • ***
  • Posts: 177
Yosemith 10.10.1 / GDB Signed and still crashing
« on: January 21, 2015, 08:42:44 pm »
Hello,

I've followed wiki articles to install xcode (6), homebrew and codesign GDB.
When closing my application ,GDB is crashing with this error :

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.""

Does anyone know how to solve this problem ?
Lazarus 1.6.2
fpc 3.0.0
wince/win32/win64
delphi berlin

swierzbicki

  • Full Member
  • ***
  • Posts: 177
Re: Yosemith 10.10.1 / GDB Signed and still crashing
« Reply #1 on: January 21, 2015, 09:27:05 pm »
I've also noticed that the debugger doesn't stop on any braekpoints.
Lazarus 1.6.2
fpc 3.0.0
wince/win32/win64
delphi berlin

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: Yosemith 10.10.1 / GDB Signed and still crashing
« Reply #2 on: January 21, 2015, 11:15:37 pm »
I don't know about gdb on Mac, but...

from the error this is not about code signing. gdb tried to load a library (that is used by the app you want to debug), and found something wrong with what it loaded.

It may be related to this (or at least i may have the same fix):
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#internal-error:_clear_dangling_display_expressions

Try "DisableLoadSymbolsForLibraries" to "True"

---------------
Also make sure:
- ONLY dwarf / NO stabs / that applies to all each and every package too.
- no smartlinking
http://wiki.lazarus.freepascal.org/Debugger_Setup

---------------
Otherwise: which gdb version did you build?

On other platforms I did tests, and noted that some versions are worse than others. e.g 7.8 crashes more often than 7.7.1

However none of my tests experienced the same crash you had, so this may not be relevant.
« Last Edit: January 21, 2015, 11:17:25 pm by Martin_fr »

swierzbicki

  • Full Member
  • ***
  • Posts: 177
Re: Yosemith 10.10.1 / GDB Signed and still crashing
« Reply #3 on: January 22, 2015, 08:34:15 pm »
Thank you for the help !

Code: [Select]
"DisableLoadSymbolsForLibraries" to "True"
Doesn't helped

---------------
Code: [Select]
Also make sure:
- ONLY dwarf / NO stabs / that applies to all each and every package too.
- no smartlinking
http://wiki.lazarus.freepascal.org/Debugger_Setup

Neither worked

Code: [Select]
Otherwise: which gdb version did you build?
I'm using the last one, GNU gdb (GDB) 7.8.1
Lazarus 1.6.2
fpc 3.0.0
wince/win32/win64
delphi berlin

Hansaplast

  • Hero Member
  • *****
  • Posts: 674
  • Tweaking4All.com
    • Tweaking4All
Re: Yosemith 10.10.1 / GDB Signed and still crashing
« Reply #4 on: March 12, 2015, 01:34:53 pm »
I'm running Lazarus under Yosemite (10.10.2) and used this method.
Simple using GDB from an older XCode version, the files can be found in that post as well.
Works just fine on my setup, break points work and I didn't need Homebrew or Fink.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Yosemith 10.10.1 / GDB Signed and still crashing
« Reply #5 on: April 05, 2015, 08:01:57 pm »
I have Yosemite, gdb 7.8.1 installed from homebrew and it works fine, step-by-step and breakpoints also. It works only with dwarf2. Stabs does not work at all.

 

TinyPortal © 2005-2018