From: Frank Middleton <f.middleton@apogeect.com>
To: Paul Pluzhnikov <ppluzhnikov@google.com>
Cc: gdb@sourceware.org
Subject: Re: Experiences building and using gdb 6.8 on Solaris
Date: Thu, 30 Apr 2009 00:35:00 -0000 [thread overview]
Message-ID: <49F8ECE5.6020502@apogeect.com> (raw)
In-Reply-To: <8ac60eac0904291102l52e0f9d1i26714b05a0e93d9e@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1435 bytes --]
On 04/29/09 14:02, Paul Pluzhnikov wrote:
> I assumed you'd be using a "normal" CVS build (with "-g -O2"), not a
> stripped binary.
Of course, What was I thinking? Output from unstripped binary attached.
> I am not sure there *are* any Solaris maintainers.
From my perspective, this is a regression from Solaris 9, where gdb
(6.0) didn't have this problem with libXau. gdb 6.0 and later do,
probably as of Solaris 10. I really meant Solaris libXau maintainers,
if there are any. They have accepted it as a bug, so I suppose they
will (eventually) fix libXau. As you suggest, they probably won't
address gdb since unsurprisingly they mostly use dbx. Personally I
find gdb much easier to use and it does everything I need it to.
Having said that, they do ship gdb with Solaris Nevada, in /usr/bin
no less. To get dbx is an extra download...
>> It is quite
>> conceivable that upgrading from snv103 to snv112 might fix this problem,
>> so does anyone at gdb want to work on this before I do so?
>
> I'd say you should get the "full" stack trace first. This may give enough
> clues to someone. If you want to upgrade your machine to snv112, it would
> probably be wise to save the offending libXau first (just in case someone
> desires to look at the problem later).
OK, no problem; I will save the offending libXau somewhere. It obviously
won't be (isn't) fixed in snv112 but I'll save this one as baseline anyway.
Cheers -- Frank
[-- Attachment #2: gdb-where --]
[-- Type: text/plain, Size: 11961 bytes --]
Breakpoint 1, internal_error (file=0x27bdd0 "elfread.c", line=424,
string=0x27be00 "sect_index_data not initialized") at utils.c:805
805 va_start (ap, string);
(top) where full
#0 internal_error (file=0x27bdd0 "elfread.c", line=424,
string=0x27be00 "sect_index_data not initialized") at utils.c:805
ap = (va_list) 0x2
#1 0x000b44c0 in elf_symtab_read (objfile=0x3fb510, type=0, number_of_symbols=93,
symbol_table=<value optimized out>) at elfread.c:421
max_index = <value optimized out>
size = <value optimized out>
special_local_sect = 13
msym = <value optimized out>
sym = (asymbol *) 0x401f30
i = 34
symaddr = 4281735380
offset = 4281729024
ms_type = <value optimized out>
sectinfo = (struct stab_section_info *) 0x0
filesym = (asymbol *) 0x401ee8
filesymname = 0x4009f8 "values-Xa.c"
dbx = (struct dbx_symfile_info *) 0x3e0ae0
#2 0x000b45b0 in elf_symfile_read (objfile=0x3fb510, mainline=0) at elfread.c:593
abfd = (bfd *) 0x3e1c30
ei = {stabsect = 0x0, stabindexsect = 0x0, mdebugsect = 0x0}
back_to = (struct cleanup *) 0x361960
symcount = 93
dynsymcount = <value optimized out>
synthcount = <value optimized out>
storage_needed = <value optimized out>
symbol_table = (asymbol **) 0x3dac50
dyn_symbol_table = <value optimized out>
synthsyms = <value optimized out>
#3 0x000f8640 in syms_from_objfile (objfile=0x3fb510, addrs=0x3e0940, offsets=0x0, num_offsets=0,
mainline=0, verbo=19) at symfile.c:947
local_addr = <value optimized out>
old_chain = (struct cleanup *) 0x361948
__PRETTY_FUNCTION__ = "syms_from_objfile"
#4 0x000f8994 in symbol_file_add_with_addrs_or_offsets (abfd=<value optimized out>, from_tty=0,
addrs=0x3e0940, offsets=0x0, num_offsets=0, mainline=0, flags=8) at symfile.c:1059
objfile = (struct objfile *) 0x3fb510
psymtab = <value optimized out>
debugfile = <value optimized out>
orig_addrs = (struct section_addr_info *) 0x3e1d08
my_cleanups = (struct cleanup *) 0x0
name = 0x388930 "/usr/lib/libXau.so.6"
#5 0x000f9364 in symbol_file_add_from_bfd (abfd=0x3e1c30, from_tty=0, addrs=0x3e0940, mainline=0,
flags=8) at symfile.c:1161
No locals.
#6 0x0007f18c in symbol_add_stub (arg=0x3c3ed0) at solib.c:421
sap = (struct section_addr_info *) 0x3e0940
#7 0x0011134c in catch_errors (func=0x7f114 <symbol_add_stub>, func_args=0x3c3ed0,
errstring=0x2692b0 "Error while reading shared library symbols:\n", mask=6) at exceptions.c:513
val = 0
exception = {reason = 0, error = GDB_NO_ERROR, message = 0x0}
#8 0x0007eefc in solib_read_symbols (so=0x3c3ed0, from_tty=0) at solib.c:447
No locals.
#9 0x0007f6f0 in solib_add (pattern=0x0, from_tty=0, target=<value optimized out>, readsyms=1)
at solib.c:698
any_matches = 1
loaded_any_symbols = 0
gdb = (struct so_list *) 0x3c3ed0
#10 0x00107680 in handle_inferior_event (ecs=0xffbfdbc0) at infrun.c:2266
jmp_buf_pc = <value optimized out>
what = {main_action = BPSTAT_WHAT_CHECK_SHLIBS, call_dummy = 0}
stepped_after_stopped_by_watchpoint = 0
__PRETTY_FUNCTION__ = "handle_inferior_event"
#11 0x001092e4 in wait_for_inferior (treat_exec_as_sigtrap=0) at infrun.c:1042
old_cleanups = (struct cleanup *) 0x3615e8
ecss = {ws = {kind = TARGET_WAITKIND_STOPPED, value = {integer = 5, sig = TARGET_SIGNAL_TRAP,
related_pid = 5, execd_pathname = 0x5 <Address 0x5 out of bounds>, syscall_id = 5}},
wp = 0xffbfdbc0, stepping_over_breakpoint = 0, random_signal = 0, stop_func_start = 4282148104,
stop_func_end = 4282148184, stop_func_name = 0x3db4b8 "rtld_db_dlactivity", sal = {symtab = 0x0,
section = 0x0, line = 0, pc = 4282092360, end = 0, explicit_pc = 0, explicit_line = 0},
current_line = 0, current_symtab = 0x0, handling_longjmp = 0, ptid = {pid = 26446, lwp = 1,
tid = 0}, saved_inferior_ptid = {pid = -4203400, lwp = 1086580, tid = 2528312},
step_after_step_resume_breakpoint = 0, stepping_through_solib_after_catch = 0,
stepping_through_solib_catchpoints = 0x0, new_thread_event = 0, tmpstatus = {
kind = TARGET_WAITKIND_EXITED, value = {integer = 0, sig = TARGET_SIGNAL_0, related_pid = 0,
execd_pathname = 0x0, syscall_id = 0}}, infwait_state = infwait_normal_state, waiton_ptid = {
pid = -1, lwp = 0, tid = 0}, wait_some_more = 1}
#12 0x0010965c in proceed (addr=<value optimized out>, siggnal=TARGET_SIGNAL_0, step=0)
at infrun.c:844
oneproc = 0
#13 0x00103784 in run_command_1 (args=0x0, from_tty=1, tbreak_at_main=<value optimized out>)
at infcmd.c:563
exec_file = 0x361498 "/tmp/a.out"
#14 0x000a3148 in do_cfunc (c=0x34b360, args=0x0, from_tty=1) at .././gdb/cli/cli-decode.c:60
No locals.
#15 0x000a3310 in cmd_func (cmd=0x34b360, args=0x0, from_tty=1) at .././gdb/cli/cli-decode.c:1663
No locals.
#16 0x0006fd88 in execute_command (p=0x329a89 "", from_tty=1) at top.c:449
arg = 0x0
c = (struct cmd_list_element *) 0x34b360
flang = <value optimized out>
line = 0x329a88 ""
warned = 0
#17 0x00114dcc in command_handler (command=0x329a88 "") at event-top.c:518
old_chain = (struct cleanup *) 0x0
time_at_cmd_start = 192203
space_at_cmd_start = 0
#18 0x00115da0 in command_line_handler (rl=<value optimized out>) at event-top.c:804
p = <value optimized out>
p1 = 0x382c48 "r"
linebuffer = 0x382c48 "r"
linelength = 80
#19 0x001cdbb4 in rl_callback_read_char () at callback.c:205
line = 0x3627b0 "r"
eof = <value optimized out>
olevel = {3, -4202680, 1813908, -4202560, 1891596, 0 <repeats 11 times>, -12582912, 8388608, 0}
#20 0x00115078 in rl_callback_read_char_wrapper (client_data=0x0) at event-top.c:177
No locals.
#21 0x0011558c in stdin_event_handler (error=0, client_data=0x0) at event-top.c:431
No locals.
#22 0x001149e0 in handle_file_event (event_file_desc=0) at event-loop.c:728
file_ptr = (file_handler *) 0x32a1d0
mask = <value optimized out>
error_mask_returned = 0
#23 0x00113bf0 in process_event () at event-loop.c:341
event_ptr = <value optimized out>
proc = (event_handler_func *) 0x114938 <handle_file_event>
fd = <value optimized out>
#24 0x00114658 in gdb_do_one_event (data=<value optimized out>) at event-loop.c:378
No locals.
#25 0x0011134c in catch_errors (func=0x114434 <gdb_do_one_event>, func_args=0x0,
errstring=0x27bfb8 "", mask=6) at exceptions.c:513
val = 0
exception = {reason = 0, error = GDB_NO_ERROR, message = 0x0}
#26 0x000b4fa8 in tui_command_loop (data=0x0) at .././gdb/tui/tui-interp.c:153
result = <value optimized out>
#27 0x00111938 in current_interp_command_loop () at interps.c:276
No locals.
#28 0x00068830 in captured_command_loop (data=0x1) at .././gdb/main.c:99
No locals.
#29 0x0011134c in catch_errors (func=0x68824 <captured_command_loop>, func_args=0x0,
errstring=0x261de8 "", mask=6) at exceptions.c:513
val = 0
exception = {reason = 0, error = GDB_NO_ERROR, message = 0x0}
#30 0x00067e24 in captured_main (data=<value optimized out>) at .././gdb/main.c:882
argc = 2
argv = <value optimized out>
symarg = 0xffbfeacf "./a.out"
execarg = 0xffbfeacf "./a.out"
pidarg = 0x0
corearg = 0x0
pid_or_core_arg = 0x0
cdarg = 0x0
ttyarg = 0x0
cmdarg = (struct cmdarg *) 0x3296a8
cmdsize = <value optimized out>
ncmd = 0
dirarg = (char **) 0x3296b8
dirsize = <value optimized out>
ndir = 0
homebuf = {st_dev = 0, st_pad1 = {0, 0, 0}, st_ino = 0, st_mode = 0, st_nlink = 0,
st_uid = 0, st_gid = 0, st_rdev = 0, st_pad2 = {0, 0}, st_size = 0, st_pad3 = 0, st_atim = {
tv_sec = 0, tv_nsec = 0}, st_mtim = {tv_sec = 0, tv_nsec = 0}, st_ctim = {tv_sec = 0,
tv_nsec = 0}, st_blksize = 0, st_blocks = 0, st_fstype = '\0' <repeats 15 times>, st_pad4 = {0,
0, 0, 0, 0, 0, 0, 0}}
cwdbuf = {st_dev = 0, st_pad1 = {0, 0, 0}, st_ino = 0, st_mode = 0, st_nlink = 0, st_uid = 0,
st_gid = 0, st_rdev = 0, st_pad2 = {0, 0}, st_size = 0, st_pad3 = 0, st_atim = {tv_sec = 0,
tv_nsec = 0}, st_mtim = {tv_sec = 0, tv_nsec = 0}, st_ctim = {tv_sec = 0, tv_nsec = 0},
st_blksize = 0, st_blocks = 0, st_fstype = '\0' <repeats 15 times>, st_pad4 = {0, 0, 0, 0, 0, 0, 0,
0}}
homedir = 0xffbff9a8 "/home/frank"
i = <value optimized out>
time_at_startup = 145070
quiet = 0
batch = 0
set_args = 0
print_help = 0
print_version = 0
long_options = {{name = 0x262948 "tui", has_arg = 0, flag = 0x0, val = 14}, {
name = 0x262950 "xdb", has_arg = 0, flag = 0x310284, val = 1}, {name = 0x262958 "dbx",
has_arg = 0, flag = 0x310288, val = 1}, {name = 0x262960 "readnow", has_arg = 0, flag = 0x328530,
val = 1}, {name = 0x262968 "r", has_arg = 0, flag = 0x328530, val = 1}, {name = 0x262970 "quiet",
has_arg = 0, flag = 0x3102a8, val = 1}, {name = 0x262978 "q", has_arg = 0, flag = 0x3102a8,
val = 1}, {name = 0x262980 "silent", has_arg = 0, flag = 0x3102a8, val = 1}, {
name = 0x262988 "nx", has_arg = 0, flag = 0x31033c, val = 1}, {name = 0x262990 "n", has_arg = 0,
flag = 0x31033c, val = 1}, {name = 0x262998 "batch-silent", has_arg = 0, flag = 0x0, val = 66}, {
name = 0x2629a8 "batch", has_arg = 0, flag = 0x3102a4, val = 1}, {name = 0x2629b0 "epoch",
has_arg = 0, flag = 0x3287b4, val = 1}, {name = 0x2629b8 "fullname", has_arg = 0, flag = 0x0,
val = 102}, {name = 0x2629c8 "f", has_arg = 0, flag = 0x0, val = 102}, {
name = 0x2629d0 "annotate", has_arg = 1, flag = 0x0, val = 12}, {name = 0x2629e0 "help",
has_arg = 0, flag = 0x31029c, val = 1}, {name = 0x2629e8 "se", has_arg = 1, flag = 0x0,
val = 10}, {name = 0x2629f0 "symbols", has_arg = 1, flag = 0x0, val = 115}, {name = 0x2629f8 "s",
has_arg = 1, flag = 0x0, val = 115}, {name = 0x262a00 "exec", has_arg = 1, flag = 0x0,
val = 101}, {name = 0x262a08 "e", has_arg = 1, flag = 0x0, val = 101}, {name = 0x262a10 "core",
has_arg = 1, flag = 0x0, val = 99}, {name = 0x262a18 "c", has_arg = 1, flag = 0x0, val = 99}, {
name = 0x262a20 "pid", has_arg = 1, flag = 0x0, val = 112}, {name = 0x262a28 "p", has_arg = 1,
flag = 0x0, val = 112}, {name = 0x262a30 "command", has_arg = 1, flag = 0x0, val = 120}, {
name = 0x262a38 "eval-command", has_arg = 1, flag = 0x0, val = 88}, {name = 0x262a48 "version",
has_arg = 0, flag = 0x310298, val = 1}, {name = 0x262a50 "x", has_arg = 1, flag = 0x0,
val = 120}, {name = 0x262a58 "ex", has_arg = 1, flag = 0x0, val = 88}, {name = 0x262a60 "ui",
has_arg = 1, flag = 0x0, val = 105}, {name = 0x262a68 "interpreter", has_arg = 1, flag = 0x0,
val = 105}, {name = 0x262a78 "i", has_arg = 1, flag = 0x0, val = 105}, {
name = 0x262a80 "directory", has_arg = 1, flag = 0x0, val = 100}, {name = 0x262a90 "d",
has_arg = 1, flag = 0x0, val = 100}, {name = 0x262a98 "cd", has_arg = 1, flag = 0x0, val = 11}, {
name = 0x262aa0 "tty", has_arg = 1, flag = 0x0, val = 116}, {name = 0x262aa8 "baud", has_arg = 1,
flag = 0x0, val = 98}, {name = 0x262ab0 "b", has_arg = 1, flag = 0x0, val = 98}, {
name = 0x262ab8 "nw", has_arg = 0, flag = 0x0, val = 15}, {name = 0x262ac0 "nowindows",
has_arg = 0, flag = 0x0, val = 15}, {name = 0x262ad0 "w", has_arg = 0, flag = 0x0, val = 16}, {
name = 0x262ad8 "windows", has_arg = 0, flag = 0x0, val = 16}, {name = 0x262ae0 "statistics",
has_arg = 0, flag = 0x0, val = 13}, {name = 0x262af0 "write", has_arg = 0, flag = 0x3102bc,
val = 1}, {name = 0x262af8 "args", has_arg = 0, flag = 0x3102a0, val = 1}, {name = 0x262b00 "l",
has_arg = 1, flag = 0x0, val = 108}, {name = 0x262b08 "return-child-result", has_arg = 0,
flag = 0x310294, val = 1}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
#31 0x0011134c in catch_errors (func=0x67720 <captured_main>, func_args=0xffbfe860,
errstring=0x261de8 "", mask=6) at exceptions.c:513
val = 0
exception = {reason = 0, error = GDB_NO_ERROR, message = 0x0}
#32 0x00067718 in gdb_main (args=<value optimized out>) at .././gdb/main.c:891
No locals.
#33 0x000676e0 in main (argc=2, argv=0xffbfe8e4) at gdb.c:33
args = {argc = 2, argv = 0xffbfe8e4, use_windows = 0, interpreter_p = 0x261de0 "console"}
(top)
next prev parent reply other threads:[~2009-04-30 0:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-27 0:26 Frank Middleton
2009-04-27 5:25 ` Paul Pluzhnikov
2009-04-27 18:18 ` Frank Middleton
2009-04-30 0:12 ` Paul Pluzhnikov
2009-04-30 0:35 ` Frank Middleton [this message]
2009-04-30 5:44 ` Paul Pluzhnikov
2009-04-30 14:52 ` Frank Middleton
2009-04-30 8:02 ` Hui Zhu
2009-04-30 15:41 ` Frank Middleton
2009-04-30 16:18 ` Paul Pluzhnikov
2009-04-30 16:20 ` Frank Middleton
2009-04-30 16:56 ` Paul Pluzhnikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49F8ECE5.6020502@apogeect.com \
--to=f.middleton@apogeect.com \
--cc=gdb@sourceware.org \
--cc=ppluzhnikov@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox