Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build on "stock" Ubuntu 14.04 #14

Open
nicomen opened this issue Mar 2, 2017 · 11 comments
Open

Fails to build on "stock" Ubuntu 14.04 #14

nicomen opened this issue Mar 2, 2017 · 11 comments

Comments

@nicomen
Copy link

nicomen commented Mar 2, 2017

Not sure exactly why. Perhaps something is missing, Here's a dump of installdeps and the actual test run. The test failing is t/record_playback_proxy.t

root@rg /var/travel/Mojo-UserAgent-Mockable-1.53$ cpanm --installdeps .
--> Working on .
Configuring Mojo-UserAgent-Mockable-1.53 ... OK
==> Found dependencies: Mojolicious::Quick, Test::Pod::Coverage, Pod::Coverage::TrustPod, Mojolicious::Plugin::BasicAuthPlus, Module::Util, Test::JSON, Array::Compare
--> Working on Mojolicious::Quick
Fetching http://www.cpan.org/authors/id/P/PO/POPEFELIX/Mojolicious-Quick-0.002.tar.gz ... OK
/bin/tar: Ignoring unknown extended header keyword 'SCHILY.dev'
...
Configuring Mojolicious-Quick-0.002 ... OK
==> Found dependencies: String::Random
--> Working on String::Random
Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/String-Random-0.29.tar.gz ... OK
Configuring String-Random-0.29 ... OK
Building and testing String-Random-0.29 ... OK
Successfully installed String-Random-0.29
Building and testing Mojolicious-Quick-0.002 ... OK
Successfully installed Mojolicious-Quick-0.002
--> Working on Test::Pod::Coverage
Fetching http://www.cpan.org/authors/id/N/NE/NEILB/Test-Pod-Coverage-1.10.tar.gz ... OK
Configuring Test-Pod-Coverage-1.10 ... OK
==> Found dependencies: Pod::Coverage
--> Working on Pod::Coverage
Fetching http://www.cpan.org/authors/id/R/RC/RCLAMP/Pod-Coverage-0.23.tar.gz ... OK
Configuring Pod-Coverage-0.23 ... OK
==> Found dependencies: Devel::Symdump
--> Working on Devel::Symdump
Fetching http://www.cpan.org/authors/id/A/AN/ANDK/Devel-Symdump-2.18.tar.gz ... OK
Configuring Devel-Symdump-2.18 ... OK
Building and testing Devel-Symdump-2.18 ... OK
Successfully installed Devel-Symdump-2.18
Building and testing Pod-Coverage-0.23 ... OK
Successfully installed Pod-Coverage-0.23
Building and testing Test-Pod-Coverage-1.10 ... OK
Successfully installed Test-Pod-Coverage-1.10
--> Working on Pod::Coverage::TrustPod
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Pod-Coverage-TrustPod-0.100003.tar.gz ... OK
Configuring Pod-Coverage-TrustPod-0.100003 ... OK
==> Found dependencies: Pod::Eventual::Simple
--> Working on Pod::Eventual::Simple
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Pod-Eventual-0.094001.tar.gz ... OK
Configuring Pod-Eventual-0.094001 ... OK
==> Found dependencies: Mixin::Linewise::Readers
--> Working on Mixin::Linewise::Readers
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Mixin-Linewise-0.108.tar.gz ... OK
Configuring Mixin-Linewise-0.108 ... OK
==> Found dependencies: PerlIO::utf8_strict
--> Working on PerlIO::utf8_strict
Fetching http://www.cpan.org/authors/id/L/LE/LEONT/PerlIO-utf8_strict-0.006.tar.gz ... OK
Configuring PerlIO-utf8_strict-0.006 ... OK
Building and testing PerlIO-utf8_strict-0.006 ... OK
Successfully installed PerlIO-utf8_strict-0.006
Building and testing Mixin-Linewise-0.108 ... OK
Successfully installed Mixin-Linewise-0.108
Building and testing Pod-Eventual-0.094001 ... OK
Successfully installed Pod-Eventual-0.094001
Building and testing Pod-Coverage-TrustPod-0.100003 ... OK
Successfully installed Pod-Coverage-TrustPod-0.100003
--> Working on Mojolicious::Plugin::BasicAuthPlus
Fetching http://www.cpan.org/authors/id/B/BL/BLR/Mojolicious-Plugin-BasicAuthPlus-0.10.2.tar.gz ... OK
Configuring Mojolicious-Plugin-BasicAuthPlus-v0.10.2 ... OK
==> Found dependencies: Authen::Simple::LDAP, Authen::Simple::Passwd, Authen::Simple::Password
--> Working on Authen::Simple::LDAP
Fetching http://www.cpan.org/authors/id/C/CH/CHANSEN/Authen-Simple-LDAP-0.3.tar.gz ... OK
Configuring Authen-Simple-LDAP-0.3 ... OK
==> Found dependencies: Authen::Simple, Net::LDAP
--> Working on Authen::Simple
Fetching http://www.cpan.org/authors/id/C/CH/CHANSEN/Authen-Simple-0.5.tar.gz ... OK
Configuring Authen-Simple-0.5 ... OK
==> Found dependencies: Crypt::PasswdMD5
--> Working on Crypt::PasswdMD5
Fetching http://www.cpan.org/authors/id/R/RS/RSAVAGE/Crypt-PasswdMD5-1.40.tgz ... OK
Configuring Crypt-PasswdMD5-1.40 ... OK
==> Found dependencies: Digest::MD5
--> Working on Digest::MD5
Fetching http://www.cpan.org/authors/id/G/GA/GAAS/Digest-MD5-2.55.tar.gz ... OK
Configuring Digest-MD5-2.55 ... OK
Building and testing Digest-MD5-2.55 ... OK
Successfully installed Digest-MD5-2.55 (upgraded from 2.52)
Building and testing Crypt-PasswdMD5-1.40 ... OK
Successfully installed Crypt-PasswdMD5-1.40
Building and testing Authen-Simple-0.5 ... OK
Successfully installed Authen-Simple-0.5
--> Working on Net::LDAP
Fetching http://www.cpan.org/authors/id/M/MA/MARSCHAP/perl-ldap-0.65.tar.gz ... OK
Configuring perl-ldap-0.65 ... OK
==> Found dependencies: Convert::ASN1
--> Working on Convert::ASN1
Fetching http://www.cpan.org/authors/id/G/GB/GBARR/Convert-ASN1-0.27.tar.gz ... OK
Configuring Convert-ASN1-0.27 ... OK
Building and testing Convert-ASN1-0.27 ... OK
Successfully installed Convert-ASN1-0.27
Building and testing perl-ldap-0.65 ... OK
Successfully installed perl-ldap-0.65
Building and testing Authen-Simple-LDAP-0.3 ... OK
Successfully installed Authen-Simple-LDAP-0.3
--> Working on Authen::Simple::Passwd
Fetching http://www.cpan.org/authors/id/C/CH/CHANSEN/Authen-Simple-Passwd-0.6.tar.gz ... OK
Configuring Authen-Simple-Passwd-0.6 ... OK
Building and testing Authen-Simple-Passwd-0.6 ... OK
Successfully installed Authen-Simple-Passwd-0.6
Building and testing Mojolicious-Plugin-BasicAuthPlus-v0.10.2 ... OK
Successfully installed Mojolicious-Plugin-BasicAuthPlus-v0.10.2
--> Working on Module::Util
Fetching http://www.cpan.org/authors/id/M/MA/MATTLAW/Module-Util-1.09.tar.gz ... OK
Configuring Module-Util-1.09 ... OK
Building and testing Module-Util-1.09 ... OK
Successfully installed Module-Util-1.09
--> Working on Test::JSON
Fetching http://www.cpan.org/authors/id/O/OV/OVID/Test-JSON-0.11.tar.gz ... OK
Configuring Test-JSON-0.11 ... OK
Building and testing Test-JSON-0.11 ... OK
Successfully installed Test-JSON-0.11
--> Working on Array::Compare
Fetching http://www.cpan.org/authors/id/D/DA/DAVECROSS/Array-Compare-v3.0.0.tar.gz ... OK
Configuring Array-Compare-v3.0.0 ... OK
Building and testing Array-Compare-v3.0.0 ... OK
Successfully installed Array-Compare-v3.0.0
<== Installed dependencies for .. Finishing.
20 distributions installed
root@rg /var/travel/Mojo-UserAgent-Mockable-1.53$ make test
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/request_compare/*.t t/serializer/*.t
t/00-use.t .......................... ok   
t/author-critic.t ................... skipped: these tests are for testing by the author
t/author-pod-coverage.t ............. skipped: these tests are for testing by the author
t/author-pod-syntax.t ............... skipped: these tests are for testing by the author
t/authorization_basic.t ............. ok   
t/basic.t ........................... ok   
t/mojo_url.t ........................ ok    
t/mojolicious_lite.t ................ ok   
t/normalized_req.t .................. ok   
t/passthrough.t ..................... 1/? [Thu Mar  2 12:37:45 2017] [debug] GET "/thingy"
[Thu Mar  2 12:37:45 2017] [debug] Routing to a callback
[Thu Mar  2 12:37:45 2017] [debug] 200 OK (0.003074s, 325.309/s)
[Thu Mar  2 12:37:45 2017] [debug] GET "/thingy"
[Thu Mar  2 12:37:45 2017] [debug] Routing to a callback
[Thu Mar  2 12:37:45 2017] [debug] 200 OK (0.002944s, 339.674/s)
t/passthrough.t ..................... ok   
t/passthrough_nonblocking.t ......... ok   
t/record.t .......................... ok   
t/record_nonblocking.t .............. # Check result 0
t/record_nonblocking.t .............. 1/? # Check result 1
# Get URL 0
# Get URL 1
t/record_nonblocking.t .............. ok   
t/record_playback.t ................. ok    
t/record_playback_nonblocking.t ..... 1/? [Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.003835s, 260.756/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.001024s, 976.562/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.001896s, 527.426/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.000918s, 1089.325/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.00076s, 1315.789/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.002119s, 471.921/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.000815s, 1226.994/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.000972s, 1028.807/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.000798s, 1253.133/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.001625s, 615.385/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.003345s, 298.954/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.002806s, 356.379/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.000801s, 1248.439/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.001153s, 867.303/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.001031s, 969.932/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.002702s, 370.096/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.001085s, 921.659/s)
[Thu Mar  2 12:39:05 2017] [debug] GET "/integers/"
[Thu Mar  2 12:39:05 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:05 2017] [debug] 200 OK (0.00118s, 847.458/s)
t/record_playback_nonblocking.t ..... ok    
t/record_playback_normalized.t ...... ok    
t/record_playback_proxy.t ........... 1/? 
#   Failed test 'Got a number'
#   at t/record_playback_proxy.t line 44.
# Looks like you failed 1 test of 4.
t/record_playback_proxy.t ........... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests 
t/release-cpan-changes.t ............ skipped: these tests are for release candidate testing
t/request_compare/basic.t ........... ok   
t/request_compare/ignore_body.t ..... ok   
t/request_compare/ignore_headers.t .. ok   
t/request_compare/url.t ............. ok   
t/request_compare/usage.t ........... ok   
t/scope.t ........................... ok   
t/serializer/basic.t ................ ok   
t/serializer/binary.t ............... [Thu Mar  2 12:39:32 2017] [debug] GET "/download"
[Thu Mar  2 12:39:32 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:32 2017] [debug] 200 OK (0.005278s, 189.466/s)
t/serializer/binary.t ............... ok   
t/serializer/events.t ............... [Thu Mar  2 12:39:33 2017] [debug] GET "/foo"
[Thu Mar  2 12:39:33 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:33 2017] [debug] 200 OK (0.002346s, 426.257/s)
t/serializer/events.t ............... ok    
t/serializer/multipart.t ............ [Thu Mar  2 12:39:34 2017] [debug] POST "/target"
[Thu Mar  2 12:39:34 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:34 2017] [debug] 200 OK (0.010547s, 94.814/s)
t/serializer/multipart.t ............ ok    
t/serializer/simple.t ............... 1/? [Thu Mar  2 12:39:37 2017] [debug] GET "/records"
[Thu Mar  2 12:39:37 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:37 2017] [debug] 200 OK (0.001192s, 838.926/s)
[Thu Mar  2 12:39:37 2017] [debug] GET "/record/8675309"
[Thu Mar  2 12:39:37 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:37 2017] [debug] 200 OK (0.002566s, 389.712/s)
t/serializer/simple.t ............... ok   
t/serializer/store_retrieve.t ....... 1/? [Thu Mar  2 12:39:38 2017] [debug] GET "/records"
[Thu Mar  2 12:39:38 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:38 2017] [debug] 200 OK (0.001372s, 728.863/s)
[Thu Mar  2 12:39:38 2017] [debug] GET "/record/8675309"
[Thu Mar  2 12:39:38 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:38 2017] [debug] 200 OK (0.001039s, 962.464/s)
t/serializer/store_retrieve.t ....... 3/? [Thu Mar  2 12:39:40 2017] [debug] GET "/integers"
[Thu Mar  2 12:39:40 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:40 2017] [debug] 200 OK (0.009512s, 105.130/s)
[Thu Mar  2 12:39:40 2017] [debug] GET "/integers"
[Thu Mar  2 12:39:40 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:40 2017] [debug] 200 OK (0.000975s, 1025.641/s)
t/serializer/store_retrieve.t ....... ok   
t/session.t ......................... [Thu Mar  2 12:39:42 2017] [debug] GET "/random"
[Thu Mar  2 12:39:42 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:42 2017] [debug] 200 OK (0.001536s, 651.042/s)
t/session.t ......................... 1/? [Thu Mar  2 12:39:42 2017] [debug] GET "/random"
[Thu Mar  2 12:39:42 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:42 2017] [debug] 200 OK (0.001012s, 988.142/s)
[Thu Mar  2 12:39:42 2017] [debug] GET "/random"
[Thu Mar  2 12:39:42 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:42 2017] [debug] 200 OK (0.001264s, 791.139/s)
[Thu Mar  2 12:39:42 2017] [debug] GET "/random"
[Thu Mar  2 12:39:42 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:42 2017] [debug] 200 OK (0.003537s, 282.725/s)
[Thu Mar  2 12:39:42 2017] [debug] GET "/random"
[Thu Mar  2 12:39:42 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:42 2017] [debug] 200 OK (0.000967s, 1034.126/s)
[Thu Mar  2 12:39:42 2017] [debug] GET "/random"
[Thu Mar  2 12:39:42 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:42 2017] [debug] 200 OK (0.000991s, 1009.082/s)
[Thu Mar  2 12:39:42 2017] [debug] GET "/random"
[Thu Mar  2 12:39:42 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:42 2017] [debug] 200 OK (0.000918s, 1089.325/s)
[Thu Mar  2 12:39:42 2017] [debug] GET "/random"
[Thu Mar  2 12:39:42 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:42 2017] [debug] 200 OK (0.000924s, 1082.251/s)
[Thu Mar  2 12:39:42 2017] [debug] GET "/random"
[Thu Mar  2 12:39:42 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:42 2017] [debug] 200 OK (0.000858s, 1165.501/s)
[Thu Mar  2 12:39:42 2017] [debug] GET "/random"
[Thu Mar  2 12:39:42 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:42 2017] [debug] 200 OK (0.002074s, 482.160/s)
[Thu Mar  2 12:39:42 2017] [debug] GET "/history"
[Thu Mar  2 12:39:42 2017] [debug] Routing to a callback
[Thu Mar  2 12:39:42 2017] [debug] 200 OK (0.001199s, 834.028/s)
t/session.t ......................... ok    

Test Summary Report
-------------------
t/record_playback_proxy.t         (Wstat: 256 Tests: 4 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=31, Tests=216, 128 wallclock secs ( 0.45 usr  0.12 sys + 20.07 cusr  4.11 csys = 24.75 CPU)
Result: FAIL
Failed 1/31 test programs. 1/216 subtests failed.
make: *** [test_dynamic] Error 255


root@rg /var/travel/Mojo-UserAgent-Mockable-1.53$ perl -V
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
   
  Platform:
    osname=linux, osvers=3.2.0-58-generic, archname=x86_64-linux-gnu-thread-multi
    uname='linux brownie 3.2.0-58-generic #88-ubuntu smp tue dec 3 17:37:58 utc 2013 x86_64 x86_64 x86_64 gnulinux '
    config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Dldflags= -Wl,-Bsymbolic-functions -Wl,-z,relro -Dlddlflags=-shared -Wl,-Bsymbolic-functions -Wl,-z,relro -Dcccdlflags=-fPIC -Darchname=x86_64-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.18 -Darchlib=/usr/lib/perl/5.18 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.18.2 -Dsitearch=/usr/local/lib/perl/5.18.2 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Duse64bitint -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -Ui_libutil -Uversiononly -DDEBUGGING=-g -Doptimize=-O2 -Duseshrplib -Dlibperl=libperl.so.5.18.2 -des'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -g',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='4.8.2', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
    libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
    perllibs=-ldl -lm -lpthread -lc -lcrypt
    libc=, so=so, useshrplib=true, libperl=libperl.so.5.18.2
    gnulibc_version='2.19'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib -fstack-protector'


Characteristics of this binary (from libperl): 
  Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
                        PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
                        PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_ALL
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
                        USE_REENTRANT_API
  Locally applied patches:
	DEBPKG:debian/cpan_definstalldirs - Provide a sensible INSTALLDIRS default for modules installed from CPAN.
	DEBPKG:debian/db_file_ver - http://bugs.debian.org/340047 Remove overly restrictive DB_File version check.
	DEBPKG:debian/doc_info - Replace generic man(1) instructions with Debian-specific information.
	DEBPKG:debian/enc2xs_inc - http://bugs.debian.org/290336 Tweak enc2xs to follow symlinks and ignore missing @INC directories.
	DEBPKG:debian/errno_ver - http://bugs.debian.org/343351 Remove Errno version check due to upgrade problems with long-running processes.
	DEBPKG:debian/libperl_embed_doc - http://bugs.debian.org/186778 Note that libperl-dev package is required for embedded linking
	DEBPKG:fixes/respect_umask - Respect umask during installation
	DEBPKG:debian/writable_site_dirs - Set umask approproately for site install directories
	DEBPKG:debian/extutils_set_libperl_path - EU:MM: Set location of libperl.a to /usr/lib
	DEBPKG:debian/no_packlist_perllocal - Don't install .packlist or perllocal.pod for perl or vendor
	DEBPKG:debian/prefix_changes - Fiddle with *PREFIX and variables written to the makefile
	DEBPKG:debian/fakeroot - Postpone LD_LIBRARY_PATH evaluation to the binary targets.
	DEBPKG:debian/instmodsh_doc - Debian policy doesn't install .packlist files for core or vendor.
	DEBPKG:debian/ld_run_path - Remove standard libs from LD_RUN_PATH as per Debian policy.
	DEBPKG:debian/libnet_config_path - Set location of libnet.cfg to /etc/perl/Net as /usr may not be writable.
	DEBPKG:debian/mod_paths - Tweak @INC ordering for Debian
	DEBPKG:debian/module_build_man_extensions - http://bugs.debian.org/479460 Adjust Module::Build manual page extensions for the Debian Perl policy
	DEBPKG:debian/prune_libs - http://bugs.debian.org/128355 Prune the list of libraries wanted to what we actually need.
	DEBPKG:fixes/net_smtp_docs - [rt.cpan.org #36038] http://bugs.debian.org/100195 Document the Net::SMTP 'Port' option
	DEBPKG:debian/perlivp - http://bugs.debian.org/510895 Make perlivp skip include directories in /usr/local
	DEBPKG:debian/cpanplus_definstalldirs - http://bugs.debian.org/533707 Configure CPANPLUS to use the site directories by default.
	DEBPKG:debian/cpanplus_config_path - Save local versions of CPANPLUS::Config::System into /etc/perl.
	DEBPKG:debian/deprecate-with-apt - http://bugs.debian.org/702096 Point users to Debian packages of deprecated core modules
	DEBPKG:debian/squelch-locale-warnings - http://bugs.debian.org/508764 Squelch locale warnings in Debian package maintainer scripts
	DEBPKG:debian/skip-upstream-git-tests - Skip tests specific to the upstream Git repository
	DEBPKG:debian/patchlevel - http://bugs.debian.org/567489 List packaged patches for 5.18.2-2ubuntu1 in patchlevel.h
	DEBPKG:debian/skip-kfreebsd-crash - http://bugs.debian.org/628493 [perl #96272] Skip a crashing test case in t/op/threads.t on GNU/kFreeBSD
	DEBPKG:fixes/document_makemaker_ccflags - http://bugs.debian.org/628522 [rt.cpan.org #68613] Document that CCFLAGS should include $Config{ccflags}
	DEBPKG:debian/find_html2text - http://bugs.debian.org/640479 Configure CPAN::Distribution with correct name of html2text
	DEBPKG:debian/hurd_test_skip_stack - http://bugs.debian.org/650175 Disable failing GNU/Hurd tests dist/threads/t/stack.t
	DEBPKG:fixes/manpage_name_Test-Harness - http://bugs.debian.org/650451 [rt.cpan.org #73399] cpan/Test-Harness: add NAME headings in modules with POD
	DEBPKG:debian/makemaker-pasthru - http://bugs.debian.org/660195 [rt.cpan.org #28632] Make EU::MM pass LD through to recursive Makefile.PL invocations
	DEBPKG:debian/perl5db-x-terminal-emulator.patch - http://bugs.debian.org/668490 Invoke x-terminal-emulator rather than xterm in perl5db.pl
	DEBPKG:debian/cpan-missing-site-dirs - http://bugs.debian.org/688842 Fix CPAN::FirstTime defaults with nonexisting site dirs if a parent is writable
	DEBPKG:fixes/memoize_storable_nstore - [rt.cpan.org #77790] http://bugs.debian.org/587650 Memoize::Storable: respect 'nstore' option not respected
	DEBPKG:fixes/net_ftp_failed_command - [rt.cpan.org #37700] http://bugs.debian.org/491062 Net::FTP: cope gracefully with a failed command
	DEBPKG:fixes/perlbug-patchlist - [3541c11] http://bugs.debian.org/710842 [perl #118433] Make perlbug look up the list of local patches at run time
	DEBPKG:fixes/module_metadata_security_doc - [68cdd4b] CVE-2013-1437 documentation fix
	DEBPKG:fixes/module_metadata_taint_fix - [bff978f] http://bugs.debian.org/722210 [rt.cpan.org #88576] untaint version, if needed, in Module::Metadata
	DEBPKG:fixes/IPC-SysV-spelling - http://bugs.debian.org/730558 [rt.cpan.org #86736] Fix spelling of IPC_CREAT in IPC-SysV documentation
	DEBPKG:fixes/fix-undef-source -
  Built under linux
  Compiled at Mar 27 2014 18:30:28
  %ENV:
    PERL5LIB="/root/perl5/lib/perl5:/checkout/Air/lib:/checkout/backend/lib:/checkout/cockpit-web/lib:/checkout/core/lib:/checkout/destination.se/lib:/checkout/frontend_2/lib:/checkout/frontend/lib:/checkout/libraries/lib:/checkout/libraries-refactor/lib:/checkout/NAS/lib:/checkout/Norwegian/lib:/checkout/Reconcile/lib:/checkout/ShoppingCart/lib:/checkout/Skypicker/lib:/checkout/SmartGiant/lib:/checkout/solarbeam/lib:/checkout/sql-translator/lib:/checkout/SQL-Translator/lib:/root/perl5/lib/perl5"
    PERL5OPT="-Mlocal::lib"
    PERL_LOCAL_LIB_ROOT="/root/perl5"
    PERL_MB_OPT="--install_base "/root/perl5""
    PERL_MM_OPT="INSTALL_BASE=/root/perl5"
  @INC:
    /root/perl5/lib/perl5/5.18.2/x86_64-linux-gnu-thread-multi
    /root/perl5/lib/perl5/5.18.2
    /root/perl5/lib/perl5/x86_64-linux-gnu-thread-multi
    /root/perl5/lib/perl5/5.18.1
    /root/perl5/lib/perl5
    /checkout/Air/lib
    /checkout/backend/lib
    /checkout/cockpit-web/lib
    /checkout/core/lib
    /checkout/destination.se/lib
    /checkout/frontend_2/lib
    /checkout/frontend/lib
    /checkout/libraries/lib
    /checkout/libraries-refactor/lib
    /checkout/NAS/lib
    /checkout/Norwegian/lib
    /checkout/Reconcile/lib
    /checkout/ShoppingCart/lib
    /checkout/Skypicker/lib
    /checkout/SmartGiant/lib
    /checkout/solarbeam/lib
    /checkout/sql-translator/lib
    /checkout/SQL-Translator/lib
    /root/perl5/lib/perl5/5.18.2/x86_64-linux-gnu-thread-multi
    /root/perl5/lib/perl5/5.18.2
    /root/perl5/lib/perl5/x86_64-linux-gnu-thread-multi
    /root/perl5/lib/perl5
    /etc/perl
    /usr/local/lib/perl/5.18.2
    /usr/local/share/perl/5.18.2
    /usr/lib/perl5
    /usr/share/perl5
    /usr/lib/perl/5.18
    /usr/share/perl/5.18
    /root/perl5/lib/perl5/5.18.1
    /usr/local/lib/site_perl
    .
@PopeFelix
Copy link
Owner

PopeFelix commented Mar 2, 2017 via email

@nicomen
Copy link
Author

nicomen commented Mar 2, 2017

It works find on Xenial the latest stable Ubuntu, with perl 5.18 or so. So it's probably and old version of something, but not sure what.

If you want me to add some debug of some sort around the test, just tell me.

I guess the solution should be to either bump a requirement/version or make it work with an old version of something.

@PopeFelix
Copy link
Owner

PopeFelix commented Mar 2, 2017 via email

@PopeFelix
Copy link
Owner

Does this still happen on stock Ubuntu 14.04?

@eserte
Copy link

eserte commented Jun 11, 2019

I also see this test failure, but on a newer system (debian/buster). And it's reproducible using the following Dockerfile:

# docker build -t perl-test . && docker run perl-test
FROM debian:buster

RUN apt-get -y update
RUN apt-get -y --no-install-recommends install perl make
# To speed up installation
RUN apt-get -y --no-install-recommends install libmojolicious-perl libio-socket-ssl-perl libmoose-perl
RUN apt-get -y --no-install-recommends install libmodule-build-perl libmoo-perl libcpanel-json-xs-perl libnet-ldap-perl libcapture-tiny-perl libpath-tiny-perl ca-certificates
RUN apt-get -y --no-install-recommends install libtest-most-perl libjson-maybexs-perl libarray-compare-perl libtest-pod-perl libtest-pod-coverage-perl

CMD cpan -t POPEFELIX/Mojo-UserAgent-Mockable-1.56.tar.gz

@nicomen
Copy link
Author

nicomen commented Apr 25, 2022

This seems to be the error (key too small):

Failed to load certificate from file Mojo-UserAgent-Mockable-1.59/t/certs/client.crt: 
[format:PEM] error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small 
** [format:DER] error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error error:140AD00D:SSL routines:SSL_CTX_use_certificate_file:ASN1 lib ** [format:PKCS12] error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error **
$ prove -lvr t/record_playback_proxy.t
t/record_playback_proxy.t .. 
not ok 1 - Got a number

#   Failed test 'Got a number'
#   at t/record_playback_proxy.t line 44.
# bless( {
#   'content' => bless( {
#     'asset' => bless( {
#       'auto_upgrade' => 1,
#       'start_range' => 0
#     }, 'Mojo::Asset::Memory' ),
#     'body_size' => 0,
#     'events' => {
#       'read' => [
#         sub { "DUMMY" }
#       ]
#     },
#     'header_buffer' => 'Content-Length: 0
# Date: Mon, 25 Apr 2022 13:59:19 GMT
# 
# ',
#     'headers' => bless( {
#       'headers' => {
#         'content-length' => [
#           0
#         ],
#         'date' => [
#           'Mon, 25 Apr 2022 13:59:19 GMT'
#         ]
#       }
#     }, 'Mojo::Headers' ),
#     'read' => $VAR1->{'content'}{'events'}{'read'}[0]
#   }, 'Mojo::Content::Single' ),
#   'error' => {
#     'message' => 'Failed to load certificate from file Mojo-UserAgent-Mockable-1.59/t/certs/client.crt: [format:PEM] error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small ** [format:DER] error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error error:140AD00D:SSL routines:SSL_CTX_use_certificate_file:ASN1 lib ** [format:PKCS12] error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error **'
#   },
#   'events' => {},
#   'finished' => 3,
#   'fix' => 1,
#   'start_buffer' => 'HTTP/1.1 404 Not Found
# ',
#   'state' => 'finished',
#   'version' => '1.1'
# }, 'Mojo::Message::Response' )
ok 2 - Proxy CONNECT request seen
# 0
ok 3 - GET request did not die in playback mode
ok 4 - Number same as recorded
1..4
# Looks like you failed 1 test of 4.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests 

Test Summary Report
-------------------
t/record_playback_proxy.t (Wstat: 256 Tests: 4 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1

@nicomen
Copy link
Author

nicomen commented Apr 25, 2022

Should be simple to create a new client.key / client.crt pair larger than 1024?

@PopeFelix
Copy link
Owner

PopeFelix commented Apr 26, 2022 via email

@nicomen
Copy link
Author

nicomen commented Apr 26, 2022

I would've done it if I knew exactly what should be in client.crt and client.key, but I'm not 100% sure, also wether they should match with the other certifaicates, be signed etc.

@kpeters-cbsi
Copy link

@PopeFelix
Copy link
Owner

PopeFelix commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants