Re: gdb says: internal-error...
Re: gdb says: internal-error...
- Subject: Re: gdb says: internal-error...
- From: Henrik Dalgaard <email@hidden>
- Date: Mon, 26 Jun 2006 14:46:21 +0200
Kurt, you led me on the a track which seems to work for me and to
make sense.
The globals I have been using are in the Quartz Core or QTKit
frameworks, not that I can pinpoint them.
When I removed OTHER_LDFLAGS = -weak_framework QTKit -weak_framework
QuartzCore
from the debug build and added QTKit and QuartzCore to the linked
frameworks group I could debug again.
In the Release build weak_framework option takes precedence (I have
not found this documented - only tried it) over including the
libraries in the linked libraries group, so my app can still launch
on Panther and refer to the previous version which does not require
Tiger.
In the Debug Build the weak_framework option (and framework) are
ignored. Therefore I had to add the frameworks to my project.
I have tried to flip back on the weak_framework option to verify that
the crashes returned.
Kind regards,
Henrik Dalgaard
On Jun 21, 2006, at 5:26 AM, Kurt Sutter wrote:
I have found a solution, sort of.
gdb did not fail immediately while stepping through my application,
but only once the application accessed a certain global variable.
That variable was an array of class pointers called functionList[100].
I tried many things to get gdb working again. A last desperate
attempt was to rename that variable from functionList to
ffunctionList -> that made gdb work again.
Search me why.
I doubt that you have a global var called functionList, but maybe
you can use a similar approach.
Good luck
Kurt Sutter
At 18:50 +0200 19.06.06, Henrik Dalgaard wrote:
I have run into this one too. After a good final release, I
thought it would be a good time to upgrade XCode to version 2.3.
The same assertion in GDB fails for me:
/SourceCache/gdb/gdb-477/src/gdb/varobj.c:2007: internal-error:
my_value_equal: Assertion `!value_lazy (val1)' failed.
I have tried:
Uninstalled and reinstalled XCode with reboots in between - in
case my upgrade from 2.2 had done something bad.
Symbol formats: stabs, DWARF and DWARF with dSym. No difference.
Returned my project settings to the same as those in a brand new
Cocoa Document Based Application.
Tried to download and build gdb from:
http://www.opensource.apple.com/darwinsource/DevToolsMay2006/
The make file generated by gdb-477/src/gdb/configure failed at
libiberty.a with Error 1
Did any of you find a solution?
System: iMac Core Duo - my code is Objective C (no ++).
Henrik
On May 28, 2006, at 10:58 AM, Kurt Sutter wrote:
I have recently upgraded to 2.3, and at first everything went
fine. I was happily debugging our Carbon C++ project using DWARF
debug information.
Now, after some days, debugging stopped working. Whenever I run
into a breakpoint, gdb tells me:
/SourceCache/gdb/gdb-477/src/gdb/varobj.c:2007: internal-error:
my_value_equal: Assertion `!value_lazy (val1)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
And then it stops.
Clearing all breakpoints, cleaning all targets and rebuilding
them does not help. I honestly have no clue as to where I should
start trying to fix this.
Any advice is appreciated.
Kurt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden