This bug appears on the second run of a command. I may be doing something BFD/GDB considers sneaky. This script uses RubyInline which compiles and dynamically links a shared library. Each run removes the shared library forcing it to be rebuilt. Perhaps BFD thinks the library hasn't changed and bad things happen?

Full trace:
$ gdb `which ruby`
GNU gdb 6.3.50-20050815 (Apple version gdb-477) (Sun Apr 30 20:06:22 GMT 2006)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin"...Reading symbols for shared 
libraries ... done

(gdb) run -Ilib test/test_parse_tree.rb -n /test_parse_tree_for_string/
Starting program: /usr/local/bin/ruby -Ilib test/test_parse_tree.rb -n 
/test_parse_tree_for_string/
Reading symbols for shared libraries .. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Loaded suite test/test_parse_tree
Started

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000001
st_lookup (table=0x1, key=3943, value=0xbffecf98) at st.c:245
245         hash_val = do_hash(key, table);
(gdb) run -Ilib test/test_parse_tree.rb -n /test_parse_tree_for_string/
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/local/bin/ruby -Ilib test/test_parse_tree.rb -n 
/test_parse_tree_for_string/
Reading symbols for shared libraries + done
nuking /Users/drbrain/.ruby_inline
Reading symbols for shared libraries + done
BFD: BFD 2.16.91 20050815 internal error, aborting at 
/SourceCache/gdb/gdb-477/src/bfd/cache.c line 517 in bfd_cache_lookup_worker

BFD: Please report this bug.


$ gdb -v
GNU gdb 6.3.50-20050815 (Apple version gdb-477) (Sun Apr 30 20:06:22 GMT 2006)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin".
$ gcc -v
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5341.obj~1/src/configure -- disable-checking -enable-werror --prefix=/usr --mandir=/share/man -- enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg] [^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with- slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple- darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5341)
$ uname -a
Darwin kaa.coop.robotcoop.com 8.6.0 Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC Power Macintosh powerpc

--
Eric Hodel - [EMAIL PROTECTED] - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to