Hi Paul,

I have also had his problem.

In most cases it was caused by some silly C++ mistake I made that was not
caught. In one case I think it was the result of loading 2 plugins with
duplicate name space (cut and paste error) which I think confused the
debugger causing to to crash.

Usually I had to resort to printf() debugging.

Barry


On 5/19/10 9:14 AM, "Paul McCullagh" <[email protected]> wrote:

> Hi All,
> 
> Does anyone do Drizzle development on the Mac?
> 
> I have encountered some debugging problems:
> 
> * -ggbd3 crashes gdb (see gdb dump below), -g works
> 
> * I have to link PBXT statically or the line numbering in the debugger
> are all wrong.
> 
> I am using:
> 
> GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40
> UTC 2008)
> gcc: i686-apple-darwin9-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5566)
> 
> Any ideas welcome.
> 
> Best regards,
> 
> Paul
> 
> ---------
> 
> (gdb) list
> gdb 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
> (lookup_symbol_aux_psymtabs+0xf4) [0x4e9f9]
> [ 9 ] //usr/libexec/gdb/gdb-i386-apple-darwin (lookup_symbol_file
> +0x8d) [0x12ef25]
> [ 10 ] //usr/libexec/gdb/gdb-i386-apple-darwin
> (cp_lookup_symbol_namespace+0x120) [0x12f3f5]
> [ 11 ] //usr/libexec/gdb/gdb-i386-apple-darwin (lookup_namespace_scope
> +0x111) [0x12f5b7]
> [ 12 ] //usr/libexec/gdb/gdb-i386-apple-darwin (lookup_symbol+0x275)
> [0x4ef45]
> /SourceCache/gdb/gdb-962/src/gdb/macrotab.c:129: internal-error:
> macro_bcache_free: Assertion `! t->bcache' failed.
> A problem internal to GDB has been detected,
> 
> 
> 
> --
> Paul McCullagh
> PrimeBase Technologies
> www.primebase.org
> www.blobstreaming.org
> pbxt.blogspot.com
> 
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~drizzle-discuss
> Post to     : [email protected]
> Unsubscribe : https://launchpad.net/~drizzle-discuss
> More help   : https://help.launchpad.net/ListHelp

-------------------------------------------------------------------------
Barry Leslie

SNAP Innovation Softwareentwicklung GmbH
Senior Software Engineer

Tel: (001) 250 884 1820
Fax: (001) 250 595 4460
Email: [email protected]
Web: www.PrimeBase.com

SNAP Innovation Softwareentwicklung GmbH, D-22765 Hamburg,
Max-Brauer-Allee 50, Germany
Amtsgericht Hamburg HRB 61066, Geschäftsführer: Ulrich Zimmer, Paul
McCullagh
-------------------------------------------------------------------------




_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to