Re: gdb crash
Re: gdb crash
- Subject: Re: gdb crash
- From: Jim Ingham <email@hidden>
- Date: Wed, 30 Jun 2010 12:04:29 -0700
This crash is in gdb's processing of debug information for macro expansion. This is turned on by adding "-g3" to your debug flags? It isn't on by default.
We don't currently support the macro debugging part of DWARF in gdb. It will work for simple macros but there are known bugs like this. For anything but small projects the macro information is huge, slow to read, etc... so that it hasn't been worth the time it would take to get it all working. It's on our list of things to do, but hasn't made it into the "yes we're actually going to work on that" queue yet.
For now you should be able to fix the problem by not emitting the macro debug info - look for where you are passing -g3 and don't do that...
Jim
On Jun 30, 2010, at 11:21 AM, Kelly K. Jones wrote:
>
> I realize that I am replying to a question that is well over the one-year-old mark (the question that appears below about a gdb crash with the output: macrotab.c: internal-error: macro_bcache_free: Assertion `! t->bcache' failed).
>
> I experienced this same error for the first time today, using a newer version of Xcode and a newer version of gdb.
>
> What wound up fixing things for me turned out to be a simple act: I simply deleted all my breakpoints from Xcode. I opened the Xcode breakpoints window using the shortcut command-option-B, then I selected all of them and deleted them.
>
> Now I am able to debug in Xcode again.
>
> --Kelly
>
>
> Here is my version info:
>
> Xcode 3.1.3
> GNU gdb 6.3.50-20050815 (Apple version gdb-966) (Tue Mar 10 02:43:13 UTC 2009)
>
>
>
> On 17 Oct 2008, at 07:35, Benson Margulies wrote:
>
>> I've got, with GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat
>> Jul 26 08:14:40 UTC 2008), the following. Any advice?
>>
>> db stack crawl at point of internal error:
>> [ 0 ] //usr/libexec/gdb/gdb-i386-apple-darwin (align_down+0x0) [0x122510]
>> [ 1 ] //usr/libexec/gdb/gdb-i386-apple-darwin (macro_bcache_free+0x60) [0x7d268]
>> [ 2 ] //usr/libexec/gdb/gdb-i386-apple-darwin
>> (macro_tree_delete_value+0x44) [0x7d647]
>> [ 3 ] //usr/libexec/gdb/gdb-i386-apple-darwin (splay_tree_insert+0x64)
>> [0x1f904f]
>> [ 4 ] //usr/libexec/gdb/gdb-i386-apple-darwin (process_die+0x779) [0xd1437]
>> [ 5 ] //usr/libexec/gdb/gdb-i386-apple-darwin
>> (process_full_comp_unit+0xfc) [0xd2276]
>> [ 6 ] //usr/libexec/gdb/gdb-i386-apple-darwin
>> (dwarf2_debug_map_psymtab_to_symtab+0x90c) [0xd3589]
>> [ 7 ] //usr/libexec/gdb/gdb-i386-apple-darwin (psymtab_to_symtab+0x6f) [0x51482]
>> [ 8 ] //usr/libexec/gdb/gdb-i386-apple-darwin
>> (find_pc_sect_symtab+0x3c0) [0x4ca52]
>> [ 9 ] //usr/libexec/gdb/gdb-i386-apple-darwin
>> (find_pc_sect_line+0x256) [0x4ceb3]
>> [ 10 ] //usr/libexec/gdb/gdb-i386-apple-darwin (find_pc_line+0x6b) [0x4dc5b]
>> [ 11 ] //usr/libexec/gdb/gdb-i386-apple-darwin
>> (macosx_get_current_exception_event+0xeb) [0x1612ec]
>> [ 12 ] //usr/libexec/gdb/gdb-i386-apple-darwin
>> (bpstat_stop_status+0x25b) [0x27571]
>> /SourceCache/gdb/gdb-962/src/gdb/macrotab.c:129: internal-error:
>> macro_bcache_free: Assertion `! t->bcache' failed.
>> _______________________________________________
>>
>
> _______________________________________________
> 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
_______________________________________________
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
References: | |
| >Re: gdb crash (From: "Kelly K. Jones" <email@hidden>) |