delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/16/15:56:43

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 16 Feb 2004 15:56:10 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Thomas L Roche <tlroche AT us DOT ibm DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: limiting strace?, was: failure of unzip and recent cygwin1.dll
In-Reply-To: <OF971070FD.9BD2ABA0-ON85256E3C.006EF97A-85256E3C.0071AFC2@us.ibm.com>
Message-ID: <Pine.GSO.4.56.0402161553580.26191@slinky.cs.nyu.edu>
References: <OF971070FD DOT 9BD2ABA0-ON85256E3C DOT 006EF97A-85256E3C DOT 0071AFC2 AT us DOT ibm DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Mon, 16 Feb 2004, Thomas L Roche wrote:

> Is there a way to limit the size of the strace output _file_, rather
> than just the output file buffer, while preserving desired
> information?
>
> I previously used strace to debug the problem that 20040213 induced in
> emacs 'desktop', therefore in emacs' startup; nevertheless the
> resulting strace.out was > 21 MB. Thus I am somewhat hesitant to avail
> myself of
>
> Christopher Faylor Sun, 15 Feb 2004 21:12:02 -0500
> > more strace output for the failing condition, meaning that if you do
> > this:
>
> >   strace -o strace.out unzip whatever
>
> > it should produce a large strace file.
>
> (quite the understatement :-) since
>
> * the unzip SEGVs typically occur after 30-60 min runtime
>
> * I have < 5 GB free space.
>
> Is there a way to limit the file size directly, or to script its
> rotation?
>
> Alternatively, is there a recommended mask setting that will preserve
> the desired information, while not blowing out my disk? I'm assuming
> 'malloc' would be part of the recommended setting: anything else?

You're on Cygwin, man!  Use the scripting tools! :-)

Don't forget that strace by default sends the trace to stdout.  You can
then pipe it to any program you wish (e.g., "tail -100", or "grep -v ...",
or a whole bunch of others).  You can then redirect the output of the pipe
chain to a file, if you wish...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019