Bug#1004077: node-pbkdf2: autopkgtest regression on s390x

Graham Inggs <[email protected]>
Newsgroups gmane.linux.debian.ports.s390
Message-ID <CAM8zJQsGU4aoTRvQ_42rZhtyF2AEbHexzS7Z+JuzYCPgFRNXwQ__150.249984447726$1642678410$gmane$org@mail.gmail.com>
Source: node-pbkdf2
Version: 3.1.1-1
X-Debbugs-CC: [email protected], [email protected]
Severity: important
User: [email protected]
Usertags: regression

Hi Maintainer

Since 3.1.1-1, node-pbkdf2's autopkgtests have been failing on the
big-endian s390x architecture [1].  I 've copied what I hope is the
relevant part of the log below.

Regards
Graham


[1] https://ci.debian.net/packages/n/node-pbkdf2/


    # JavaScript pbkdf2sync w/ sha1 encodes
"112,97,115,115,119,111,114,100" (Uint8Array) with salt "salt"
(string) with sha1 to
0c60c80f961f0e71f3a9b524af6012062fe037a6e0f0eb94fe8fc46bdc637164
    not ok 44 should be strictly equal
      ---
        operator: equal
        expected: |-
          '0c60c80f961f0e71f3a9b524af6012062fe037a6e0f0eb94fe8fc46bdc637164'
        actual: |-
          '7ee9a9e0028eea8e908ae69a894a340e42070fa7cc78d680992119a863362487'
        at: Test.<anonymous>
(/tmp/autopkgtest-lxc.o92ywer_/downtmp/autopkgtest_tmp/smoke6sIkqE/test/index.js:176:11)
        stack: |-
          Error: should be strictly equal
              at Test.assert [as _assert]
(/usr/share/nodejs/tape/lib/test.js:314:54)
              at Test.bound [as _assert]
(/usr/share/nodejs/tape/lib/test.js:99:32)
              at Test.strictEqual (/usr/share/nodejs/tape/lib/test.js:478:10)
              at Test.bound [as equal]
(/usr/share/nodejs/tape/lib/test.js:99:32)
              at Test.<anonymous>
(/tmp/autopkgtest-lxc.o92ywer_/downtmp/autopkgtest_tmp/smoke6sIkqE/test/index.js:176:11)
              at Test.bound [as _cb] (/usr/share/nodejs/tape/lib/test.js:99:32)
              at Test.run (/usr/share/nodejs/tape/lib/test.js:117:31)
              at Test.bound [as run] (/usr/share/nodejs/tape/lib/test.js:99:32)
              at Immediate.next [as _onImmediate]
(/usr/share/nodejs/tape/lib/results.js:88:19)
              at processImmediate (internal/timers.js:461:21)
      ...
/tmp/autopkgtest-lxc.o92ywer_/downtmp/autopkgtest_tmp/smoke6sIkqE/test/index.js:168
          t.equal(result.toString('hex'), expected)
                         ^

TypeError: Cannot read property 'toString' of undefined
    at /tmp/autopkgtest-lxc.o92ywer_/downtmp/autopkgtest_tmp/smoke6sIkqE/test/index.js:168:26
    at /usr/share/nodejs/pbkdf2/lib/async.js:82:7
    at processTicksAndRejections (internal/process/task_queues.js:79:11)
    # JavaScript pbkdf2 async w/ sha1 encodes "password" (string) with
salt "115,97,108,116" (Uint8Array) with sha1 to
0c60c80f961f0e71f3a9b524af6012062fe037a6e0f0eb94fe8fc46bdc637164
    not ok 45 TypeError: salt.copy is not a function
      ---
        operator: error
        at: <anonymous>
(/tmp/autopkgtest-lxc.o92ywer_/downtmp/autopkgtest_tmp/smoke6sIkqE/test/index.js:167:13)
        stack: |-
          TypeError: salt.copy is not a function
              at pbkdf2 (/usr/share/nodejs/pbkdf2/lib/sync.js:28:8)
              at /usr/share/nodejs/pbkdf2/lib/async.js:116:12
              at processTicksAndRejections
(internal/process/task_queues.js:97:5)
      ...
    # test count(45) != plan(null)
    # failed 3 of 45 tests
not ok 1 - test/index.js # time=349.71ms
  ---
  timeout: 30000
  file: test/index.js
  command: /usr/bin/node
  args:
    - test/index.js
  stdio:
    - 0
    - pipe
    - 2
  cwd: /tmp/autopkgtest-lxc.o92ywer_/downtmp/autopkgtest_tmp/smoke6sIkqE
  failures:
    - tapError: no plan
  exitCode: 1
  ...

1..1
# failed 1 test
# time=360.207ms
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.