Re: tcsh backtick hang info



On Fri, Jul 13, 2007 at 03:59:00PM -0700, Doug White wrote:
Dropping Christos and tcsh-bugs from CC: for now.

On Thu, 12 Jul 2007, Steve Kargl wrote:

On Thu, Jul 12, 2007 at 10:37:50PM +0300, Abdullah Ibn Hamad Al-Marri
wrote:

As for GDB, why don't you import 6.6? it's already in the ports and
works smoothly in 7.0 and 6.2-stable as well.


GDB 6.6 doesn't magically fix tcsh.

As I noted in my PR followup, I wasn't able to reproduce your issue with
current SVN GCC and HEAD. I'm looking for either something thats
different in our environments (library versions?) or a different test case
that triggers the issue on -CURRENT.

Have you verified the issue still exists with current everything
(including a freshened mpfr library)?


This has absolutely nothing to do with SVN GCC. tcsh 6.15.0 is
BROKEN.

In one xterm:

mobile:kargl[204] cd tmp
mobile:kargl[205] cat > h.c
#include <stdio.h>
int main(void) {
printf("hello\n");
return 0;
}
mobile:kargl[206] cc -o z -g h.c
mobile:kargl[207] gdb z
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "i386-marcel-freebsd"...
(gdb) run
Starting program: /usr/home/kargl/tmp/z
^C
^C^C^C^C^C^C^C^C
^Z
Terminated

In a 2nd xterm:

44 processes: 2 running, 40 sleeping, 1 stopped, 1 zombie
CPU states: % user, % nice, % system, % interrupt, % idle
Mem: 113M Active, 223M Inact, 91M Wired, 25M Cache, 60M Buf, 41M Free
Swap: 712M Total, 19M Used, 694M Free, 2% Inuse

PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
25340 kargl 1 107 0 5844K 3920K RUN 0:19 64.12% gdb
25341 kargl 1 101 0 4472K 1712K STOP 0:08 28.44% tcsh

mobile:kargl[203] killall gdb

The 'killall gdb' is the cause of the 'Terminated' message in the
first xterm.

You can also visit the tcsh mailing list
http://mx.gw.com/pipermail/tcsh-bugs/2007-May/thread.html

--
Steve
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Process for requesting reverting patch?
    ... > "tcsh hangs when invoked from gdb"? ... I've use the freebsd base system gdbfor nearly 15 years ...
    (freebsd-current)
  • Re: tcsh backtick hang info
    ... I spent several hours today pawing through the tcsh source in an effort to figure out whats going on with tcsh hangs with backticked commands in tcsh 6.15.00. ... the disabled count for SIGCHLD is 1 when SIGCHLD fires from the completion of the backticked commands. ... I haven't yet determined the call stack (and gdb cannot debug tcsh at the moment) so I need to continue instrumenting the code to figure out what higher level function is disabling SIGCHLD and then calling something that eventually calls pjwait. ...
    (freebsd-current)
  • Re: Process for requesting reverting patch?
    ... gdb uses ptrace, which breaks the process hierarchy - the debugged ... attaches to the child, the child will seem - from the parent's ... to tcsh, so you can get off mp@'s back already. ... I've use the freebsd base system gdbfor nearly 15 years ...
    (freebsd-current)
  • Re: Process for requesting reverting patch?
    ... process is reparented to gdb. ... When the debugged process forks and gdb ... attaches to the child, the child will seem - from the parent's ... gdb has always worked for me until the recent import of tcsh. ...
    (freebsd-current)
  • Re: Process for requesting reverting patch?
    ... >> As the owner of the PR and the person that committed the recent tcsh I take ... Copyright 2004 Free Software Foundation, ... GDB is free software, covered by the GNU General Public License, and you are ... There is absolutely no warranty for GDB. ...
    (freebsd-current)