This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/11747] New: machoread.c:169: internal-error: macho_symtab_read: Assertion `oso_file != NULL' failed on Mac OS X build..
- From: "mforbes at uw dot edu" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 24 Jun 2010 00:58:34 -0000
- Subject: [Bug gdb/11747] New: machoread.c:169: internal-error: macho_symtab_read: Assertion `oso_file != NULL' failed on Mac OS X build..
- Reply-to: sourceware-bugzilla at sourceware dot org
Environment:
$ uname -a
Darwin ... 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-
1228.15.4~1/RELEASE_I386 i386
$ gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5490~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=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 -
-target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5490)
Description:
Here is the actual run. The source contains just "int main() { return 0; }" in bug.c and was compiled with:
$ gcc -ggdb -o bug bug.c
$ gdb bug
GNU gdb (GDB) 7.1
...
This GDB was configured as "i386-apple-darwin9.8.0".
...
Reading symbols from /Users/mforbes/tmp/c++/gdb/bug...(no debugging symbols found)...done.
(gdb) run
Starting program: /Users/mforbes/tmp/c++/gdb/bug
../../gdb/machoread.c:169: internal-error: macho_symtab_read: Assertion `oso_file != NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Note: this also occurs with the latest cvs build:
$ gdb bug
GNU gdb (GDB) 7.1.50.20100623-cvs
...
(gdb) run
Starting program: /Users/mforbes/tmp/c++/gdb/bug
../../gdb/machoread.c:170: internal-error: macho_symtab_read: Assertion `oso_file != NULL' failed.
...
One can ignore the error and proceed to debug the program:
(gdb) run
Starting program: /Users/mforbes/tmp/c++/gdb/bug
../../gdb/machoread.c:170: internal-error: macho_symtab_read: Assertion `oso_file != NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
../../gdb/machoread.c:170: internal-error: macho_symtab_read: Assertion `oso_file != NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
Breakpoint 1, main () at bug.c:1
1 int main() { return 0; }
(gdb) s
0x00001fc6 in start ()
(gdb) s
Single stepping until exit from function start,
which has no line number information.
Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0x1: Input/output error.
0x00003000 in ?? ()
(gdb) s
Cannot find bounds of current function
...
I am not sure if this is related as a similar error eventually appears when stepping through with the
default apple-built version of gdb:
$ /usr/bin/gdb bug
GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 UTC 2008)
...
This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries ... done
(gdb) b main
Breakpoint 1 at 0x1ff8: file bug.c, line 1.
(gdb) run
Starting program: /Users/mforbes/tmp/c++/gdb/bug
Reading symbols for shared libraries ++. done
Breakpoint 1, 0x00001ff8 in main () at bug.c:1
1 int main() { return 0; }
(gdb) s
0x00001fc6 in start ()
(gdb) s
Single stepping until exit from function start,
which has no line number information.
0x00003000 in dyld_stub_exit ()
(gdb) s
...
Single stepping until exit from function
__dyld__ZNSt6vectorIP11ImageLoaderSaIS1_EE5eraseEN9__gnu_cxx17__normal_iteratorIPS1_S3_EES7_,
which has no line number information.
0x8fe22494 in __dyld_memmove ()
(gdb) s
Single stepping until exit from function __dyld_memmove,
which has no line number information.
warning: Got an error handling event: "Cannot access memory at address 0x1ffe76c".
(gdb) s
Cannot find bounds of current function
...
Searching for this bug reveals an unilluminating discussion on several newsgroups:
http://old.nabble.com/Gdb-and-g95-td28652525.html
--
Summary: machoread.c:169: internal-error: macho_symtab_read:
Assertion `oso_file != NULL' failed on Mac OS X build..
Product: gdb
Version: 7.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned at sourceware dot org
ReportedBy: mforbes at uw dot edu
CC: gdb-prs at sourceware dot org
GCC build triplet: 7.1.50.20100623-cvs
GCC host triplet: i386-apple-darwin9.8.0
GCC target triplet: i386-apple-darwin9.8.0
http://sourceware.org/bugzilla/show_bug.cgi?id=11747
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.