Project

General

Profile

Actions

Bug #926

closed

tcsh consumes much cpu when trying to gdb anything

Added by nant over 16 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

how to replicate:

1) set the environment variable SHELL=/bin/tcsh
2) gdb /usr/bin/true
3) (gdb) run

a ktrace of the offending process reveals the following:

[...]
2203 tcsh CALL fork
2203 tcsh RET fork RESTART
2203 tcsh CALL fork
2203 tcsh RET fork RESTART
2203 tcsh CALL fork
2203 tcsh RET fork RESTART
2203 tcsh CALL fork
2203 tcsh RET fork RESTART
2203 tcsh CALL fork
2203 tcsh RET fork RESTART
2203 tcsh CALL fork
2203 tcsh RET fork RESTART
2203 tcsh CALL fork
2203 tcsh RET fork RESTART
2203 tcsh CALL fork
2203 tcsh RET fork RESTART
[...]

This is on a recent HEAD.

I'll try to chase this but any help would be appreciated. :)

Cheers,
Nuno


Files

gdb-tcsh-fork.diff (540 Bytes) gdb-tcsh-fork.diff corecode, 01/24/2008 12:30 PM
Actions

Also available in: Atom PDF