From owner-freebsd-x11@freebsd.org Wed Mar 8 08:38:41 2017 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA73CD0115A for ; Wed, 8 Mar 2017 08:38:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id D3D271132 for ; Wed, 8 Mar 2017 08:38:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id D334CD01158; Wed, 8 Mar 2017 08:38:41 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D17FDD01157 for ; Wed, 8 Mar 2017 08:38:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B677D1131 for ; Wed, 8 Mar 2017 08:38:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v288cfnO048939 for ; Wed, 8 Mar 2017 08:38:41 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217635] lang/beignet: crash in get_program_global_data() after 1.3.0 update Date: Wed, 08 Mar 2017 08:38:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2017 08:38:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217635 Bug ID: 217635 Summary: lang/beignet: crash in get_program_global_data() after 1.3.0 update Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: regression Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: x11@FreeBSD.org Reporter: jbeich@FreeBSD.org Assignee: x11@FreeBSD.org Flags: maintainer-feedback?(x11@FreeBSD.org) Created attachment 180620 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180620&action= =3Dedit workaround I'm using drm-next (i915kms, Skylake GT2) and Beignet 1.3.0 started to crash unless built with ASan. Looking in src/cl_program.c suggests get_program_global_data() shouldn't be called with OpenCL 1.2 but 2.0 is disabled by default, so something is wrong. https://cgit.freedesktop.org/beignet/commit/?id=3D295b1cb6d1ac $ clinfo Number of platforms 1 Platform Name Intel Gen OCL Driver Platform Vendor Intel Platform Version OpenCL 1.2 beignet 1.3 Platform Profile FULL_PROFILE Platform Extensions=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_3d_image_writes cl_khr_image2d_from_bu= ffer cl_khr_depth_images cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_subgroups cl_intel_subgroups_short Platform Extensions function suffix Intel Segmentation fault Process 90021 stopped * thread #1, stop reason =3D signal SIGSEGV: invalid address (fault address: 0x20) frame #0: libdrm_intel.so.1`drm_intel_bo_set_softpin_offset(bo=3D0x0000000000000000, offset=3D34486951936) at intel_bufmgr.c:266 263 int 264 drm_intel_bo_set_softpin_offset(drm_intel_bo *bo, uint64_t offset) 265 { -> 266 if (bo->bufmgr->bo_set_softpin_offset) 267 return bo->bufmgr->bo_set_softpin_offset(bo, offset= ); 268 269 return -ENODEV; (lldb) bt * thread #1, stop reason =3D signal SIGSEGV: invalid address (fault address: 0x20) * frame #0: libdrm_intel.so.1`drm_intel_bo_set_softpin_offset(bo=3D0x0000000000000000, offset=3D34486951936) at intel_bufmgr.c:266 frame #1: libcl.so`get_program_global_data(prog=3D0x000000080126c1c0) at cl_program.c:227 frame #2: libcl.so`cl_program_build(p=3D0x000000080126c1c0, options=3D"= ") at cl_program.c:677 frame #3: libcl.so`clBuildProgram(program=3D0x000000080126c1c0, num_devices=3D1, device_list=3D0x00007fffffffe1e0, options=3D"", pfn_notify=3D0x0000000000000000, user_data=3D0x0000000000000000) at cl_api.= c:835 frame #4: libcl.so`cl_self_test(device=3D0x000000080168a2a0, atomic_in_l3_flag=3DSELF_TEST_PASS) at cl_device_id.c:852 frame #5: libcl.so`cl_get_device_ids(platform=3D0x00000008016863d8, device_type=3D4294967295, num_entries=3D0, devices=3D0x0000000000000000, num_devices=3D0x0000000801300d10) at cl_device_id.c:907 frame #6: libcl.so`clGetDeviceIDs(platform=3D0x00000008016863d8, device_type=3D4294967295, num_entries=3D0, devices=3D0x0000000000000000, num_devices=3D0x0000000801300d10) at cl_api_device_id.c:43 frame #7: libOpenCL.so.1`clGetDeviceIDs(platform=3D0x00000008016863d8, device_type=3D4294967295, num_entries=3D0, devices=3D0x0000000000000000, num_devices=3D0x0000000801300d10) at ocl_icd_loader_gen.c:58 frame #8: clinfo`printPlatformInfo(p=3D0) at clinfo.c:459 frame #9: clinfo`main(argc=3D1, argv=3D0x00007fffffffe448) at clinfo.c:= 2676 frame #10: clinfo`_start(ap=3D, cleanup=3D) at crt1.c:72 (lldb) f 1 frame #1: libcl.so`get_program_global_data(prog=3D0x000000080126c1c0) at cl_program.c:227 224 interp_program_get_global_constant_data(prog->opaque, (char*)p); 225 226 prog->global_data =3D cl_buffer_alloc_userptr(bufmgr, "program gl= obal data", p, alignedSz, 0); -> 227 cl_buffer_set_softpin_offset(prog->global_data, (size_t)p); 228 cl_buffer_set_bo_use_full_range(prog->global_data, 1); 229 230 uint32_t reloc_count =3D interp_program_get_global_reloc_count(prog->opaque); --=20 You are receiving this mail because: You are the assignee for the bug.=