[GH-ISSUE #401] Some formats crashes during build on OSX Mavericks w/ Intel HD4000 #138

Closed
opened 2026-10-14 02:53:56 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @magnumripper on GitHub (Oct 23, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/401

Originally assigned to: @magnumripper on GitHub.

Probably just a driver issue but I'll see if I can find a workaround. This is on OSX Mavericks, which now has OpenCL support for Intel HD4000. The driver seems better than the one for nvidia but this format fails spectacularly:

Device 2: HD Graphics 4000
Building the kernel, this could take a while
Build log: Cannot select: 0x7ffda0093d10: i32 = bswap 0x7ffda0086a10 [ORD=7246] [ID=145]
  0x7ffda0086a10: i32,ch = load 0x7ffda009fd10, 0x7ffda0082110, 0x7ffda0093b10<LD4[%6880]> [ORD=7245] [ID=144]
    0x7ffda0082110: i64 = add 0x7ffda00a0710, 0x7ffda00b5610 [ORD=7202] [ID=82]
      0x7ffda00a0710: i64 = FrameIndex<2> [ORD=7161] [ID=1]
      0x7ffda00b5610: i64 = bitcast 0x7ffda00a3510 [ID=68]
        0x7ffda00a3510: v2i32 = IGILISD::MOVSWZ 0x7ffda009d610, 0x7ffda00a8b10, 0x7ffda00a8b10, 0x7ffda00a8b10 [ID=54]
          0x7ffda009d610: i32 = Constant<28> [ID=28]
          0x7ffda00a8b10: i32 = Constant<0> [ORD=7266] [ID=19]
          0x7ffda00a8b10: i32 = Constant<0> [ORD=7266] [ID=19]
          0x7ffda00a8b10: i32 = Constant<0> [ORD=7266] [ID=19]
    0x7ffda0093b10: i64 = undef [ORD=7162] [ID=2]
In function: kernel_prepare
Error -11 building kernel. DEVICE_INFO=258
OpenCL error (CL_BUILD_PROGRAM_FAILURE) in file (common-opencl.c) at line (686) - (clBuildProgram failed.)
Originally created by @magnumripper on GitHub (Oct 23, 2013). Original GitHub issue: https://github.com/openwall/john/issues/401 Originally assigned to: @magnumripper on GitHub. Probably just a driver issue but I'll see if I can find a workaround. This is on OSX Mavericks, which now has OpenCL support for Intel HD4000. The driver seems better than the one for nvidia but this format fails spectacularly: ``` Device 2: HD Graphics 4000 Building the kernel, this could take a while Build log: Cannot select: 0x7ffda0093d10: i32 = bswap 0x7ffda0086a10 [ORD=7246] [ID=145] 0x7ffda0086a10: i32,ch = load 0x7ffda009fd10, 0x7ffda0082110, 0x7ffda0093b10<LD4[%6880]> [ORD=7245] [ID=144] 0x7ffda0082110: i64 = add 0x7ffda00a0710, 0x7ffda00b5610 [ORD=7202] [ID=82] 0x7ffda00a0710: i64 = FrameIndex<2> [ORD=7161] [ID=1] 0x7ffda00b5610: i64 = bitcast 0x7ffda00a3510 [ID=68] 0x7ffda00a3510: v2i32 = IGILISD::MOVSWZ 0x7ffda009d610, 0x7ffda00a8b10, 0x7ffda00a8b10, 0x7ffda00a8b10 [ID=54] 0x7ffda009d610: i32 = Constant<28> [ID=28] 0x7ffda00a8b10: i32 = Constant<0> [ORD=7266] [ID=19] 0x7ffda00a8b10: i32 = Constant<0> [ORD=7266] [ID=19] 0x7ffda00a8b10: i32 = Constant<0> [ORD=7266] [ID=19] 0x7ffda0093b10: i64 = undef [ORD=7162] [ID=2] In function: kernel_prepare Error -11 building kernel. DEVICE_INFO=258 OpenCL error (CL_BUILD_PROGRAM_FAILURE) in file (common-opencl.c) at line (686) - (clBuildProgram failed.) ```
bsakaguchi 2026-10-14 02:53:56 +07:00
Author
Owner

@ghost commented on GitHub (Oct 23, 2013):

And sha512crypt-opencl?

<!-- gh-comment-id:26915575 --> @ghost commented on GitHub (Oct 23, 2013): And sha512crypt-opencl?
Author
Owner

@magnumripper commented on GitHub (Oct 23, 2013):

Yeah sha256crypt was just the first... I changed the issue title. Here's a complete list of formats that crashes with similar output:
sha256crypt-opencl
sha512crypt-opencl
gpg-opencl
mscash2-opencl
office2013-opencl
Raw-SHA256-opencl
Raw-SHA512-opencl
Raw-SHA512-ng-opencl
XSHA512-opencl
XSHA512-ng-opencl
PBKDF2-HMAC-SHA256-opencl

The good news is that I can get some clues from the output and try workarounds. When the nvidia fails, it doesn't give any clues.

<!-- gh-comment-id:26925123 --> @magnumripper commented on GitHub (Oct 23, 2013): Yeah sha256crypt was just the first... I changed the issue title. Here's a complete list of formats that crashes with similar output: sha256crypt-opencl sha512crypt-opencl gpg-opencl mscash2-opencl office2013-opencl Raw-SHA256-opencl Raw-SHA512-opencl Raw-SHA512-ng-opencl XSHA512-opencl XSHA512-ng-opencl PBKDF2-HMAC-SHA256-opencl The good news is that I can get some clues from the output and try workarounds. When the nvidia fails, it doesn't give any clues.
Author
Owner

@magnumripper commented on GitHub (Jan 9, 2014):

documented

<!-- gh-comment-id:31906400 --> @magnumripper commented on GitHub (Jan 9, 2014): documented
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#138
No description provided.