ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DDD 3.3.10 on Solaris 5.8: keeps waiting until GDB gets ready, inde


From: Chris van Engelen
Subject: Re: DDD 3.3.10 on Solaris 5.8: keeps waiting until GDB gets ready, indefinitely ...
Date: Thu, 06 Jan 2005 13:07:20 +0100
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.6) Gecko/20040219

All,

(RESEND with ddd log attached)

I using DDD with the following configuration:

OS: SunOS sun044.aimsys.nl 5.8 Generic_108528-20 sun4u sparc
DDD: 3.3.10 (sparc-sun-solaris8)
GDB: 5.3

I use DDD to debug a fairly large executable:

   -rwxr-xr-x   1 sw       sw       42523191 Jan  6 12:11 mainctrl.exe


After starting ddd with this file, the source window displays the main
function, and when entering any command (even a return in the gdb command
window), DDD hangs with the message: "...: waiting until GDB gets ready).
CPU usage is continuous 100% when this happens.

When I debug the same executable directly with GDB then all works fine:

   gdb ./mainctrl.exe
   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 "sparc-sun-solaris2.8"...
   (gdb) list GscOutMsgT::send
   82   //
   83   // Description : A shell around RTsend() to realize message tracing.
   84   //
   85   void
   86   GscOutMsgT::send() const
   87   {
   88   //    GSC_PRINTF(("\n- Sending <%s>(%02xh):"
   89   //                   "\n    Dest address: %s",
   90   //                   
GSC_convSidValueToStringPtr(txMsgPtr->sy.ossgn.sid),
   91   //                   txMsgPtr->sy.ossgn.sid,
   (gdb) quit


I have seen the message "waiting until GDB gets ready" also in previous DDD 
versions,
but this problem that DDD keeps hanging indefinitely with 100% CPU usage is new
to version 3.3.10 of DDD.

Please let me know if you need more info,
--
Chris van Engelen
AimSys bv
Hilversum, The Netherlands
Phone: +31 35 689 1935
mailto:address@hidden

(Pls do not include my original message in your reply;
my outgoing mails are saved automatically).
GNU DDD 3.3.10 (sparc-sun-solaris2.8)
Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany.
Copyright (C) 1999-2001 Universität Passau, Germany.
Copyright (C) 2001 Universität des Saarlandes, Germany.
Copyright (C) 2001-2004 Free Software Foundation, Inc.

Compiled with GCC 3.3
Requires X11R6, Xt11R6, Motif 2.1 (Motif Version 2.1.0)
Includes XPM 3.4.11, Athena Panner, App defaults, DDD core
Built 2004-11-22 by Software Developement Tools <address@hidden>.
$  ddd ./mainctrl.exe
+  /bin/sh -c 'exec gdb -q -fullname '\''./mainctrl.exe'\'''
#  Hello, world!
#  Starting GDB...
#  Warning: core dumps are disabled
#  Running GDB (pid 25806, tty /dev/pts/12)...
#  Current language: C/C++
#  Searching "vsllib/ddd.vsl"...
#  Trying "/home/sw/.ddd/vsllib/ddd.vsl"
#  Trying "/appl/applications/ddd-3.3.1/vsllib/ddd.vsl"
#  Trying "/swdev/tools/share/ddd-3.3.10/vsllib/ddd.vsl"
#  Searching "vsllib/ddd.vsl"..."/swdev/tools/share/ddd-3.3.10/vsllib/ddd.vsl".
2005.01.06 12:54:22
<- "(gdb) "
2005.01.06 12:54:22
-> "set prompt (gdb) \n"
2005.01.06 12:54:22
<- "(gdb) "
2005.01.06 12:54:22
-> "set height 0\n"
2005.01.06 12:54:22
<- "(gdb) "
2005.01.06 12:54:22
-> "set width 0\n"
2005.01.06 12:54:22
<- "(gdb) "
2005.01.06 12:54:22
-> "set annotate 1\n"
2005.01.06 12:54:22
<- "(gdb) "
2005.01.06 12:54:22
-> " set verbose off\n"
2005.01.06 12:54:22
<- "(gdb) "
2005.01.06 12:54:22
-> "info line\n"
2005.01.06 12:54:22
<- "No line number information available.\n"
   "(gdb) "
2005.01.06 12:54:22
-> "list\n"
2005.01.06 12:54:22
<- "60\t\n"
   "61\tint main(void)\n"
   "62\t{\n"
   "63\t  char buffer[51];\n"
   "64\t  char *p;\n"
   "65\t\n"
   "66\t#if defined( SIMULATOR )\n"
   "67\t  sigset_t sigSet;\n"
   "68\t\n"
   "69\t  printf( \"\\n"
   "set sigprocmask\" );\n"
   "(gdb) "
2005.01.06 12:54:22
-> "info line\n"
2005.01.06 12:54:22
<- "Line 69 of \"/home/sw/cve_purify/amu/relcomp/mainctrl/src/main.C\" starts 
at address 0x13778 <main+4> and ends at 0x13788 <main+20>.\n"
   
"\032\032/home/sw/cve_purify/amu/relcomp/mainctrl/src/main.C:69:1477:beg:0x13778\n"
   "(gdb) "
2005.01.06 12:54:22
-> "output 4711\n"
2005.01.06 12:54:22
<- "4711(gdb) "
2005.01.06 12:54:22
-> "show language\n"
2005.01.06 12:54:22
<- "The current source language is \"auto; currently c++\".\n"
   "(gdb) "
2005.01.06 12:54:22
-> "show version\n"
2005.01.06 12:54:22
<- "GNU gdb 5.3\n"
   "Copyright 2002 Free Software Foundation, Inc.\n"
   "GDB is free software, covered by the GNU General Public License, and you 
are\n"
   "welcome to change it and/or distribute copies of it under certain 
conditions.\n"
   "Type \"show copying\" to see the conditions.\n"
   "There is absolutely no warranty for GDB.  Type \"show warranty\" for 
details.\n"
   "This GDB was configured as \"sparc-sun-solaris2.8\".\n"
   "(gdb) "
2005.01.06 12:54:22
-> "pwd\n"
2005.01.06 12:54:22
<- "Working directory 
/home/sw/cve_purify/amu/relcomp/mainctrl/compiler/gcc-posixsim-2.95.3+mainctrl/bld.\n"
   "(gdb) "
2005.01.06 12:54:22
-> "info breakpoints\n"
2005.01.06 12:54:22
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
2005.01.06 12:54:22
-> "show history filename\n"
2005.01.06 12:54:22
<- "The filename in which to record the command history is 
\"/home/sw/cve_purify/amu/relcomp/mainctrl/compiler/gcc-posixsim-2.95.3+mainctrl/bld/.gdb_history\".\n"
   "(gdb) "
2005.01.06 12:54:22
-> "show history size\n"
2005.01.06 12:54:22
<- "The size of the command history is 5000.\n"
   "(gdb) "
#  Reading file "/home/sw/cve_purify/amu/relcomp/mainctrl/src/main.C"...
#  Reading file "/home/sw/cve_purify/amu/relcomp/mainctrl/src/main.C"...done.
#  File "/home/sw/cve_purify/amu/relcomp/mainctrl/src/main.C" 207 lines, 6174 
characters
2005.01.06 12:54:23
-> "info source\n"
2005.01.06 12:54:23
<- "Current source file is 
/home/sw/cve_purify/amu/relcomp/mainctrl/src/main.C\n"
   "Compilation directory is /\n"
   "Located in /home/sw/cve_purify/amu/relcomp/mainctrl/src/main.C\n"
   "Contains 207 lines.\n"
   "Source language is c++.\n"
   "Compiled with stabs debugging format.\n"
   "Does not include preprocessor macro info.\n"
   "(gdb) "
2005.01.06 12:54:23
-> "info files\n"
2005.01.06 12:54:23
<- "Symbols from 
\"/home/sw/cve_purify/amu/relcomp/mainctrl/compiler/gcc-posixsim-2.95.3+mainctrl/bld/mainctrl.exe\".\n"
   "Local exec file:\n"
   
"\t`/home/sw/cve_purify/amu/relcomp/mainctrl/compiler/gcc-posixsim-2.95.3+mainctrl/bld/mainctrl.exe\',
 file type elf32-sparc.\n"
   "\tEntry point: 0x135e0\n"
   "\t0x000100d4 - 0x000100e5 is .interp\n"
   "\t0x000100e8 - 0x00010944 is .hash\n"
   "\t0x00010944 - 0x00011a24 is .dynsym\n"
   "\t0x00011a24 - 0x0001271f is .dynstr\n"
   "\t0x00012720 - 0x0001293c is .gnu.version\n"
   "\t0x0001293c - 0x00012a3c is .gnu.version_r\n"
   "\t0x00012a3c - 0x00012d78 is .rela.dyn\n"
   "\t0x00012d78 - 0x000135c4 is .rela.plt\n"
   "\t0x000135c4 - 0x000135e0 is .init\n"
   "\t0x000135e0 - 0x0077abf0 is .text\n"
   "\t0x0077abf0 - 0x0077ac04 is .fini\n"
   "\t0x0077ac08 - 0x00836228 is .rodata\n"
   "\t0x00846228 - 0x008c72b0 is .data\n"
   "\t0x008c72b0 - 0x008d08bc is .eh_frame\n"
   "\t0x008d08bc - 0x008d0c7c is .gcc_except_table\n"
   "\t0x008d0c7c - 0x008d0d7c is .dynamic\n"
   "\t0x008d0d7c - 0x008d0e34 is .ctors\n"
   "\t0x008d0e34 - 0x008d0ed0 is .dtors\n"
   "\t0x008d0ed0 - 0x008d1750 is .plt\n"
   "\t0x008d1750 - 0x008d1940 is .got\n"
   "\t0x008d1940 - 0x00f75258 is .bss\n"
   "(gdb) "
2005.01.06 12:54:23
-> "info program\n"
2005.01.06 12:54:23
<- "The program being debugged is not being run.\n"
   "(gdb) "
2005.01.06 12:54:23
-> "set confirm off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "source /var/tmp//dddLhaqzY\n"
2005.01.06 12:54:23
<- "/var/tmp//dddLhaqzY:24: Error in sourced command file:\n"
   "No symbol \"off\" in current context.\n"
   "(gdb) "
2005.01.06 12:54:23
-> "info breakpoints\n"
2005.01.06 12:54:23
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
2005.01.06 12:54:23
-> "# reset\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "info breakpoints\n"
2005.01.06 12:54:23
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
2005.01.06 12:54:23
-> "display\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "info display\n"
2005.01.06 12:54:23
<- "There are no auto-display expressions now.\n"
   "(gdb) "
2005.01.06 12:54:23
-> "set environment TERM dumb\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "info files\n"
2005.01.06 12:54:23
<- "Symbols from 
\"/home/sw/cve_purify/amu/relcomp/mainctrl/compiler/gcc-posixsim-2.95.3+mainctrl/bld/mainctrl.exe\".\n"
   "Local exec file:\n"
   
"\t`/home/sw/cve_purify/amu/relcomp/mainctrl/compiler/gcc-posixsim-2.95.3+mainctrl/bld/mainctrl.exe\',
 file type elf32-sparc.\n"
   "\tEntry point: 0x135e0\n"
   "\t0x000100d4 - 0x000100e5 is .interp\n"
   "\t0x000100e8 - 0x00010944 is .hash\n"
   "\t0x00010944 - 0x00011a24 is .dynsym\n"
   "\t0x00011a24 - 0x0001271f is .dynstr\n"
   "\t0x00012720 - 0x0001293c is .gnu.version\n"
   "\t0x0001293c - 0x00012a3c is .gnu.version_r\n"
   "\t0x00012a3c - 0x00012d78 is .rela.dyn\n"
   "\t0x00012d78 - 0x000135c4 is .rela.plt\n"
   "\t0x000135c4 - 0x000135e0 is .init\n"
   "\t0x000135e0 - 0x0077abf0 is .text\n"
   "\t0x0077abf0 - 0x0077ac04 is .fini\n"
   "\t0x0077ac08 - 0x00836228 is .rodata\n"
   "\t0x00846228 - 0x008c72b0 is .data\n"
   "\t0x008c72b0 - 0x008d08bc is .eh_frame\n"
   "\t0x008d08bc - 0x008d0c7c is .gcc_except_table\n"
   "\t0x008d0c7c - 0x008d0d7c is .dynamic\n"
   "\t0x008d0d7c - 0x008d0e34 is .ctors\n"
   "\t0x008d0e34 - 0x008d0ed0 is .dtors\n"
   "\t0x008d0ed0 - 0x008d1750 is .plt\n"
   "\t0x008d1750 - 0x008d1940 is .got\n"
   "\t0x008d1940 - 0x00f75258 is .bss\n"
   "(gdb) "
2005.01.06 12:54:23
-> "info program\n"
2005.01.06 12:54:23
<- "The program being debugged is not being run.\n"
   "(gdb) "
2005.01.06 12:54:23
-> "set auto-solib-add on\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set confirm off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set editing on\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set exec-done-display off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set history expansion off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set history save off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set opaque-type-resolution on\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set overload-resolution on\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set pagination on\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set print address on\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set print array off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set print asm-demangle on\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set print demangle on\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set print null-stop off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set print object off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set print pascal_static-members on\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set print pretty off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set print sevenbit-strings off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set print static-members on\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set print symbol-filename off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set print union on\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set print vtbl off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set procfs-trace off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set stop-on-solib-events off\n"
2005.01.06 12:54:23
<- "No symbol \"off\" in current context.\n"
   "(gdb) "
2005.01.06 12:54:23
-> "set trust-readonly-sections off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set unwindonsignal off\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set can-use-hw-watchpoints 1\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set debug arch 0\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set debug event 0\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set debug expression 0\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set debug overload 0\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set debug remote 0\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set debug serial 0\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set debug target 0\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:23
-> "set debugvarobj 0\n"
2005.01.06 12:54:23
<- "(gdb) "
2005.01.06 12:54:24
-> "set architecture auto\n"
2005.01.06 12:54:24
<- "The target architecture is set automatically (currently sparc)\n"
   "(gdb) "
2005.01.06 12:54:24
-> "set endian auto\n"
2005.01.06 12:54:24
<- "The target endianness is set automatically (currently big endian)\n"
   "(gdb) "
2005.01.06 12:54:24
-> "set demangle-style auto\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set language auto\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set follow-fork-mode parent\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set check range auto\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set check type auto\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set annotate 1\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set case-sensitive auto\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set complaints 0\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set download-write-size 0d512\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set gnutarget auto\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set height 0\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set history filename 
/home/sw/cve_purify/amu/relcomp/mainctrl/compiler/gcc-posixsim-2.95.3+mainctrl/bld/.gdb_history\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set history size 0d5000\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set input-radix 0d10\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set listsize 0d10\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set max-user-call-depth 0d1024\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set os \n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set output-radix 0d10\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set print elements 0d200\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set print max-symbolic-offset 0\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set print repeats 0d10\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set procfs-file procfs_trace\n"
2005.01.06 12:54:24
<- "(gdb) "
2005.01.06 12:54:24
-> "set prompt \n"
#  Echo: waiting until GDB gets ready
#  Saving options in "/home/sw/.ddd/init"...
#  Searching "ddd/Ddd"...
#  Trying "/home/sw/.ddd/ddd/Ddd"
#  Trying "/appl/applications/ddd-3.3.1/ddd/Ddd"
#  Trying "/swdev/tools/share/ddd-3.3.10/ddd/Ddd"
#  Searching "ddd/Ddd"..."/swdev/tools/share/ddd-3.3.10/ddd/Ddd".
#  Saving options in "/home/sw/.ddd/init"...done.
#  Running GDB (pid 25806, tty /dev/pts/12)...Exit 0.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]