develooper Front page | perl.perl5.porters | Postings from February 2018

Re: Storable noisy STDERR output

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
February 20, 2018 07:58
Subject:
Re: Storable noisy STDERR output
Message ID:
20180220085747.7f94c6a4@pc09.procura.nl
On Tue, 20 Feb 2018 10:21:45 +1100, Tony Cook <tony@develop-help.com>
wrote:

> On Mon, Feb 19, 2018 at 03:00:44PM +0000, Dave Mitchell wrote:
> > Perhaps in dist/Storable/stacksize it should invoke the likely-to-SEGV
> > command using the list rather than string form of system(), so that a
> > shell isn't invoked which will complain about a SEGV?  
> 
> That has some complications
> 
> On Linux (and most POSIXish systems) at least, the invocation is
> something like:
> 
>   ulimit -c 0 ; perl -I... -MStorable ...

That is not Linux (or POSIXish systems), but sh/ksh/bash
In csh/tcsh:

% ulimit -c 0

Correct > unlimit -c 0 [y|n|E|a]?

% limit coredumpsize
coredumpsize 0 kbytes

> To avoid that I'd need to probe for and expose setrlimit() and
> RLIMIT_CORE *and* make BSD::Resource a dependency on CPAN releases,
> and have stacksize switch between whichever is available.
> 
> I guess I could supress those messages by redirecting stderr, but
> that's kind of hacky (and in the attached.)
> 
> On Mon, Feb 19, 2018 at 10:39:12PM +0000, Dave Mitchell wrote:
> > On Mon, Feb 19, 2018 at 03:00:44PM +0000, Dave Mitchell wrote:  
> > > On linux with bash at least, the Storable build process has started to
> > > become exceeding noisy on STDERR, with many lines similar to  
> > 
> > Also, the output on STDOUT is a bit scary:
> > 
> >     65000 failed, try less 32550 ...
> >     32550 failed, try less 16325 ...
> >     16325 failed, try less 8213 ...
> >     8213 passed, try more 12269 ...
> > 
> > If you see several lines saying 'failed' scrolling up the screen, you
> > tend to panic. Also, it's not clear what they pertain to, especially
> > for a parallel build. Maybe use something more like:
> > 
> >     Storable: determining recursion limit: 65000 too big, try less 32550 ...
> >     Storable: determining recursion limit: 8213 too small, try more 12269 ...  
> 
> How about the attached?
> 
> Tony


-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.27   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About