Giter Site home page Giter Site logo

libanyevent-gnupg-perl's People

Contributors

yanick avatar

Watchers

 avatar  avatar

libanyevent-gnupg-perl's Issues

test 00-all.t can fail very slowly

Running make test
PERL_DL_NONLAZY=1 /home/c/perl5/perlbrew/perls/5.16.2i/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
Too late to run CHECK block at /home/c/perl5/perlbrew/perls/5.16.2i/lib/site_perl/5.16.2/i686-linux-thread-multi/EV.pm line 123.
    # Generating a key - can take some time
2014-12-31 11:14:15.242965 +0200 error AnyEvent::GnuPG: ttl exceeded

    #   Failed test at t/00-all.t line 71.
    # ttl exceeded at /home/c/.cpan/build/AnyEvent-GnuPG-1.001-GRJalE/blib/lib/AnyEvent/GnuPG.pm line 723.
    # Looks like you failed 1 test of 1.

#   Failed test 'encrypt_sym_test'
#   at t/00-all.t line 76.
2014-12-31 11:24:15.243515 +0200 error AnyEvent::GnuPG: ttl exceeded

    #   Failed test at t/00-all.t line 71.
    # ttl exceeded at /home/c/.cpan/build/AnyEvent-GnuPG-1.001-GRJalE/blib/lib/AnyEvent/GnuPG.pm line 723.
    # Looks like you failed 1 test of 1.

#   Failed test 'encrypt_notrust_test'
#   at t/00-all.t line 76.
2014-12-31 11:34:15.244163 +0200 error AnyEvent::GnuPG: ttl exceeded

    #   Failed test at t/00-all.t line 71.
    # ttl exceeded at /home/c/.cpan/build/AnyEvent-GnuPG-1.001-GRJalE/blib/lib/AnyEvent/GnuPG.pm line 942.
    # Looks like you failed 1 test of 1.

#   Failed test 'decrypt_test'
#   at t/00-all.t line 76.
2014-12-31 11:44:15.249846 +0200 error AnyEvent::GnuPG: ttl exceeded

    #   Failed test at t/00-all.t line 71.
    # ttl exceeded at /home/c/.cpan/build/AnyEvent-GnuPG-1.001-GRJalE/blib/lib/AnyEvent/GnuPG.pm line 942.
    # Looks like you failed 1 test of 1.

#   Failed test 'decrypt_sign_test'
#   at t/00-all.t line 76.

    #   Failed test at t/00-all.t line 71.
    # Died at t/00-all.t line 281.
    # Looks like you failed 1 test of 1.

#   Failed test 'decrypt_sym_test'
#   at t/00-all.t line 76.
2014-12-31 11:54:15.256701 +0200 error AnyEvent::GnuPG: ttl exceeded

    #   Failed test at t/00-all.t line 71.
    # ttl exceeded at /home/c/.cpan/build/AnyEvent-GnuPG-1.001-GRJalE/blib/lib/AnyEvent/GnuPG.pm line 807.
    # Looks like you failed 1 test of 1.

#   Failed test 'sign_test'
#   at t/00-all.t line 76.
2014-12-31 12:04:15.258037 +0200 error AnyEvent::GnuPG: ttl exceeded

    #   Failed test at t/00-all.t line 71.
    # ttl exceeded at /home/c/.cpan/build/AnyEvent-GnuPG-1.001-GRJalE/blib/lib/AnyEvent/GnuPG.pm line 807.
    # Looks like you failed 1 test of 1.

#   Failed test 'detachsign_test'
#   at t/00-all.t line 76.
2014-12-31 12:14:15.259718 +0200 error AnyEvent::GnuPG: ttl exceeded

    #   Failed test at t/00-all.t line 71.
    # ttl exceeded at /home/c/.cpan/build/AnyEvent-GnuPG-1.001-GRJalE/blib/lib/AnyEvent/GnuPG.pm line 807.
    # Looks like you failed 1 test of 1.

#   Failed test 'clearsign_test'
#   at t/00-all.t line 76.

    #   Failed test at t/00-all.t line 71.
    # Died at t/00-all.t line 292.
    # Looks like you failed 1 test of 1.

#   Failed test 'verify_sign_test'
#   at t/00-all.t line 76.

    #   Failed test at t/00-all.t line 71.
    # Died at t/00-all.t line 297.
    # Looks like you failed 1 test of 1.

#   Failed test 'verify_detachsign_test'
#   at t/00-all.t line 76.

    #   Failed test at t/00-all.t line 71.
    # Died at t/00-all.t line 306.
    # Looks like you failed 1 test of 1.

#   Failed test 'verify_clearsign_test'
#   at t/00-all.t line 76.
2014-12-31 12:24:15.260750 +0200 error AnyEvent::GnuPG: ttl exceeded

    #   Failed test at t/00-all.t line 71.
    # ttl exceeded at /home/c/.cpan/build/AnyEvent-GnuPG-1.001-GRJalE/blib/lib/AnyEvent/GnuPG.pm line 723.
    # Looks like you failed 1 test of 1.

#   Failed test 'multiple_recipients'
#   at t/00-all.t line 76.
# Looks like you failed 12 tests of 24.
t/00-all.t ................ 
Dubious, test returned 12 (wstat 3072, 0xc00)
Failed 12/24 subtests 

00-all.t hangs

On various systems (e.g. Debian/jessie, FreeBSD 10.3...) with various perl versions 00-all.t seems to hang:

$ # Subtest: version
    ok 1
    ok 2 - gpg v1 ok
    ok 3
    1..3
ok 1 - version
# Subtest: gen_key_test
    # Generating a key - can take some time
    ok 1
    1..1
