Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8613 - ddd: hangs, no answer from gdb received?
Summary: ddd: hangs, no answer from gdb received?
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Brad Cowan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-01 10:06 UTC by Klaus Kusche
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Kusche 2002-10-01 10:06:43 UTC
Problem:
1.) Any ddd command which requires interaction with gdb hangs ad infinitum and
consumes 100 % CPU, mostly in kernel mode.

The trace shows that DDD has sent the set prompt command to GDB and is waiting
for a response:

GNU DDD 3.3.1 (i686-pc-linux-gnu)
Copyright (C) 1995-1999 Technische Universit<E4>t Braunschweig, Germany.
Copyright (C) 1999-2001 Universit<E4>t Passau, Germany.

Compiled with GCC 3.1.1, GNU libc 2.2
Requires X11R6, Xt11R6, Motif 2.2.2 (Motif Version 2.2.2)
Includes XPM 3.4.11, Athena Panner, DDD core
Built 2002-09-28 by root <root@10.0.0.141>.
$  ddd
+  /bin/sh -c 'exec gdb -q -fullname'
#  Hello, world!
#  Starting GDB...
#  Running GDB (pid 14197, tty /dev/pts/5)...
#  Current language: C/C++
#  Searching "vsllib/ddd.vsl"...
#  Trying "/home/kk/.ddd/vsllib/ddd.vsl"
#  Trying "/usr/share/ddd-3.3.1/vsllib/ddd.vsl"
#  Searching "vsllib/ddd.vsl"..."/usr/share/ddd-3.3.1/vsllib/ddd.vsl".
<- "(gdb) "
-> "set prompt (gdb) \n"
#  Open Program: waiting until GDB gets ready...

An strace shows that ddd is calling select within a tight loop, and select
immediately returns that no data is available.

ps and lsof show that the gdb process is alive and connected to the pseudo term.

Calling gdb manually and typing "set prompt (gdb)" works.

2.) When leaving ddd, a message says that gdb is still busy. After confirming,
it takes 2 sec until ddd really terminates. It prints 2 lines to the starting
console:
/bin/sh -c 'exec gdb -q -fullname' [14197]: Terminated
/bin/sh -c 'exec gdb -q -fullname' [14197]: Agent wouldn't die (Terminated)

Version information:
sys-devel/gcc-3.1.1-r1
dev-util/ddd-3.3.1-r2
sys-libs/glibc-2.2.5-r7
sys-devel/gdb-5.2.1
Comment 1 Brad Cowan (RETIRED) gentoo-dev 2002-10-03 17:07:58 UTC
If u find a fix let me know, but is this a gentoo bug or an upsteam bug with DDD
and gdb? Possibly even a gcc issue?
Comment 2 Klaus Kusche 2002-10-04 10:52:43 UTC
I've no idea if it is gentoo's, DDD's, gdb's or gcc's fault.

I've reported the same problem to bug-ddd@gnu.org, but received no response yet
(so it is most likely neither a known nor a general problem).

ddd worked on the same gentoo machine a few weeks ago. Unfortunately, I don't
know which packages changed in the meantime or which of the changes (I perform
an emerge world almost daily) made ddd nonfunctional.

I have no idea what I could try to analyze and fix the problem.

I have the same ddd version working on several non-gentoo systems, but all of
them have older versions of gcc / glibc / gdb (RH 7.1, RH 7.2, Suse 8.0).
Comment 3 Brad Cowan (RETIRED) gentoo-dev 2002-11-17 20:40:30 UTC
Any update on this? until then I'm marking the bug invalid :) thanks
Comment 4 Klaus Kusche 2002-11-18 11:07:25 UTC
* Still does not work for me.
* No feedback at all from the ddd side.
* I'm not sure if that's the same problem, but anjuta didn't work for me,
either, and the behaviour looked similar. However, Insight works fine.