[GH-ISSUE #1506] mscash2-opencl fails self test on Travis #978

Closed
opened 2026-10-14 03:30:34 +07:00 by bsakaguchi · 13 comments
Owner

Originally created by @frank-dittrich on GitHub (Jul 7, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1506

Originally assigned to: @sayan1an on GitHub.

Device 0: AMD Opteron(TM) Processor 6272                 

Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... FAILED (cmp_all(1))

For gcc, we don't know yet, because the self test segfaulted before reaching mscash2-opencl.

Originally created by @frank-dittrich on GitHub (Jul 7, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1506 Originally assigned to: @sayan1an on GitHub. ``` Device 0: AMD Opteron(TM) Processor 6272 Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... FAILED (cmp_all(1)) ``` For gcc, we don't know yet, because the self test segfaulted before reaching mscash2-opencl.
bsakaguchi 2026-10-14 03:30:34 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@magnumripper commented on GitHub (Jul 8, 2015):

Super af6a034

$ for i in 1 2 3 5 ; do ../run/john -test=0 -dev=$i -form:mscash2-opencl -verb=2 ; done
Device 1: Tahiti [AMD Radeon HD 7900 Series]
Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... PASS
Device 2: Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... PASS
Device 3: Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... PASS
Device 5: GeForce GTX TITAN
Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... PASS
<!-- gh-comment-id:119389080 --> @magnumripper commented on GitHub (Jul 8, 2015): Super af6a034 ``` $ for i in 1 2 3 5 ; do ../run/john -test=0 -dev=$i -form:mscash2-opencl -verb=2 ; done Device 1: Tahiti [AMD Radeon HD 7900 Series] Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... PASS Device 2: Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... PASS Device 3: Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... PASS Device 5: GeForce GTX TITAN Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... PASS ```
Author
Owner

@magnumripper commented on GitHub (Jul 8, 2015):

OSX af6a034

$ for i in 0 1 2; do ../run/john -test=0 -form:mscash2-opencl -dev=$i; done
Device 0: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz
Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... PASS
Device 1: HD Graphics 4000
Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... PASS
Device 2: GeForce GT 650M
Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... PASS
<!-- gh-comment-id:119390066 --> @magnumripper commented on GitHub (Jul 8, 2015): OSX af6a034 ``` $ for i in 0 1 2; do ../run/john -test=0 -form:mscash2-opencl -dev=$i; done Device 0: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... PASS Device 1: HD Graphics 4000 Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... PASS Device 2: GeForce GT 650M Testing: mscash2-opencl, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 OpenCL]... PASS ```
Author
Owner

@frank-dittrich commented on GitHub (Jul 8, 2015):

Apparently not depending on compiler, because on Travis both the gcc and the clang build fail

<!-- gh-comment-id:119704082 --> @frank-dittrich commented on GitHub (Jul 8, 2015): Apparently not depending on compiler, because on Travis both the gcc and the clang build fail
Author
Owner

@magnumripper commented on GitHub (Jul 8, 2015):

This one might be Travis' CPU driver acting up. I wish we could use beignet instead of fglrx, but the native Ubuntu packages for beignet are older than my grandma.

<!-- gh-comment-id:119740911 --> @magnumripper commented on GitHub (Jul 8, 2015): This one _might_ be Travis' CPU driver acting up. I wish we could use beignet instead of fglrx, but the native Ubuntu packages for beignet are older than my grandma.
Author
Owner

@jfoug commented on GitHub (Jul 10, 2015):

This is the only hold out on Travis (both gcc and clang) that is stil failing.

<!-- gh-comment-id:120459031 --> @jfoug commented on GitHub (Jul 10, 2015): This is the only hold out on Travis (both gcc and clang) that is stil failing.
Author
Owner

@frank-dittrich commented on GitHub (Jul 10, 2015):

Do we have any other system where mscash2-opencl still fails?

Is there any debug info we could add which would help someone to get a clue what's happening? (May be only print that additional info with higher verbosity.)
I changed Makefile.in to use --test=0 --verbosity=5 a while back, but meanwhile magnum reverted it to --verbosity=2, so, apparently, the info currently printed with --verbosity=5 wasn't good enough.

<!-- gh-comment-id:120475315 --> @frank-dittrich commented on GitHub (Jul 10, 2015): Do we have any other system where mscash2-opencl still fails? Is there any debug info we could add which would help someone to get a clue what's happening? (May be only print that additional info with higher verbosity.) I changed Makefile.in to use --test=0 --verbosity=5 a while back, but meanwhile magnum reverted it to --verbosity=2, so, apparently, the info currently printed with --verbosity=5 wasn't good enough.
Author
Owner

@sayan1an commented on GitHub (Jul 10, 2015):

I have found plenty of issues with this format and intend to write new host code for this one, so please wait.

<!-- gh-comment-id:120479095 --> @sayan1an commented on GitHub (Jul 10, 2015): I have found plenty of issues with this format and intend to write new host code for this one, so please wait.
Author
Owner

@jfoug commented on GitHub (Jul 10, 2015):

In the time being, should we set this to a disabled format in john.conf, so that travis will tell us when there are 'real' problems?

<!-- gh-comment-id:120496762 --> @jfoug commented on GitHub (Jul 10, 2015): In the time being, should we set this to a disabled format in john.conf, so that travis will tell us when there are 'real' problems?
Author
Owner

@magnumripper commented on GitHub (Jul 10, 2015):

I'm not sure, it has consequences for people. We did so for descrypt-opencl for a while, but that one crashed the whole session.

Hmm perhaps we can add some sed -ri s/ninja/magic/ ../run/john.conf to .travis.yml so only Travis have it disabled?

<!-- gh-comment-id:120532545 --> @magnumripper commented on GitHub (Jul 10, 2015): I'm not sure, it has consequences for people. We did so for descrypt-opencl for a while, but that one crashed the whole session. Hmm perhaps we can add some `sed -ri s/ninja/magic/ ../run/john.conf` to .travis.yml so only Travis have it disabled?
Author
Owner

@frank-dittrich commented on GitHub (Jul 11, 2015):

While Travis and CircleCI are now happy, we may have a problem with super (default build environment, no alternatove devtoolset enabled):

correction this was with devtoolset-3

$ ../run/john --test --format=mscash2-opencl --device4i --verbosity=2; done
Device 4: Intel(R) Many Integrated Core Acceleration Card
LLVM ERROR: LLVM2PIL: Cannot yet select: 0x7f027d867580: i32 = bswap 0x7f027d94d070 [ORD=6392] [ID=2682]
  0x7f027d94d070: i32,ch = load 0x7f027d94ce70, 0x7f027d94d270, 0x7f027db0fe90<LD4[FixedStack371+60]> [ID=2570]
    0x7f027d94d270: i64 = or 0x7f027da7bbe0, 0x7f027da1a1b0 [ID=1832]
      0x7f027da7bbe0: i64 = FrameIndex<371> [ID=607]
      0x7f027da1a1b0: i64 = Constant<60> [ORD=7802] [ID=125]
    0x7f027db0fe90: i64 = undef [ORD=5595] [ID=70]

Looks like it is hanging now!
After running more than 5 minutes, I killed the john process.

<!-- gh-comment-id:120652782 --> @frank-dittrich commented on GitHub (Jul 11, 2015): While Travis and CircleCI are now happy, we may have a problem with super (default build environment, no alternatove devtoolset enabled): **correction** this was with devtoolset-3 ``` $ ../run/john --test --format=mscash2-opencl --device4i --verbosity=2; done Device 4: Intel(R) Many Integrated Core Acceleration Card LLVM ERROR: LLVM2PIL: Cannot yet select: 0x7f027d867580: i32 = bswap 0x7f027d94d070 [ORD=6392] [ID=2682] 0x7f027d94d070: i32,ch = load 0x7f027d94ce70, 0x7f027d94d270, 0x7f027db0fe90<LD4[FixedStack371+60]> [ID=2570] 0x7f027d94d270: i64 = or 0x7f027da7bbe0, 0x7f027da1a1b0 [ID=1832] 0x7f027da7bbe0: i64 = FrameIndex<371> [ID=607] 0x7f027da1a1b0: i64 = Constant<60> [ORD=7802] [ID=125] 0x7f027db0fe90: i64 = undef [ORD=5595] [ID=70] ``` Looks like it is hanging now! After running more than 5 minutes, I killed the john process.
Author
Owner

@frank-dittrich commented on GitHub (Jul 11, 2015):

But there also was a problem for device 4 prior to your recent changes, i.e. HEAD~4 aka
commit 10365f4d5a ((this time with default verbositiy):

../run/john: /usr/local/cuda/lib64/libOpenCL.so.1: no version information available (required by ../run/john)
Device 4: Intel(R) Many Integrated Core Acceleration Card
LLVM ERROR: LLVM2PIL: Cannot yet select: 0x7fed39a44520: i32 = bswap 0x7fed39d57340 [ORD=5647] [ID=323]
  0x7fed39d57340: i32 = xor 0x7fed39ad7ba0, 0x7fed39bb2580 [ORD=5415] [ID=314]
    0x7fed39ad7ba0: i32,ch = load 0x7fed39bb2980, 0x7fed39ab1ec0, 0x7fed39bb4ed0<LD4[%60]> [ORD=5377] [ID=309]
      0x7fed39ab1ec0: i64 = add 0x7fed39ad7ca0, 0x7fed39bb89a0 [ORD=5376] [ID=287]
        0x7fed39ad7ca0: i64,ch = CopyFromReg 0x7fed39b0ed00, 0x7fed399af980 [ORD=5365] [ID=112]
          0x7fed399af980: i64 = Register %vreg0 [ORD=5365] [ID=21]
        0x7fed39bb89a0: i64 = shl 0x7fed39bb2380, 0x7fed39cd78d0 [ORD=5376] [ID=282]
          0x7fed39bb2380: i64 = sign_extend 0x7fed39cd81d0 [ORD=5375] [ID=270]
            0x7fed39cd81d0: i32 = or 0x7fed39bb2880, 0x7fed39bb2a80 [ORD=5371] [ID=259]
              0x7fed39bb2880: i32 = shl 0x7fed39d4c940, 0x7fed39cd78d0 [ORD=5362] [ID=257]
                0x7fed39d4c940: i32 = add 0x7fed39b97ec0, 0x7fed39b97bc0 [ID=255]
                  0x7fed39b97ec0: i32,ch = load 0x7fed39b0ed00, 0x7fed39962ce0, 0x7fed39bb4ed0<LD4[%40](align=8)> [ID=219]


                  0x7fed39b97bc0: i32,ch = load 0x7fed39b0ed00, 0x7fed399a1860, 0x7fed39bb4ed0<LD4[%42](align=8)> [ID=137]


                0x7fed39cd78d0: i8 = Constant<2> [ORD=5362] [ID=19]
              0x7fed39bb2a80: i32 = Constant<3> [ORD=5371] [ID=22]
          0x7fed39cd78d0: i8 = Constant<2> [ORD=5362] [ID=19]
      0x7fed39bb4ed0: i64 = undef [ORD=5348] [ID=5]
    0x7fed39bb2580: i32 = Constant<1549556828> [ORD=5385] [ID=25]
<!-- gh-comment-id:120653104 --> @frank-dittrich commented on GitHub (Jul 11, 2015): But there also was a problem for device 4 prior to your recent changes, i.e. HEAD~4 aka commit 10365f4d5aec484d1cbb78df71e8590fe3e3df03 ((this time with default verbositiy): ``` ../run/john: /usr/local/cuda/lib64/libOpenCL.so.1: no version information available (required by ../run/john) Device 4: Intel(R) Many Integrated Core Acceleration Card LLVM ERROR: LLVM2PIL: Cannot yet select: 0x7fed39a44520: i32 = bswap 0x7fed39d57340 [ORD=5647] [ID=323] 0x7fed39d57340: i32 = xor 0x7fed39ad7ba0, 0x7fed39bb2580 [ORD=5415] [ID=314] 0x7fed39ad7ba0: i32,ch = load 0x7fed39bb2980, 0x7fed39ab1ec0, 0x7fed39bb4ed0<LD4[%60]> [ORD=5377] [ID=309] 0x7fed39ab1ec0: i64 = add 0x7fed39ad7ca0, 0x7fed39bb89a0 [ORD=5376] [ID=287] 0x7fed39ad7ca0: i64,ch = CopyFromReg 0x7fed39b0ed00, 0x7fed399af980 [ORD=5365] [ID=112] 0x7fed399af980: i64 = Register %vreg0 [ORD=5365] [ID=21] 0x7fed39bb89a0: i64 = shl 0x7fed39bb2380, 0x7fed39cd78d0 [ORD=5376] [ID=282] 0x7fed39bb2380: i64 = sign_extend 0x7fed39cd81d0 [ORD=5375] [ID=270] 0x7fed39cd81d0: i32 = or 0x7fed39bb2880, 0x7fed39bb2a80 [ORD=5371] [ID=259] 0x7fed39bb2880: i32 = shl 0x7fed39d4c940, 0x7fed39cd78d0 [ORD=5362] [ID=257] 0x7fed39d4c940: i32 = add 0x7fed39b97ec0, 0x7fed39b97bc0 [ID=255] 0x7fed39b97ec0: i32,ch = load 0x7fed39b0ed00, 0x7fed39962ce0, 0x7fed39bb4ed0<LD4[%40](align=8)> [ID=219] 0x7fed39b97bc0: i32,ch = load 0x7fed39b0ed00, 0x7fed399a1860, 0x7fed39bb4ed0<LD4[%42](align=8)> [ID=137] 0x7fed39cd78d0: i8 = Constant<2> [ORD=5362] [ID=19] 0x7fed39bb2a80: i32 = Constant<3> [ORD=5371] [ID=22] 0x7fed39cd78d0: i8 = Constant<2> [ORD=5362] [ID=19] 0x7fed39bb4ed0: i64 = undef [ORD=5348] [ID=5] 0x7fed39bb2580: i32 = Constant<1549556828> [ORD=5385] [ID=25] ```
Author
Owner

@magnumripper commented on GitHub (Jul 11, 2015):

I usually leave the MIC out of my OpenCL tests. The drivers are just too bad. Eg

$ for i in 1 2 3 5 ; do ../run/john -test=0 -dev=$i -form:wpapsk-opencl -verb=2 ; done
<!-- gh-comment-id:120664312 --> @magnumripper commented on GitHub (Jul 11, 2015): I usually leave the MIC out of my OpenCL tests. The drivers are just too bad. Eg ``` $ for i in 1 2 3 5 ; do ../run/john -test=0 -dev=$i -form:wpapsk-opencl -verb=2 ; done ```
Author
Owner

@magnumripper commented on GitHub (Jul 17, 2015):

i believe this is fixed

<!-- gh-comment-id:122133728 --> @magnumripper commented on GitHub (Jul 17, 2015): i believe this is fixed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#978
No description provided.