ok 2 - gen_key_test
# Subtest: import_test

(here it hangs)

Looking with strace into the hanging process:

28649 22:35:36.341573 write(2, "gpg: ", 5 <unfinished ...>
28636 22:35:36.341582 <... select resumed> ) = 1 (in [16], left {2, 659421}) <0.000100>
28649 22:35:36.341588 <... write resumed> ) = 5 <0.000012>
28649 22:35:36.341596 write(2, "key AA1FFE0D: \"Francis J. Lacoste (VP Developpement) <[email protected]>\" not changed\n", 93 <unfinished ...>
28636 22:35:36.341601 read(16,  <unfinished ...>
28649 22:35:36.341605 <... write resumed> ) = 93 <0.000006>
28636 22:35:36.341609 <... read resumed> "gpg: key AA1FFE0D: \"Francis J. Lacoste (VP Developpement) <[email protected]>\" not changed\n", 2048) = 98 <0.000005>
28649 22:35:36.341619 write(2, "gpg: ", 5) = 5 <0.000005>
28636 22:35:36.341634 select(24, [3 8 15 16], NULL, NULL, {2, 659361} <unfinished ...>
28649 22:35:36.341639 write(2, "Total number processed: 1\n", 26 <unfinished ...>
28636 22:35:36.341644 <... select resumed> ) = 1 (in [16], left {2, 659360}) <0.000006>
28649 22:35:36.341649 <... write resumed> ) = 26 <0.000007>
28636 22:35:36.341658 read(16,  <unfinished ...>
28649 22:35:36.341662 write(2, "gpg: ", 5 <unfinished ...>
28636 22:35:36.341666 <... read resumed> "gpg: Total number processed: 1\n", 2048) = 31 <0.000006>
28649 22:35:36.341671 <... write resumed> ) = 5 <0.000006>
28649 22:35:36.341678 write(2, "             unchanged: 1\n", 26 <unfinished ...>
28636 22:35:36.341685 select(24, [3 8 15 16], NULL, NULL, {2, 659309} <unfinished ...>
28649 22:35:36.341691 <... write resumed> ) = 26 <0.000010>
28636 22:35:36.341695 <... select resumed> ) = 1 (in [16], left {2, 659308}) <0.000006>
28649 22:35:36.341700 write(8, "[GNUPG:] IMPORT_RES 1 0 0 0 1 0 0 0 0 0 0 0 0 0\n", 48 <unfinished ...>
28636 22:35:36.341707 read(16,  <unfinished ...>
28649 22:35:36.341711 <... write resumed> ) = 48 <0.000008>
28636 22:35:36.341715 <... read resumed> "gpg:              unchanged: 1\n", 2048) = 31 <0.000005>
28636 22:35:36.341734 select(24, [3 8 15 16], NULL, NULL, {2, 659260}) = 1 (in [8], left {2, 659259}) <0.000006>
28636 22:35:36.341757 read(8, "[GNUPG:] IMPORT_RES 1 0 0 0 1 0 0 0 0 0 0 0 0 0\n", 2048) = 48 <0.000005>
28649 22:35:36.341853 munmap(0x7fed7d3a4000, 65536) = 0 <0.000014>
28649 22:35:36.341898 exit_group(0)     = ?
28636 22:35:36.342008 select(24, [3 8 15 16], NULL, NULL, {2, 658988} <unfinished ...>
28649 22:35:36.342035 +++ exited with 0 +++
28636 22:35:36.342039 <... select resumed> ) = ? ERESTARTNOHAND (To be restarted if no handler) <0.000024>
28636 22:35:36.342047 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=28649, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
28636 22:35:36.342057 rt_sigreturn()    = -1 EINTR (Interrupted system call) <0.000004>
28636 22:35:36.342071 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 <0.000004>
28636 22:35:36.342086 rt_sigaction(SIGCHLD, NULL, {0x483d30, [], SA_RESTORER, 0x7fe72bc7c0e0}, 8) = 0 <0.000004>
28636 22:35:36.342113 write(4, "\0", 1) = 1 <0.000005>
28636 22:35:36.342131 rt_sigprocmask(SIG_UNBLOCK, [CHLD], NULL, 8) = 0 <0.000004>
28636 22:35:36.342149 select(24, [3 8 15 16], NULL, NULL, {2, 658844}) = 1 (in [3], left {2, 658843}) <0.000005>
28636 22:35:36.342172 read(3, "\0", 9)  = 1 <0.000005>
28636 22:35:36.342190 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 28649 <0.000023>
28636 22:35:36.342244 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 <0.000004>
28636 22:35:36.342258 rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER, 0x7fe72bc7c0e0}, {0x483d30, [], SA_RESTORER, 0x7fe72bc7c0e0}, 8) = 0 <0.000004>
28636 22:35:36.342273 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000005>
28636 22:35:36.342375 wait4(-1, 0x7ffca6fb27ec, WNOHANG, NULL) = -1 ECHILD (No child processes) <0.000005>
28636 22:35:36.342402 select(24, [3 8 15 16], NULL, NULL, {2, 658592}) = -1 EBADF (Bad file descriptor) <0.000005>
28636 22:35:36.342429 select(24, [3 8 15 16], NULL, NULL, {2, 658564}) = -1 EBADF (Bad file descriptor) <0.000005>
28636 22:35:36.342450 select(24, [3 8 15 16], NULL, NULL, {2, 658543}) = -1 EBADF (Bad file descriptor) <0.000005>
28636 22:35:36.342471 select(24, [3 8 15 16], NULL, NULL, {2, 658522}) = -1 EBADF (Bad file descriptor) <0.000005>

... and from this point the select() is repeated endlessly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.