Bug 8244 - gdb-5.2.92 crash - full debug available
Summary: gdb-5.2.92 crash - full debug available
Status: RESOLVED OBSOLETE
Alias: None
Product: gdb
Classification: Unclassified
Component: shlibs (show other bugs)
Version: 5.2
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 7781 8596 8692 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-12 18:38 UTC by mmokrejs
Modified: 2014-09-12 22:03 UTC (History)
6 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
gdb.config.out (4.13 KB, application/octet-stream)
, mmokrejs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mmokrejs 2003-03-12 18:38:01 UTC
[Converted from Gnats 1139]

I tried to use gdb to debug mozilla on Tru64Unix 5.1A.

$ /software/@sys/usr/bin/gdb /software/@sys/usr/lib/mozilla-1.4a/mozilla-bin
GNU gdb 5.3
Copyright 2002 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 "alphaev67-dec-osf5.1"...
(gdb) b main
warning: (Internal error: pc 0x120044aa4 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x120044aa4 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x120044aa4 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x120044ab8 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x120044ac0 in read in psymtab, but not in symtab.)

Breakpoint 1 at 0x120044ac0: file nsAppRunner.cpp, line 1515.
(gdb) r
Starting program: /afs/gsf.de/@sys/usr/lib/mozilla-1.4a/mozilla-bin 
warning: (Internal error: pc 0x3ff80006780 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x3ff80006780 in read in psymtab, but not in symtab.)

[...]

warning: (Internal error: pc 0x120044aa4 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x120044ab8 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x120044ac0 in read in psymtab, but not in symtab.)

mdebugread.c:3321: gdb-internal-error: Section index is uninitialized
An internal GDB error was detected.  This may make further
debugging unreliable.  Quit this debugging session? (y or n) n

Create a core file containing the current state of GDB? (y or n) y
warning: (Internal error: pc 0x120044aa4 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x120044aa4 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x120044aa4 in read in psymtab, but not in symtab.)

[...]

warning: (Internal error: pc 0x120044aa4 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x120044ac0 in read in psymtab, but not in symtab.)


Breakpoint 1, warning: (Internal error: pc 0x120044ac0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x120044ac0 in read in psymtab, but not in symtab.)

main (argc=1, argv=0x11fffc018) at nsAppRunner.cpp:1515
1515    nsAppRunner.cpp: No such file or directory.
        in nsAppRunner.cpp
warning: (Internal error: pc 0x120044ac0 in read in psymtab, but not in symtab.)

(gdb) 
[1]+  Stopped                 /software/@sys/usr/bin/gdb /software/@sys/usr/lib/mozilla-1.4a/mozilla-bin
serow$ dbx /software/@sys/usr/bin/gdb ./core
dbx version 5.1
Type 'help' for help.
Core file created by program "gdb"

signal IOT/Abort trap at >*[__kill, 0x3ff800e9658]      beq     a3, 0x3ff800e9670

