Summary: | ASSERTION FAILED: isScalarType(type) in llvm_gen_backend.cpp line 196 | ||
---|---|---|---|
Product: | Beignet | Reporter: | Frank Dittrich <frank.dittrich> |
Component: | Beignet | Assignee: | rongyang <rong.r.yang> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | zhigang.gong |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Frank Dittrich
2015-09-22 21:57:45 UTC
I use latest commit of beignet and John the Ripper, this assert has gone. But there is another assert, I have send a patch "[PATCH] GBE: fix a assert when structure argument's first field don't used.", can you try it? Thanks Sorry for the delay. Now I repeated the test with latest beignet commit (032b606f8c5baa53e52b1f55c4f7c0bafdd6ff37), latest John the Ripper (bleeding-jumbo) commit (8d4470ff9f2357fc10c8e5769dbb164eb5118f40) and Linux kernel 4.4.0-0.rc6.git0.1.vanilla.knurd.1.fc22.x86_64. I didn't find a git commit with a name matching your patch description. Nevertheless, this time I ran into a different failed assertion: $ ./john --test --format=descrypt-opencl --verbosity=5 initUnicode(UNICODE, ASCII/ASCII) ASCII -> ASCII -> ASCII Device 0: Intel(R) HD Graphics Haswell GT2 Desktop Benchmarking: descrypt-opencl, traditional crypt(3) [DES OpenCL]... Loaded 6 hashes with 4 different salts to test db from test vectors Options used: -I ./kernels -cl-mad-enable -D__GPU__ -DDEVICE_INFO=34 -DSIZEOF_SIZE_T=8 -DDEV_VER_MAJOR=1 -DDEV_VER_MINOR=2 -D_OPENCL_COMPILER $JOHN/kernels/DES_bs_hash_checking_kernel.cl ASSERTION FAILED: it != allocatedBlocks.end() at file /home/fd/git/beignet/backend/src/backend/context.cpp, function void gbe::SimpleAllocator::splitBlock(int32_t, int32_t), line 293 Trace/breakpoint trap (core dumped) (gdb) run --test --format=descrypt-opencl --verbosity=5 Starting program: /home/fd/git/JtR/run/john --test --format=descrypt-opencl --verbosity=5 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". initUnicode(UNICODE, ASCII/ASCII) ASCII -> ASCII -> ASCII Device 0: Intel(R) HD Graphics Haswell GT2 Desktop Benchmarking: descrypt-opencl, traditional crypt(3) [DES OpenCL]... Loaded 6 hashes with 4 different salts to test db from test vectors Options used: -I /home/fd/git/JtR/run/kernels -cl-mad-enable -D__GPU__ -DDEVICE_INFO=34 -DSIZEOF_SIZE_T=8 -DDEV_VER_MAJOR=1 -DDEV_VER_MINOR=2 -D_OPENCL_COMPILER $JOHN/kernels/DES_bs_hash_checking_kernel.cl ASSERTION FAILED: it != allocatedBlocks.end() at file /home/fd/git/beignet/backend/src/backend/context.cpp, function void gbe::SimpleAllocator::splitBlock(int32_t, int32_t), line 293 Program received signal SIGTRAP, Trace/breakpoint trap. gbe::onFailedAssertion (msg=<optimized out>, file=<optimized out>, fn=<optimized out>, line=<optimized out>) at /home/fd/git/beignet/backend/src/sys/assert.cpp:76 76 _exit(-1); Missing separate debuginfos, use: dnf debuginfo-install libgcc-5.3.1-2.fc22.x86_64 libstdc++-5.3.1-2.fc22.x86_64 (gdb) bt #0 gbe::onFailedAssertion (msg=<optimized out>, file=<optimized out>, fn=<optimized out>, line=<optimized out>) at /home/fd/git/beignet/backend/src/sys/assert.cpp:76 #1 0x00007fffed9ed54e in gbe::SimpleAllocator::splitBlock (this=0x5dbbad0, offset=0, subOffset=subOffset@entry=11) at /home/fd/git/beignet/backend/src/backend/context.cpp:293 #2 0x00007fffed9ed569 in gbe::Context::splitBlock (this=<optimized out>, offset=<optimized out>, subOffset=subOffset@entry=11) at /home/fd/git/beignet/backend/src/backend/context.cpp:378 #3 0x00007fffedadfe58 in allocateSpecialRegs (this=0x5dbcc70) at /home/fd/git/beignet/backend/src/backend/gen_reg_allocation.cpp:258 #4 allocate (selection=..., this=0x5dbcc70) at /home/fd/git/beignet/backend/src/backend/gen_reg_allocation.cpp:1256 #5 gbe::GenRegAllocator::allocate (this=<optimized out>, selection=...) at /home/fd/git/beignet/backend/src/backend/gen_reg_allocation.cpp:1340 #6 0x00007fffedb097c9 in gbe::GenContext::emitCode (this=0x5acbf00) at /home/fd/git/beignet/backend/src/backend/gen_context.cpp:3204 #7 0x00007fffed9ef06f in gbe::Context::compileKernel (this=this@entry=0x5acbf00) at /home/fd/git/beignet/backend/src/backend/context.cpp:360 #8 0x00007fffedb147db in gbe::GenProgram::compileKernel (this=<optimized out>, unit=..., name="DES_bs_cmp_high", relaxMath=<optimized out>, profiling=<optimized out>) at /home/fd/git/beignet/backend/src/backend/gen_program.cpp:194 #9 0x00007fffed9f3306 in gbe::Program::buildFromUnit (this=this@entry=0x53d2520, unit=..., error="") at /home/fd/git/beignet/backend/src/backend/program.cpp:174 #10 0x00007fffed9f3951 in gbe::Program::buildFromLLVMFile (this=this@entry=0x53d2520, fileName=fileName@entry=0x0, module=module@entry=0x52bbd80, error="", optLevel=optLevel@entry=1) at /home/fd/git/beignet/backend/src/backend/program.cpp:152 #11 0x00007fffedb14dff in gbe::genProgramNewFromLLVM (deviceID=1042, fileName=0x0, module=0x52bbd80, llvm_ctx=0x529e2f0, asm_file_name=<optimized out>, stringSize=1000, err=0x520ac70 "", errSize=0x52b1ba0, optLevel=1, options=0x52b57e0 "-I /home/fd/git/JtR/run/kernels -cl-mad-enable -D__GPU__ -DDEVICE_INFO=34 -DSIZEOF_SIZE_T=8 -DDEV_VER_MAJOR=1 -DDEV_VER_MINOR=2 -D_OPENCL_COMPILER ") at /home/fd/git/beignet/backend/src/backend/gen_program.cpp:421 #12 0x00007fffeda05290 in gbe::programNewFromSource (deviceID=1042, source=<optimized out>, stringSize=1000, options=0x52b57e0 "-I /home/fd/git/JtR/run/kernels -cl-mad-enable -D__GPU__ -DDEVICE_INFO=34 -DSIZEOF_SIZE_T=8 -DDEV_VER_MAJOR=1 -DDEV_VER_MINOR=2 -D_OPENCL_COMPILER ", err=0x520ac70 "", errSize=0x52b1ba0) at /home/fd/git/beignet/backend/src/backend/program.cpp:896 #13 0x00007ffff254f650 in cl_program_build (p=p@entry=0x52b1b10, options=0x52b57e0 "-I /home/fd/git/JtR/run/kernels -cl-mad-enable -D__GPU__ -DDEVICE_INFO=34 -DSIZEOF_SIZE_T=8 -DDEV_VER_MAJOR=1 -DDEV_VER_MINOR=2 -D_OPENCL_COMPILER ") at /home/fd/git/beignet/src/cl_program.c:576 #14 0x00007ffff2546f06 in clBuildProgram (program=0x52b1b10, num_devices=<optimized out>, device_list=<optimized out>, options=<optimized out>, pfn_notify=0x0, user_data=0x0) at /home/fd/git/beignet/src/cl_api.c:956 #15 0x00007ffff70dcafb in clBuildProgram (program=0x52b1b10, num_devices=num_devices@entry=0, device_list=device_list@entry=0x0, options=options@entry=0x52b57e0 "-I /home/fd/git/JtR/run/kernels -cl-mad-enable -D__GPU__ -DDEVICE_INFO=34 -DSIZEOF_SIZE_T=8 -DDEV_VER_MAJOR=1 -DDEV_VER_MINOR=2 -D_OPENCL_COMPILER ", pfn_notify=pfn_notify@entry=0x0, user_data=user_data@entry=0x0) at ocl_icd_loader_gen.c:386 #16 0x00000000006f727d in opencl_build (sequential_id=sequential_id@entry=0, opts=opts@entry=0x0, save=save@entry=0, file_name=file_name@entry=0x0, program=program@entry=0xeb7600 <program>, kernel_source_file=kernel_source_file@entry=0x7ecd78 "$JOHN/kernels/DES_bs_hash_checking_kernel.cl", kernel_source=0x4ea2c10 "/*\n * This software is Copyright (c) 2015 Sayantan Datta <std2048 at gmail dot com>\n * and it is hereby released to the general public under the following terms:\n * Redistribution and use in source an"...) at common-opencl.c:991 #17 0x00000000006f7947 in opencl_build_kernel_opt (kernel_filename=kernel_filename@entry=0x7ecd78 "$JOHN/kernels/DES_bs_hash_checking_kernel.cl", sequential_id=sequential_id@entry=0, opts=opts@entry=0x0) at common-opencl.c:1803 #18 0x00000000006f79bd in opencl_build_kernel (kernel_filename=kernel_filename@entry=0x7ecd78 "$JOHN/kernels/DES_bs_hash_checking_kernel.cl", sequential_id=0, opts=opts@entry=0x0, warn=warn@entry=0) at common-opencl.c:1821 #19 0x00000000005ace85 in create_checking_kernel_set_args () at opencl_DES_bs_plug.c:463 #20 0x00000000005aaedc in reset (db=<optimized out>) at opencl_DES_bs_h_plug.c:707 #21 0x00000000006a8737 in fmt_self_test_body (full_lvl=<optimized out>, db=0x52bc4b0, salt_copy=0x52bc724, binary_copy=0x4e7beb4, format=0xaf2e60 <fmt_opencl_DES>) at formats.c:444 #22 fmt_self_test (format=format@entry=0xaf2e60 <fmt_opencl_DES>, db=db@entry=0x52bc4b0) at formats.c:1593 #23 0x000000000069c874 in benchmark_format (format=0xaf2e60 <fmt_opencl_DES>, salts=256, results=0x7fffffffd530, test_db=0x52bc4b0) at bench.c:255 #24 0x000000000069d732 in benchmark_all () at bench.c:687 #25 0x00000000006b1e8a in john_run () at john.c:1585 #26 0x00000000006b2b12 in main (argc=4, argv=0x7fffffffdfe8) at john.c:1970 When I get that ASSERTION FAILED error in backend/src/backend/context.cpp, function void gbe::SimpleAllocator::splitBlock(int32_t, int32_t), line 293, there's also a new dmesg line [ 266.175832] traps: john[2108] trap int3 ip:7f03be4cf968 sp:7fff67eb0360 error:0 I have push it, commit 473354643806806831c099e97cac952c48593e65, please try it again. With john's latest bleeding-jumbo commit https://github.com/magnumripper/JohnTheRipper/commit/ca11872eaf094b0dbe90ba3f74fae5366d2b3125, Linux kernel 4.4.0-0.rc6.git1.1.vanilla.knurd.1.fc22.x86_64 and latest beignet commit f74980864a41daa5d644a033a16132768ce89296, this error disappeared. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.