From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10966 invoked by alias); 30 Apr 2009 00:12:35 -0000 Received: (qmail 10953 invoked by uid 22791); 30 Apr 2009 00:12:33 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from saturn.robustserver.com (HELO saturn.robustserver.com) (75.126.93.128) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 30 Apr 2009 00:12:27 +0000 Received: from [98.221.23.85] (helo=[192.168.10.6]) by saturn.robustserver.com with esmtpa (Exim 4.69) (envelope-from ) id 1LzJsy-000135-Cn; Wed, 29 Apr 2009 20:12:20 -0400 Message-ID: <49F8ECE5.6020502@apogeect.com> Date: Thu, 30 Apr 2009 00:35:00 -0000 From: Frank Middleton User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9.1b3pre) Gecko/20081223 Thunderbird/3.0b1 MIME-Version: 1.0 To: Paul Pluzhnikov CC: gdb@sourceware.org Subject: Re: Experiences building and using gdb 6.8 on Solaris References: <49F4C98B.2000609@apogeect.com> <8ac60eac0904261743i452a3ae5qc49b8f483644413a@mail.gmail.com> <49F5B0BB.4030406@apogeect.com> <8ac60eac0904291102l52e0f9d1i26714b05a0e93d9e@mail.gmail.com> In-Reply-To: <8ac60eac0904291102l52e0f9d1i26714b05a0e93d9e@mail.gmail.com> Content-Type: multipart/mixed; boundary="------------080100070109070705040803" X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00225.txt.bz2 This is a multi-part message in MIME format. --------------080100070109070705040803 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 1435 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 --------------080100070109070705040803 Content-Type: text/plain; name="gdb-where" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gdb-where" Content-length: 11961 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=) at elfread.c:421 max_index = size = special_local_sect = 13 msym = sym = (asymbol *) 0x401f30 i = 34 symaddr = 4281735380 offset = 4281729024 ms_type = 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 = synthcount = storage_needed = symbol_table = (asymbol **) 0x3dac50 dyn_symbol_table = synthsyms = #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 = old_chain = (struct cleanup *) 0x361948 __PRETTY_FUNCTION__ = "syms_from_objfile" #4 0x000f8994 in symbol_file_add_with_addrs_or_offsets (abfd=, from_tty=0, addrs=0x3e0940, offsets=0x0, num_offsets=0, mainline=0, flags=8) at symfile.c:1059 objfile = (struct objfile *) 0x3fb510 psymtab = debugfile = 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 , 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=, 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 = 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
, 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=, 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=) 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 = 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=) at event-top.c:804 p = p1 = 0x382c48 "r" linebuffer = 0x382c48 "r" linelength = 80 #19 0x001cdbb4 in rl_callback_read_char () at callback.c:205 line = 0x3627b0 "r" eof = olevel = {3, -4202680, 1813908, -4202560, 1891596, 0 , -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 = error_mask_returned = 0 #23 0x00113bf0 in process_event () at event-loop.c:341 event_ptr = proc = (event_handler_func *) 0x114938 fd = #24 0x00114658 in gdb_do_one_event (data=) at event-loop.c:378 No locals. #25 0x0011134c in catch_errors (func=0x114434 , 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 = #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 , 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=) at .././gdb/main.c:882 argc = 2 argv = 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 = ncmd = 0 dirarg = (char **) 0x3296b8 dirsize = 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' , 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' , st_pad4 = {0, 0, 0, 0, 0, 0, 0, 0}} homedir = 0xffbff9a8 "/home/frank" i = 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 , 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=) 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) --------------080100070109070705040803--