(dbx) where
>  0 __kill(0x0, 0xd, 0x3ff00000000, 0x11fffa0f0, 0x3ff801c53a4) [0x3ff800e9658]
   1 (unknown)() [0x3ff8020c148]
   2 __tis_raise(0x3ff801c53a4, 0xcf9, 0x3ff8013b4d8, 0x100000006, 0x3ff801a20d4) [0x3ff8013b4d4]
   3 raise(0x3ff8013b4d8, 0x100000006, 0x3ff801a20d4, 0x14159188c, 0x3ff801c53d4) [0x3ff801a20d0]
   4 abort(0x12006c1ec, 0x141572640, 0x0, 0x0, 0x100000000) [0x3ff801c53d0]
   5 internal_verror(file = 0x140034c58 = "mdebugread.c", line = 3321, fmt = 0x140034c68 = "Section index is uninitialized", ap = struct {
    _a0 = 0x11fffa1b0
    _offset = 24
}) ["utils.c":735, 0x12006c1e8]
   6 internal_error(file = 0x140034c58 = "mdebugread.c", line = 3321, string = 0x140034c68 = "Section index is uninitialized") ["utils.c":749, 0x12006c2a8]
   7 parse_partial_symbols( = 0x9,  = 0x9,  = 0x9,  = 0x9,  = 0x9,  = 0x9,  = 0x9,  = 0x9,  = 0x9, objfile = 0x141572640) ["mdebugread.c":3321, 0x12011a0c4]
   8 mdebug_build_psymtabs(objfile = 0x141572640, swap = 0x14006e240, info = 0x141560070) ["mdebugread.c":491, 0x120113088]
   9 mipscoff_symfile_read(objfile = 0x141572640, mainline = 0) ["mipsread.c":98, 0x120176a38]
  10 syms_from_objfile(objfile = 0x141572640, addrs = 0x1411d7000, mainline = 0, verbo = 0) ["symfile.c":763, 0x120081168]
  11 symbol_file_add(name = 0x140f38210 = "/software/@sys/usr/lib/libintl.so.2", from_tty = 0, addrs = 0x1411d7000, mainline = 0, flags = 8) ["symfile.c":892, 0x120081540]
  12 symbol_add_stub(arg = 0x140f38000) ["solib.c":341, 0x120105920]
  13 do_catch_errors(uiout = 0x140113100, data = 0x11fffae18) ["top.c":492, 0x12007a210]
  14 catcher(func = 0x12007a1e8, func_uiout = 0x140113100, func_args = 0x11fffae18, func_val = 0x11fffae30, func_caught = 0x11fffae28, errstring = 0x140031b28 = "Error while reading shared library symbols:\n", mask = 6) ["top.c":424, 0x120079f98]
  15 catch_errors(func = 0x120105874, func_args = 0x140f38000, errstring = 0x140031b28 = "Error while reading shared library symbols:\n", mask = 6) ["top.c":504, 0x12007a284]
  16 solib_add(pattern = (nil), from_tty = 0, target = (nil), readsyms = 1) ["solib.c":568, 0x120105d38]
  17 osf_solib_create_inferior_hook() ["solib-osf.c":339, 0x120143880]
  18 solib_create_inferior_hook() ["solib.c":781, 0x120106264]
  19 fork_inferior( = 196, exec_file_arg = 0x140113280 = "/afs/gsf.de/@sys/usr/lib/mozilla-1.4a/mozilla-bin", allargs = 0x140c3b3a0 = "", env = 0x1400cfe00, traceme_fun = 0x12014928c, init_trace_fun = 0x120148f24, pre_trace_fun = (nil), shell_file_arg = 0x11fffe136 = "/bin/bash") ["fork-child.c":378, 0x1201a8670]
  20 procfs_create_inferior(exec_file = 0x140113280 = "/afs/gsf.de/@sys/usr/lib/mozilla-1.4a/mozilla-bin", allargs = 0x140c3b3a0 = "", env = 0x1400cfe00) ["./procfs.c"
More (n if no)?y
:4988, 0x120149720]
  21 find_default_create_inferior(exec_file = 0x140113280 = "/afs/gsf.de/@sys/usr/lib/mozilla-1.4a/mozilla-bin", allargs = 0x140c3b3a0 = "", env = 0x1400cfe00) ["target.c":1272, 0x12009f804]
  22 run_command(args = (nil), from_tty = 1) ["infcmd.c":464, 0x120087120]
  23 do_cfunc(c = 0x1400e7e00, args = (nil), from_tty = 1) ["./cli/cli-decode.c":53, 0x120058c70]
  24 cmd_func(cmd = 0x1400e7e00, args = (nil), from_tty = 1) ["./cli/cli-decode.c":1523, 0x12005c0b8]
  25 execute_command(p = 0x1400cc281 = "", from_tty = 1) ["top.c":711, 0x12007a8b0]
  26 command_handler(command = 0x1400cc280 = "") ["event-top.c":504, 0x1200f9430]
  27 command_line_handler(rl = 0x1400d6020 = "\240^6/@^A") ["event-top.c":799, 0x1200fa03c]
  28 rl_callback_read_char() ["callback.c":114, 0x120213cf8]
  29 rl_callback_read_char_wrapper(client_data = (nil)) ["event-top.c":168, 0x1200f86a8]
  30 stdin_event_handler(error = 0, client_data = (nil)) ["event-top.c":418, 0x1200f9204]
  31 handle_file_event(event_file_desc = 0) ["event-loop.c":714, 0x1200f7a88]
  32 process_event() ["event-loop.c":334, 0x1200f6f78]
  33 gdb_do_one_event(data = (nil)) ["event-loop.c":371, 0x1200f6fe0]
  34 do_catch_errors(uiout = 0x140113100, data = 0x11fffb618) ["top.c":492, 0x12007a210]
  35 catcher(func = 0x12007a1e8, func_uiout = 0x140113100, func_args = 0x11fffb618, func_val = 0x11fffb630, func_caught = 0x11fffb628, errstring = 0x1400931f8 = "", mask = 6) ["top.c":424, 0x120079f98]
  36 catch_errors(func = 0x1200f6fa4, func_args = (nil), errstring = 0x1400931f8 = "", mask = 6) ["top.c":504, 0x12007a284]
  37 start_event_loop() ["event-loop.c":395, 0x1200f7034]
  38 cli_command_loop() ["event-top.c":200, 0x1200f8868]
  39 captured_command_loop(data = (nil)) ["main.c":96, 0x1200553e0]
  40 do_catch_errors(uiout = 0x140113100, data = 0x11fffb9f8) ["top.c":492, 0x12007a210]
  41 catcher(func = 0x12007a1e8, func_uiout = 0x140113100, func_args = 0x11fffb9f8, func_val = 0x11fffba10, func_caught = 0x11fffba08, errstring = 0x14008ea20 = "", mask = 6) ["top.c":424, 0x120079f98]
  42 catch_errors(func = 0x1200553a0, func_args = (nil), errstring = 0x14008ea20 = "", mask = 6) ["top.c":504, 0x12007a284]
  43 captured_main(data = 0x11fffbfe0) ["main.c":729, 0x120056590]
  44 do_catch_errors(uiout = 0x140012cd8, data = 0x11fffbf88) ["top.c":492, 0x12007a210]
  45 catcher(func = 0x12007a1e8, func_uiout = 0x140012cd8, func_args = 0x11fffbf88, func_val = 0x11fffbfa0, func_caught = 0x11fffbf98, errstring = 0x14008ea28 = "", mask = 6) ["top.c":424, 0x120079f98]
More (n if no)?y
  46 catch_errors(func = 0x12005543c, func_args = 0x11fffbfe0, errstring = 0x14008ea28 = "", mask = 6) ["top.c":504, 0x12007a284]
  47 gdb_main(args = 0x11fffbfe0) ["main.c":738, 0x1200565e0]
  48 main(argc = 2, argv = 0x11fffc018) ["gdb.c":33, 0x120055374]
(dbx)

Release:
gdb-5.2.92

Environment:
Tru64Unix 5.1A
$ cc -V
Compaq C V6.5-207 (dtk) on Compaq Tru64 UNIX V5.1A (Rev. 1885)
Compiler Driver V6.5-207 (dtk) (dtk) cc Driver
$
Comment 1 Tom Tromey 2012-12-13 15:12:31 UTC
*** Bug 7781 has been marked as a duplicate of this bug. ***
Comment 2 Tom Tromey 2012-12-13 15:16:39 UTC
*** Bug 8692 has been marked as a duplicate of this bug. ***
Comment 3 Tom Tromey 2012-12-13 15:17:10 UTC
*** Bug 8596 has been marked as a duplicate of this bug. ***
Comment 4 Tom Tromey 2012-12-13 15:20:37 UTC
Is this still a problem with a more recent gdb?
If so, I think the most useful thing would be to
get an executable or library that causes either
"gdb xxx" or "gdb -readnow xxx" to crash.
Comment 5 Sergio Durigan Junior 2014-09-12 22:03:37 UTC
Closing as OBSOLETE because of inactivity.  Feel free to reopen the bug if it is still valid.