Bug 98277 - GENOS_Assert crash when CMRT is used in chroot
Summary: GENOS_Assert crash when CMRT is used in chroot
Status: RESOLVED MOVED
Alias: None
Product: Beignet
Classification: Unclassified
Component: Beignet (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Zhigang Gong
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-16 13:10 UTC by Rebecca Palmer
Modified: 2018-10-12 21:24 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Rebecca Palmer 2016-10-16 13:10:39 UTC
The runtime_cmrt test does not work on my system: Debian unstable chroot (drm 2.4.71, cmrt 1.0.6) with /dev/dri bind-mounted, on a Debian stable (linux 3.16 with cmdparser fix) system.  Beignet is built with X but the only X server is outside the chroot; the rest of Beignet works.

Hardware:
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)

In 1.2 via ICD (standalone utest) it only fails, but in git master linked direct (default utest) it asserts, ending the whole run:
runtime_cmrt()
Thread 1 "utest_run" received signal SIGABRT, Aborted.
0x00007ffff5418fdf in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt full
#0  0x00007ffff5418fdf in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x00007ffff541a40a in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x00007ffff19893c9 in _GENOS_Assert ()
   from /usr/lib/x86_64-linux-gnu/libcmrt.so.1
No symbol table info available.
#3  0x00007ffff1987ec5 in Ctx_InitContext ()
   from /usr/lib/x86_64-linux-gnu/libcmrt.so.1
No symbol table info available.
#4  0x00007ffff1988df8 in IntelGen_OsInitInterface ()
   from /usr/lib/x86_64-linux-gnu/libcmrt.so.1
No symbol table info available.
#5  0x00007ffff19774d2 in HalCm_Create(_GENOS_OS_CONTEXT*, _CM_HAL_CREATE_PARAM*, _CM_HAL_STATE**) () from /usr/lib/x86_64-linux-gnu/libcmrt.so.1
No symbol table info available.
#6  0x00007ffff198d23e in CmDevice_RT::CreateAuxDevice(_CmDriverContext_*) ()
   from /usr/lib/x86_64-linux-gnu/libcmrt.so.1
No symbol table info available.
#7  0x00007ffff198d45d in CmDevice_RT::Initialize(_CmDriverContext_*) ()
   from /usr/lib/x86_64-linux-gnu/libcmrt.so.1
No symbol table info available.
#8  0x00007ffff198f0ec in CmDevice_RT::Create(_CmDriverContext_*, CmDevice_RT*&,---Type <return> to continue, or q <return> to quit---
 unsigned int) () from /usr/lib/x86_64-linux-gnu/libcmrt.so.1
No symbol table info available.
#9  0x00007ffff198f32b in CreateCmDevice ()
   from /usr/lib/x86_64-linux-gnu/libcmrt.so.1
No symbol table info available.
#10 0x00007ffff7207f77 in cmrt_build_program (p=0x695350, 
    options=<optimized out>)
    at /home/rnpalmer/Debian/builds/stackbuild/beignet/src/cl_cmrt.cpp:74
        ctx = {deviceid = 358, device_rev = -1, userptr_enabled = 0, 
          shared_bufmgr = 1, bufmgr = 0x694ba0}
        version = 0
        cmrt_device = @0x7ffff7445770: 0xbce2e0
        result = <optimized out>
        cmrt_program = 0xffffffff00000166
#11 0x00007ffff71e8d85 in cl_program_build (p=p@entry=0x695350, 
    options=options@entry=0x0)
    at /home/rnpalmer/Debian/builds/stackbuild/beignet/src/cl_program.c:539
        err = 0
        i = 0
        copyed = 0
#12 0x00007ffff71dfca2 in clBuildProgram (program=program@entry=0x695350, 
    num_devices=num_devices@entry=1, 
    device_list=device_list@entry=0x7ffff79c4880 <device>,
Comment 1 Guo Yejun 2016-12-01 05:49:18 UTC
thanks, we plan to disable cmrt as default, and the patch is in code review, see https://lists.freedesktop.org/archives/beignet/2016-November/008275.html.
Comment 2 GitLab Migration User 2018-10-12 21:24:52 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/beignet/beignet/issues/37.


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.