Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hashcat] UNREACHABLE executed at lib/BitcastUtils.cpp:1217 #1196

Closed
kpet opened this issue Aug 21, 2023 · 1 comment · Fixed by #1199
Closed

[Hashcat] UNREACHABLE executed at lib/BitcastUtils.cpp:1217 #1196

kpet opened this issue Aug 21, 2023 · 1 comment · Fixed by #1199
Assignees

Comments

@kpet
Copy link
Contributor

kpet commented Aug 21, 2023

Compiling the attached source with the following command line

clspv source_94783615677232.bc -cl-single-precision-constant -cl-kernel-arg-info -rounding-mode-rte=16,32 -fp64=0 -rewrite-packed-structs -std430-ubo-layout -decorate-nonuniform -hack-mul-extended -hack-convert-to-float -arch=spir --use-native-builtins=ceil,copysign,exp2,fabs,floor,fma,fmax,fmin,half_exp,half_exp10,half_exp2,half_log,half_log10,half_log2,half_powr,half_rsqrt,half_sqrt,isequal,isfinite,isgreater,isgreaterequal,isinf,isless,islessequal,islessgreater,isnan,isnormal,isnotequal,isordered,isunordered,mad,rint,round,rsqrt,signbit,sqrt,trunc, -spv-version=1.6 -max-pushconstant-size=128 -max-ubo-size=1073741824 -global-offset -long-vector -module-constants-in-storage-buffer -cl-arm-non-uniform-work-group-size -enable-printf -printf-buffer-size=1048576  -x ir  -o compiled.spv

results in the following output

Err: SrcTy = i8 - DstTy = i8 - Ty = i8 - CstVal = 512
Unexpected offset for type in GetIdxsForTyFromOffset
UNREACHABLE executed at /path/to/clvk/external/clspv/lib/BitcastUtils.cpp:1217!

source_94783615677232.zip

@rjodinchr rjodinchr self-assigned this Aug 22, 2023
rjodinchr added a commit to rjodinchr/clspv that referenced this issue Aug 22, 2023
Private addrspace needs to have a zero as first indice.
But when SrcTy == DstTy, we are in another scenario coming from
pointer cast rework, where the first indice may not be zero.

Fix google#1196
@rjodinchr
Copy link
Collaborator

Also need #1198 and #1200 to be fixed

alan-baker pushed a commit that referenced this issue Aug 24, 2023
…1199)

Private addrspace needs to have a zero as first indice.
But when SrcTy == DstTy, we are in another scenario coming from
pointer cast rework, where the first indice may not be zero.

Fix #1196
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants