Re: sysutils/strace wilderness on 6-CURRENT

From: Dan Nelson (dnelson_at_allantgroup.com)
Date: 08/31/04

  • Next message: Wilko Bulte: "Re: Addendum: FreeBSD 5.3-BETA2 for Alpha/AXP Available"
    Date: Tue, 31 Aug 2004 12:23:55 -0500
    To: Gary Jennejohn <garyj@www.jennejohn.org>
    
    

    In the last episode (Aug 31), Gary Jennejohn said:
    > Dan Nelson writes:
    > > In the last episode (Aug 31), Vladimir Grebenschikov said:
    > > > It silmple does nothing - sleeps foreaver in suspended:
    > > >
    > > > # strace /bin/ls
    > >
    > > This has happened on 5.x for ages. The quick fix is to ^Z, then
    > > fg, or kill -CONT the hung strace process from another vty. I
    > > don't know what strace does different from truss that makes it
    > > hang. Nowadays, truss does almost as good a job as strace, so I
    > > don't use it as often as I used to. The only thing I miss is
    > > strace's ability to print the name of blocking syscalls (read or
    > > sleep for example) as it waits.
    > >
    >
    > I fixed a bug like this in strace for Linux. The SIGCHLD handler was
    > being set too late and the child (through some wacky handling of
    > SIGCHLD in the Linux kernel) got into a state where it never returned
    > the expected status in wait(). Both the child and strace ended up
    > hanging. kill -CONT also got things going there. Maybe FreeBSD has a
    > similar problem?

    Dunno. Strace is a port built from the sources at sourceforge, so I
    assume that any Linux fixes would also be included. I see the port is
    at 4.5.1 but sourceforge is up to 4.5.7. Maybe a newer version works
    better?

    -- 
    	Dan Nelson
    	dnelson@allantgroup.com
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Wilko Bulte: "Re: Addendum: FreeBSD 5.3-BETA2 for Alpha/AXP Available"

    Relevant Pages

    • Re: CPU model, processor type via C
      ... > tracking the system calls via truss or strace. ... No truss, and strace on HP-UX is for streams. ... tusc online. ...
      (comp.sys.hp.hpux)
    • Re: HP-UX 11i Compiling Troubles
      ... Trace the execution using strace, or truss to watch the system calls. ...
      (comp.sys.hp.hpux)
    • Re: procfs problem
      ... >> debugging tools except for truss have been converted to work without ... >> procfs, ... > strace is not part of FreeBSD. ... Is someone working on fixing the strace and truss ports yet? ...
      (freebsd-current)
    • Re: sysutils/strace wilderness on 6-CURRENT
      ... The quick fix is to ^Z, then fg, or ... kill -CONT the hung strace process from another vty. ... strace does different from truss that makes it hang. ...
      (freebsd-current)
    • Re: problems with strace
      ... trouble opening proc file ... Dan Nelson ...
      (freebsd-questions)