On CygwinPerl, Digest::SHA fails all tests (yet passed on CPAN-testers)

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default On CygwinPerl, Digest::SHA fails all tests (yet passed on CPAN-testers)

    I've got trouble trying to install the module Digest::SHA 5.34 to a
    cygwin installation that seems otherwise healthy and "normal" (can
    install other pure-perl and xs-perl CPAN modules).

    The very first test t/1-exist in the test suite dies, for example.

    Partial screenscrape of Perl debugger session showing where program
    dies:

    DB<3>
    ExtUtils::Command::MM::test_harness(/usr/lib/perl5/5.8/ExtUtils/Command/MM.pm:55):
    55: Test::Harness::runtests(sort { lc $a cmp lc $b } @ARGV);
    DB<3>
    t/1-exist....
    1..1
    # Running under perl version 5.008007 for cygwin
    # Current time local: Thu May 4 07:26:27 2006
    # Current time GMT: Thu May 4 11:26:27 2006
    # Using Test.pm version 1.25
    dubious
    Test returned status 0 (wstat 139, 0x8b)
    DIED. FAILED test 1
    Failed 1/1 tests, 0.00% okay
    Failed Test Stat Wstat Total Fail Failed List of Failed
    -------------------------------------------------------------------------------
    t/1-exist.t 0 139 1 2 200.00% 1
    1
    Failed 1/1 test scripts, 0.00% okay. 1/1 subtests failed, 0.00% okay.
    at /usr/lib/perl5/5.8/Test/Harness.pm line 547
    Test::Harness::_show_results('HASH(0x10482068)',
    'HASH(0x1048202c)') called at /usr/lib/perl5/5.8/Test/Harness.pm line
    208
    Test::Harness::runtests('t/1-exist.t') called at
    /usr/lib/perl5/5.8/ExtUtils/Command/MM.pm line 55
    ExtUtils::Command::MM::test_harness(2, 'blib/lib', 'blib/arch')
    called at -e line 1
    Debugged program terminated. Use q to quit or R to restart
    ----------------------
    OK, so in the interest of completeness I'll provide some context info
    about the system:
    * It's a Windows NT 4 (service pack 6) system. I don't know that any
    cpan-testers evaluating this module ran their test with NT
    4/Cygwinperl:
    Windows NT Ver 4.0 Build 1381 Service Pack 6

    * Cygwin DLL version info:
    DLL version: 1.5.19 Build date: Fri Jan 20 13:28:43 EST 2006

    * CC:
    gcc 3.4.4-1

    * Perl:
    5.8.7 (5.008007)

    * 'make' stage output;
    cp SHA.pm blib/lib/Digest/SHA.pm
    /usr/bin/perl.exe /usr/lib/perl5/5.8/ExtUtils/xsubpp -typemap
    /usr/lib/perl5/5.8/ExtUtils/typemap -typemap typemap SHA.xs > SHA.xsc
    && mv SHA.xsc SHA.c
    gcc -c -I. -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe
    -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"5.34\"
    -DXS_VERSION=\"5.34\" "-I/usr/lib/perl5/5.8/cygwin/CORE"
    -DSHA_PERL_MODULE -DSHA_THREAD_SAFE SHA.c
    Running Mkbootstrap for Digest::SHA ()
    chmod 644 SHA.bs
    rm -f blib/arch/auto/Digest/SHA/SHA.dll
    LD_RUN_PATH="" ld2 -s -L/usr/local/lib SHA.o -o
    blib/arch/auto/Digest/SHA/SHA.dll
    /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a
    gcc -shared -o SHA.dll -Wl,--out-implib=libSHA.dll.a
    -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608
    -Wl,--enable-auto-image-base \
    -s -L/usr/local/lib SHA.o /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a
    Creating library file: libSHA.dll.a
    mv SHA.dll libSHA.dll.a blib/arch/auto/Digest/SHA/
    chmod 755 blib/arch/auto/Digest/SHA/SHA.dll
    cp SHA.bs blib/arch/auto/Digest/SHA/SHA.bs
    chmod 644 blib/arch/auto/Digest/SHA/SHA.bs
    cp shasum blib/script/shasum
    /usr/bin/perl.exe "-MExtUtils::MY" -e "MY->fixin(shift)"
    blib/script/shasum

    ----------------------
    Here's the entire output from 'make test'
    ----------------------
    /usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(2,
    'blib/lib', 'blib/arch')" t/*.t
    t/0-pod-coverage.........1..0 # Skip Test::Pod::Coverage 0.08 required
    for testing POD coverage
    skipped
    all skipped: Test::Pod::Coverage 0.08 required for testing POD
    coverage
    t/0-pod..................1..0 # Skip Test::Pod 1.00 required for
    testing POD
    skipped
    all skipped: Test::Pod 1.00 required for testing POD
    t/1-exist................1..1
    # Running under perl version 5.008007 for cygwin
    # Current time local: Thu May 4 05:59:21 2006
    # Current time GMT: Thu May 4 09:59:21 2006
    # Using Test.pm version 1.25
    dubious
    Test returned status 0 (wstat 139, 0x8b)
    DIED. FAILED test 1
    Failed 1/1 tests, 0.00% okay
    t/1-hello-world..........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/2-nist-sha-1...........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/2-nist-sha-224.........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/2-nist-sha-256.........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/2-nist-sha-384.........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/2-nist-sha-512.........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/2-nist-sha-base64......dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/2-nist-sha-oo..........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/2-nist-vectors-bit.....dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/2-nist-vectors-byte....dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/3-gillogly-easy........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/3-gillogly-hard........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/4-bitstr-increasing....dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/4-bitstr-large.........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/4-bitstr-random........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/5-hmac-fips198.........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/5-hmac-rfc2202.........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/5-hmac-sha-256.........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/5-hmac-woodbury........dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/6-dump-load............dubious
    Test returned status 0 (wstat 139, 0x8b)
    t/7-ireland..............dubious
    Test returned status 0 (wstat 139, 0x8b)
    Failed Test Stat Wstat Total Fail Failed List of Failed
    -------------------------------------------------------------------------------
    t/1-exist.t 0 139 1 2 200.00% 1
    t/1-hello-world.t 0 139 ?? ?? % ??
    t/2-nist-sha-1.t 0 139 ?? ?? % ??
    t/2-nist-sha-224.t 0 139 ?? ?? % ??
    t/2-nist-sha-256.t 0 139 ?? ?? % ??
    t/2-nist-sha-384.t 0 139 ?? ?? % ??
    t/2-nist-sha-512.t 0 139 ?? ?? % ??
    t/2-nist-sha-base64.t 0 139 ?? ?? % ??
    t/2-nist-sha-oo.t 0 139 ?? ?? % ??
    t/2-nist-vectors-bit.t 0 139 ?? ?? % ??
    t/2-nist-vectors-byte.t 0 139 ?? ?? % ??
    t/3-gillogly-easy.t 0 139 ?? ?? % ??
    t/3-gillogly-hard.t 0 139 ?? ?? % ??
    t/4-bitstr-increasing.t 0 139 ?? ?? % ??
    t/4-bitstr-large.t 0 139 ?? ?? % ??
    t/4-bitstr-random.t 0 139 ?? ?? % ??
    t/5-hmac-fips198.t 0 139 ?? ?? % ??
    t/5-hmac-rfc2202.t 0 139 ?? ?? % ??
    t/5-hmac-sha-256.t 0 139 ?? ?? % ??
    t/5-hmac-woodbury.t 0 139 ?? ?? % ??
    t/6-dump-load.t 0 139 ?? ?? % ??
    t/7-ireland.t 0 139 ?? ?? % ??
    2 tests skipped.
    Failed 22/24 test scripts, 8.33% okay. 1/1 subtests failed, 0.00% okay.
    make: *** [test_dynamic] Error 255
    -------------------------

    I've searched the Cygwin lists and cygwin-perl on Yahoo!Groups, no info
    that seemed relevent, so if anyone has an insight please reply. TIA.

    Soren Andersen

    somian Guest

  2. Similar Questions and Discussions

    1. Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails
      FYI Have problem Upgrading perl packages from CPAN.pm version v1.61 to version v1.76) failed with final error messages: <stuff snipped> CPAN.pm:...
    2. CPAN testers and FAIL/NA.
      Hi, I have, on cpan, a module (Math::MPFR) that requires the presence of two C libraries (GMP and MPFR). All of this is covered in the distro's...
    3. How to tell CPAN-testers a module is just for a specific platform?
      I've written a module that is much like File::Find, but specific for Win32, using Windows API calls through Win32::API, to loop through the...
    4. ANN: Digest::SHA Module on CPAN
      c.l.p.m, For those of you interested in computing SHA message digests, I've just released the lastest optimized version of the Digest::SHA module...
    5. Can't install Digest::MD5 with cpan
      this is what it tells me when I try and install Digest::MD5 Running make test PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM"...
  3. #2

    Default Re: On CygwinPerl, Digest::SHA fails all tests (yet passed on CPAN-testers)


    "somian" <libertador@siempremail.com> wrote in message
    news:1146743749.191661.317890@v46g2000cwv.googlegr oups.com...
    > I've got trouble trying to install the module Digest::SHA 5.34 to a
    > cygwin installation that seems otherwise healthy and "normal" (can
    > install other pure-perl and xs-perl CPAN modules).
    >
    > The very first test t/1-exist in the test suite dies, for example.
    >
    That test simply tries to load the module you've just (successfully) built.
    What happens if you run:

    perl -Mblib t/t1-exist.t

    Cheers,
    Rob


    Sisyphus Guest

  4. #3

    Default Re: On CygwinPerl, Digest::SHA fails all tests (yet passed on CPAN-testers)

    Hi, Sisyphus, thanks for replying.

    Precisely what happens when I tried the above just now was this:

    $ perl -Mblib t/1-exist.t
    1..1
    # Running under perl version 5.008007 for cygwin
    # Current time local: Wed May 10 00:30:31 2006
    # Current time GMT: Wed May 10 04:30:31 2006
    # Using Test.pm version 1.25
    Segmentation fault (core dumped)

    somian Guest

  5. #4

    Default Re: On CygwinPerl, Digest::SHA fails all tests (yet passed on CPAN-testers)


    "somian" <libertador@siempremail.com> wrote in message
    news:1147235567.665370.137670@v46g2000cwv.googlegr oups.com...
    > Hi, Sisyphus, thanks for replying.
    >
    > Precisely what happens when I tried the above just now was this:
    >
    > $ perl -Mblib t/1-exist.t
    > 1..1
    > # Running under perl version 5.008007 for cygwin
    > # Current time local: Wed May 10 00:30:31 2006
    > # Current time GMT: Wed May 10 04:30:31 2006
    > # Using Test.pm version 1.25
    > Segmentation fault (core dumped)
    >
    Yuk.

    So if you change t/1-exist.t so that it contains simply:

    use Digest::SHA ();

    and then re-run 'perl -Mblib t/1-exist.t', do you find it still segfaults ?
    I wouldn't know what to make of a segfault caused by merely loading a
    module. Were there any compiler warnings during 'make' that might give a
    hint to the cause ?

    I'm glad I don't use Cygwin :-)

    Cheers,
    Rob


    Sisyphus Guest

  6. #5

    Default Re: On CygwinPerl, Digest::SHA fails all tests (yet passed on CPAN-testers)

    I finally tracked down the real cause of the failure, and the
    "executive summary" version is that it wasn't Digest::SHA's fault at
    all.

    There was a MIME::Base64 module in my @INC pathlist that was generating
    a segfault each time loading it was attempted. Thus any module that
    used it (like Digest::SHA) would fail at the loading stage.

    The @INC included modules built for cygwin perl 5.8.2. Removing the
    offending installation of MIME::Base64 (that was 'shadowing' the one
    shipped with Cygwinperl) fixed the problem.

    Glad that's figured out, now I can presumably have hashsum-checking on
    CPAN modules I'm installing.

    Regards,
    Soren Andersen (perlspinr, somian, Intrepid)

    somian Guest

  7. #6

    Default Re: On CygwinPerl, Digest::SHA fails all tests (yet passed on CPAN-testers)


    "somian" <libertador@siempremail.com> wrote in message
    news:1147688982.703529.54050@u72g2000cwu.googlegro ups.com...
    > I finally tracked down the real cause of the failure, and the
    > "executive summary" version is that it wasn't Digest::SHA's fault at
    > all.
    >
    > There was a MIME::Base64 module in my @INC pathlist that was generating
    > a segfault each time loading it was attempted. Thus any module that
    > used it (like Digest::SHA) would fail at the loading stage.
    >
    > The @INC included modules built for cygwin perl 5.8.2. Removing the
    > offending installation of MIME::Base64 (that was 'shadowing' the one
    > shipped with Cygwinperl) fixed the problem.
    >
    Heh :-)
    That's a pretty mean trick - and unexpected (by me, at least) that such an
    incompatibility should exist.

    Good that you got it sorted.

    Cheers,
    Rob


    Sisyphus Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139