Enbugger v2.016 Perl 5 v5.24.3 OpenBSD.amd64-openbsd
- Status
- Fail
- From
- Alceu Rodrigues de Freitas Junior
- Dist
-
Enbugger v2.016
- Platform
- Perl 5 v5.24.3 OpenBSD.amd64-openbsd
- Date
- 2018-02-23 01:54:21
- ID
- 77a2f296-183c-11e8-86a0-aae65148dc6f
This distribution has been tested as part of the CPAN Testers
project, supporting the Perl programming language. See
http://wiki.cpantesters.org/ for more information or email
questions to cpan-testers-discuss@perl.org
--
Dear Joshua ben Jore,
This is a computer-generated report for Enbugger-2.016
on perl 5.24.3, created by CPAN-Reporter-1.2018.
Thank you for uploading your work to CPAN. However, there was a problem
testing your distribution.
If you think this report is invalid, please consult the CPAN Testers Wiki
for suggestions on how to avoid getting FAIL reports for missing library
or binary dependencies, unsupported operating systems, and so on:
http://wiki.cpantesters.org/wiki/CPANAuthorNotes
Sections of this report:
* Tester comments
* Program output
* Prerequisites
* Environment and other context
------------------------------
TESTER COMMENTS
------------------------------
Additional comments from tester:
this report is from an automated smoke testing program
and was not reviewed by a human for accuracy
------------------------------
PROGRAM OUTPUT
------------------------------
Output from '/usr/bin/make test':
"/home/goku/perl5/perlbrew/perls/perl-5.24.3/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Enbugger.bs blib/arch/auto/Enbugger/Enbugger.bs 644
PERL_DL_NONLAZY=1 "/home/goku/perl5/perlbrew/perls/perl-5.24.3/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/10load.t .............. ok
#!perl
# COPYRIGHT AND LICENCE
#
# Copyright (C) 2007,2008 WhitePages.com, Inc. with primary
# development by Joshua ben Jore.
#
# This program is distributed WITHOUT ANY WARRANTY, including but not
# limited to the implied warranties of merchantability or fitness for
# a particular purpose.
#
# The program is free software. You may distribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation (either version 2 or any later version)
# and the Perl Artistic License as published by OâÂÂReilly Media, Inc.
# Please open the files named gpl-2.0.txt and Artistic for a copy of
# these licenses.
use strict;
use warnings;
use Getopt::Long qw( GetOptions );
use vars qw( $Ok );
use lib qw( ./t/ );
BEGIN {
require 'reset_perms.pl';
=head1 DESCRIPTION
This test attempts to run the perl5db debugger, gives it some
commands, then tests that the commands occurred. In general the idea
is that depending on how the Enbugger.xs code is modifying COP nodes,
it could have either removed instrumentation from code that should be
instrumented or done the reverse and instrumented the debugger itself.
The output of this program can be read by another program and used in
a test.
=head1 OPTIONS
=over
=item --noimport
Enbugger will be loaded without calling C<< ->import >>.
=item --import ELT
Adds an item to the C<< ->import >> argument list.
=item --help
Runs perldoc on this program.
=item --load_perl5db
After loading Enbugger, C<< Enbugger->load_perl5db >> will also be called.
=back
=cut
$ENV{PERLDB_OPTS} = 'noTTY';
# Option parsing.
my $import = 1;
my @import = ();
my $loadPerl5Db = 0;
my $onError = 0;
GetOptions(
help => sub { exec {'perldoc'} 'perldoc', $0 },
noimport => sub { $import = 0 },
'import=s' => \@import,
load_perl5db => \ $loadPerl5Db,
onerror => \ $onError,
)
or exec {'perldoc'} 'perldoc', $0;
# Promote some options into constants.
require constant;
constant->import( LoadPerl5Db => !! $loadPerl5Db );
# The test is whether the debugger runs and is controlled by my
# test commands here.
{
no warnings 'once';
push @DB::typeahead, '$main::Ok = 1', 'c', 'q';
}
# All our output will go to *OUT. If this program was given a
# parameter, we accept it as file that we should write our output too.
{
my ( $file ) = shift @ARGV;
if ( defined $file ) {
open OUT, '>', $file
or die "Can't open $file for writing: $!";
}
else {
*OUT = *STDOUT;
}
# OUTPUT is HOT.
select *OUT;
$| = 1;
# Things written to STDERR should also go to our single *OUT.
no warnings 'once';
*STDERR = $DB::OUT = $DB::LINEINFO = *OUT;
}
# Look to see if the debugger is on. Before I go and load
# Enbugger, I figure I can at least count on being able to examine
# $^P to see if we were started with the -d debugger flag.
constant->import( UnderTheDebugger => !! $^P );
# Load Enbugger and completely knacker our process. This little
# snippet used to just be a static `use Enbugger;' but I moved it
# up here when it became obvious that I wanted to optionally avoid
# importing anything.
if ( $onError ) {
require Enbugger::OnError;
Enbugger::OnError->import;
}
else {
require Enbugger;
if ( $import ) {
Enbugger->import( @import );
}
}
# Now dropping into normal run-time.
}
# Load the perl5db debugger if the user asked for us to do it
# manually. Normally the ->stop method call will also do this for us.
if ( LoadPerl5Db ) {
Enbugger->load_perl5db;
}
# Trigger a breakpoint.
#
# At this point, I already supplied some commands to the debugger so
# it should go set our $ok variable and then continue on
# automatically.
Enbugger->stop unless $Ok;
# Check that the debugger was stopped and it processed the commands
# requested of it.
$Ok = 'undef' if not defined $Ok;
print "\$ok = $Ok.\n";
## Local Variables:
## mode: cperl
## mode: auto-fill
## cperl-indent-level: 4
## tab-width: 8
## End:
main::(t/11load.pl:159): $Ok = 'undef' if not defined $Ok;
$ok = 1.
Failed to run /home/goku/perl5/perlbrew/perls/perl-5.24.3/bin/perl -Mblib t/11load.pl --noimport /tmp/RPBmF4iTek: signal: 11 at t/Test/Enbugger.pm line 104.
# Looks like your test exited with 255 just after 1.
t/11load.t ..............
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 11/12 subtests
t/20error.t ............. ok
t/21error.t ............. ok
t/22signal.t ............ ok
#!perl
# COPYRIGHT AND LICENCE
#
# Copyright (C) 2014 Joshua ben Jore.
#
# This program is distributed WITHOUT ANY WARRANTY, including but not
# limited to the implied warranties of merchantability or fitness for
# a particular purpose.
#
# The program is free software. You may distribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation (either version 2 or any later version)
# and the Perl Artistic License as published by OâÂÂReilly Media, Inc.
# Please open the files named gpl-2.0.txt and Artistic for a copy of
# these licenses.
use strict;
use warnings;
use Getopt::Long qw( GetOptions );
use vars qw( $Caught $Value );
use lib qw( ./t );
BEGIN {
require 'reset_perms.pl';
=head1 DESCRIPTION
This test attempts to run the perl5db debugger, break on a line, then
tests that the break occurred where expected. This tests both that
%{"_<30break.pl"} with L magic and @{"_<30break.pl"} with dual-var
strings has been created.
The output of this program can be read by another program and used in
a test.
=head1 OPTIONS
=over
=item --noimport
Enbugger will be loaded without calling C<< ->import >>.
=item --import ELT
Adds an item to the C<< ->import >> argument list.
=item --help
Runs perldoc on this program.
=item --load_perl5db
After loading Enbugger, C<< Enbugger->load_perl5db >> will also be called.
=back
=cut
$ENV{PERLDB_OPTS} = 'noTTY';
# Option parsing.
my $import = 1;
my @import = ();
my $loadPerl5Db = 0;
GetOptions(
help => sub { exec {'perldoc'} 'perldoc', $0 },
noimport => sub { $import = 0 },
'import=s' => \@import,
load_perl5db => \ $loadPerl5Db,
)
or exec {'perldoc'} 'perldoc', $0;
# Promote some options into constants.
require constant;
constant->import( LoadPerl5Db => !! $loadPerl5Db );
# The test is whether the debugger runs and is controlled by my
# test commands here.
{
no warnings 'once';
@DB::typeahead = (
'l 1-200',
'b 146',
'c',
'$main::Caught = $main::Value',
'c',
'q'
);
}
# All our output will go to *OUT. If this program was given a
# parameter, we accept it as file that we should write our output too.
{
my ( $file ) = shift @ARGV;
if ( defined $file ) {
open OUT, '>', $file
or die "Can't open $file for writing: $!";
}
else {
*OUT = *STDOUT;
}
# OUTPUT is HOT.
select *OUT;
$| = 1;
# Things written to STDERR should also go to our single *OUT.
no warnings 'once';
*STDERR = $DB::OUT = $DB::LINEINFO = *OUT;
}
# Look to see if the debugger is on. Before I go and load
# Enbugger, I figure I can at least count on being able to examine
# $^P to see if we were started with the -d debugger flag.
constant->import( UnderTheDebugger => !! $^P );
# Load Enbugger and completely knacker our process. This little
# snippet used to just be a static `use Enbugger;' but I moved it
# up here when it became obvious that I wanted to optionally avoid
# importing anything.
require Enbugger;
if ( $import ) {
Enbugger->import( @import );
}
}
# Commands executed here:
# > l 1-200
# > b 146
# > c
Enbugger->stop;
$Value = 0;
$Value = 1;
$Value = 2;
$Value = 3;
# Commands executed here when the breakpoint works.
# > $main::Caught = $main::Value
# > c
$Value = 4;
$Value = 5;
$Value = 6;
$Value = 7;
$Value = 8;
$Value = 9;
$Value = 0;
$Caught = 'undef' if ! defined $Caught;
print "\$Caught = $main::Caught.\n";
# Commands executed here:
# > q
main::(t/30break.pl:138): $Value = 0;
Failed to run /home/goku/perl5/perlbrew/perls/perl-5.24.3/bin/perl -Mblib t/30break.pl /tmp/b0bI309Qbd: signal: 6 at t/Test/Enbugger.pm line 104.
# Looks like your test exited with 255 before it could output anything.
t/30break.t .............
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 24/24 subtests
Error closing profile data file: Invalid argument
# report_file: t/nytprof.out
# report_dir: t/nytprof
# nytprofcsv: /home/goku/perl5/perlbrew/perls/perl-5.24.3/bin/nytprofcsv
fwrite in flush error 28: No space left on device.
END failed--call queue aborted.
# Failed test 'Run t/nytprof.pl ok'
# at t/nytprof.t line 92.
# got: '7168'
# expected: '0'
NYTProf data format error while reading header at /home/goku/perl5/perlbrew/perls/perl-5.24.3/lib/site_perl/5.24.3/OpenBSD.amd64-openbsd/Devel/NYTProf/Data.pm line 90.
# Failed test 'Ran /home/goku/perl5/perlbrew/perls/perl-5.24.3/bin/nytprofcsv --file t/nytprof.out --out t/nytprof ok'
# at t/nytprof.t line 107.
# got: '512'
# expected: '0'
# Failed test 'Report dir t/nytprof exists'
# at t/nytprof.t line 108.
# Failed test 'Report dir t/nytprof is a directory'
# at t/nytprof.t line 109.
fwrite in flush error 28: No space left on device at t/nytprof.pl line 12.
deflate(22,2) failed, error -5 (buffer error) in pid 54113.
END failed--call queue aborted.
# Failed test 'Run t/nytprof.pl ok'
# at t/nytprof.t line 118.
# got: '5632'
# expected: '0'
NYTProf data format error while reading header at /home/goku/perl5/perlbrew/perls/perl-5.24.3/lib/site_perl/5.24.3/OpenBSD.amd64-openbsd/Devel/NYTProf/Data.pm line 90.
# Failed test 'Ran /home/goku/perl5/perlbrew/perls/perl-5.24.3/bin/nytprofcsv --file t/nytprof.out --out t/nytprof ok'
# at t/nytprof.t line 133.
# got: '512'
# expected: '0'
# Failed test 'Report dir t/nytprof exists'
# at t/nytprof.t line 134.
# Failed test 'Report dir t/nytprof is a directory'
# at t/nytprof.t line 135.
# Looks like you failed 8 tests of 14.
t/nytprof.t .............
Dubious, test returned 8 (wstat 2048, 0x800)
Failed 8/14 subtests
t/release-pod-syntax.t .. skipped: these tests are for release candidate testing
t/trepantest.t .......... skipped: Skipped because Devel::Trepan isn't installed
Test Summary Report
-------------------
t/11load.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 12 tests but ran 1.
t/30break.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 24 tests but ran 0.
t/nytprof.t (Wstat: 2048 Tests: 14 Failed: 8)
Failed tests: 1, 5-8, 12-14
Non-zero exit status: 8
Files=9, Tests=20, 8 wallclock secs ( 0.03 usr 0.11 sys + 4.53 cusr 2.18 csys = 6.85 CPU)
Result: FAIL
Failed 3/9 test programs. 8/20 subtests failed.
*** Error 255 in /mnt/cpan_build_dir/goku/Enbugger-2.016-0 (Makefile:1078 'test_dynamic')
------------------------------
PREREQUISITES
------------------------------
Prerequisite modules loaded:
requires:
Module Need Have
------------------- ---- --------
B::Utils 0.25 0.27
Test::More 0 1.302124
build_requires:
Module Need Have
------------------- ---- --------
ExtUtils::MakeMaker 0 7.32
configure_requires:
Module Need Have
------------------- ---- --------
B::Utils 0.22 0.27
ExtUtils::CBuilder 0 0.280230
Test::More 0 1.302124
------------------------------
ENVIRONMENT AND OTHER CONTEXT
------------------------------
Environment variables:
AUTOMATED_TESTING = 1
DBD_MYSQL_TESTDB = test
DBD_MYSQL_TESTHOST = localhost
DBD_MYSQL_TESTPASSWORD =
DBD_MYSQL_TESTPORT = 3306
DBD_MYSQL_TESTUSER = goku
EXTENDED_TESTING = 1
PATH = /home/goku/perl5/perlbrew/bin:/home/goku/perl5/perlbrew/perls/perl-5.24.3/bin:/home/goku/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
PERL5LIB =
PERL5OPT =
PERL5_CPANPLUS_IS_RUNNING = 41336
PERL5_CPAN_IS_RUNNING = 41336
PERL5_CPAN_IS_RUNNING_IN_RECURSION = 26318,41336
PERLBREW_HOME = /home/goku/.perlbrew
PERLBREW_MANPATH = /home/goku/perl5/perlbrew/perls/perl-5.24.3/man
PERLBREW_PATH = /home/goku/perl5/perlbrew/bin:/home/goku/perl5/perlbrew/perls/perl-5.24.3/bin
PERLBREW_PERL = perl-5.24.3
PERLBREW_ROOT = /home/goku/perl5/perlbrew
PERLBREW_SHELLRC_VERSION = 0.82
PERLBREW_VERSION = 0.82
PERL_CR_SMOKER_CURRENT = Enbugger-2.016
PERL_EXTUTILS_AUTOINSTALL = --defaultdeps
PERL_MM_USE_DEFAULT = 1
PERL_USE_UNSAFE_INC = 1
SHELL = /usr/local/bin/bash
TERM = xterm
Perl special variables (and OS-specific diagnostics, for MSWin32):
$^X = /home/goku/perl5/perlbrew/perls/perl-5.24.3/bin/perl
$UID/$EUID = 1001 / 1001
$GID = 998 998 1001
$EGID = 998 998 1001
Perl module toolchain versions installed:
Module Have
------------------- --------
CPAN 2.20
CPAN::Meta 2.150010
Cwd 3.74
ExtUtils::CBuilder 0.280230
ExtUtils::Command 7.32
ExtUtils::Install 2.14
ExtUtils::MakeMaker 7.32
ExtUtils::Manifest 1.70
ExtUtils::ParseXS 3.35
File::Spec 3.74
JSON 2.97001
JSON::PP 2.97001
Module::Build 0.42_26
Module::Signature n/a
Parse::CPAN::Meta 2.150010
Test::Harness 3.40_01
Test::More 1.302124
YAML 1.24
YAML::Syck 1.30
version 0.9918
--
Summary of my perl5 (revision 5 version 24 subversion 3) configuration:
Platform:
osname=openbsd, osvers=6.2, archname=OpenBSD.amd64-openbsd
uname='openbsd cpan-smoker-openbsd 6.2 generic.mp#134 amd64 '
config_args='-de -Dprefix=/home/goku/perl5/perlbrew/perls/perl-5.24.3 -Aeval:scriptdir=/home/goku/perl5/perlbrew/perls/perl-5.24.3/bin'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
ccversion='', gccversion='4.2.1 Compatible OpenBSD Clang 4.0.0 (tags/RELEASE_400/final)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678, doublekind=3
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, longdblkind=3
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-Wl,-E -fstack-protector-strong -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib
libs=-lpthread -lm -lutil -lc
perllibs=-lpthread -lm -lutil -lc
libc=/usr/lib/libc.so.90.0, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-DPIC -fPIC ', lddlflags='-shared -fPIC -L/usr/local/lib -fstack-protector-strong'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT
USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME
USE_PERLIO USE_PERL_ATOF
Locally applied patches:
Devel::PatchPerl 1.48
Built under openbsd
Compiled at Feb 15 2018 18:16:36
%ENV:
PERL5LIB=""
PERL5OPT=""
PERL5_CPANPLUS_IS_RUNNING="41336"
PERL5_CPAN_IS_RUNNING="41336"
PERL5_CPAN_IS_RUNNING_IN_RECURSION="26318,41336"
PERLBREW_HOME="/home/goku/.perlbrew"
PERLBREW_MANPATH="/home/goku/perl5/perlbrew/perls/perl-5.24.3/man"
PERLBREW_PATH="/home/goku/perl5/perlbrew/bin:/home/goku/perl5/perlbrew/perls/perl-5.24.3/bin"
PERLBREW_PERL="perl-5.24.3"
PERLBREW_ROOT="/home/goku/perl5/perlbrew"
PERLBREW_SHELLRC_VERSION="0.82"
PERLBREW_VERSION="0.82"
PERL_CR_SMOKER_CURRENT="Enbugger-2.016"
PERL_EXTUTILS_AUTOINSTALL="--defaultdeps"
PERL_MM_USE_DEFAULT="1"
PERL_USE_UNSAFE_INC="1"
@INC:
/home/goku/perl5/perlbrew/perls/perl-5.24.3/lib/site_perl/5.24.3/OpenBSD.amd64-openbsd
/home/goku/perl5/perlbrew/perls/perl-5.24.3/lib/site_perl/5.24.3
/home/goku/perl5/perlbrew/perls/perl-5.24.3/lib/5.24.3/OpenBSD.amd64-openbsd
/home/goku/perl5/perlbrew/perls/perl-5.24.3/lib/5.24.3
.