[Bug 63632] mesa +r600 llvm = segfault

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Apr 19 14:55:08 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=63632

Andy Furniss <adf.lists at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|RS880 + mesa/llvm heads -   |mesa +r600 llvm = segfault
                   |segfault                    |

--- Comment #1 from Andy Furniss <adf.lists at gmail.com> ---
I am still getting segfaults with updated mesa/llvm, though the bt is a bit
different.

I can reproduce with a new 64 bit LFS and an old 32 bit one.

Have put RV790 back in this box so it's not just RS880.

Program received signal SIGSEGV, Segmentation fault.
0xb6451433 in r600_llvm_compile (mod=0x80658c0,
inst_bytes=inst_bytes at entry=0xbfffa7d4,
inst_byte_count=inst_byte_count at entry=0xbfffa7d8, family=CHIP_RV770,
ngpr=0x806425c, dump=dump at entry=0) at r600_llvm.c:567
567             *ngpr = util_le32_to_cpu(*(uint32_t*)binary.config);
(gdb) bt
#0  0xb6451433 in r600_llvm_compile (mod=0x80658c0,
inst_bytes=inst_bytes at entry=0xbfffa7d4,
inst_byte_count=inst_byte_count at entry=0xbfffa7d8, family=CHIP_RV770,
ngpr=0x806425c, dump=dump at entry=0) at r600_llvm.c:567
#1  0xb6433f16 in r600_shader_from_tgsi (rscreen=0x8074cf0,
pipeshader=pipeshader at entry=0x8064230, key=...) at r600_shader.c:1464
#2  0xb6435135 in r600_pipe_shader_create (ctx=ctx at entry=0x805b850,
shader=0x8064230, key=...) at r600_shader.c:132
#3  0xb6448f6b in r600_shader_select (ctx=ctx at entry=0x805b850,
sel=sel at entry=0x8094230, dirty=dirty at entry=0x0) at r600_state_common.c:747
#4  0xb6449134 in r600_create_shader_state (ctx=0x805b850, state=<optimized
out>, pipe_shader_type=0) at r600_state_common.c:794
#5  0xb633d0a3 in ureg_create_shader (ureg=ureg at entry=0x808f8f0,
pipe=pipe at entry=0x805b850, so=so at entry=0x0) at tgsi/tgsi_ureg.c:1701
#6  0xb636a434 in ureg_create_shader_with_so_and_destroy (so=0x0,
pipe=0x805b850, p=0x808f8f0) at ./tgsi/tgsi_ureg.h:131
#7  util_make_vertex_passthrough_shader_with_so (pipe=pipe at entry=0x805b850,
num_attribs=num_attribs at entry=2,
semantic_names=semantic_names at entry=0xbffff16c,
semantic_indexes=semantic_indexes at entry=0xbffff20c, so=so at entry=0x0) at
util/u_simple_shaders.c:98
#8  0xb636a48f in util_make_vertex_passthrough_shader
(pipe=pipe at entry=0x805b850, num_attribs=num_attribs at entry=2,
semantic_names=semantic_names at entry=0xbffff16c,
semantic_indexes=semantic_indexes at entry=0xbffff20c) at
util/u_simple_shaders.c:64
#9  0xb634c604 in util_blitter_create (pipe=pipe at entry=0x805b850) at
util/u_blitter.c:301
#10 0xb64248a1 in r600_create_context (screen=0x8074cf0, priv=0x0) at
r600_pipe.c:466
#11 0xb6261a9b in st_api_create_context (stapi=0xb77752c0 <st_gl_api>,
smapi=0x80747b0, attribs=0xbffff474, error=0xbffff470, shared_stctxi=0x0) at
../../src/mesa/state_tracker/st_manager.c:633
#12 0xb645777c in dri_create_context (api=API_OPENGL_COMPAT, visual=0x80787f8,
cPriv=0x807fc28, major_version=1, minor_version=0, flags=0, error=0xbffff53c,
sharedContextPrivate=0x0) at dri_context.c:124
#13 0xb611b89d in dri2CreateContextAttribs (screen=screen at entry=0x80746f8,
api=api at entry=0, config=config at entry=0x80787f8, shared=shared at entry=0x0,
num_attribs=num_attribs at entry=0, attribs=attribs at entry=0x0,
error=error at entry=0xbffff53c, data=data at entry=0x807f518)
    at ../../../../src/mesa/drivers/dri/common/dri_util.c:288
#14 0xb611ba17 in dri2CreateNewContextForAPI (screen=screen at entry=0x80746f8,
api=api at entry=0, config=config at entry=0x80787f8, shared=shared at entry=0x0,
data=data at entry=0x807f518) at
../../../../src/mesa/drivers/dri/common/dri_util.c:306
#15 0xb611ba4f in dri2CreateNewContext (screen=0x80746f8, config=0x80787f8,
shared=0x0, data=0x807f518) at
../../../../src/mesa/drivers/dri/common/dri_util.c:314
#16 0xb7f11209 in dri2_create_context (base=0x805b300, config_base=0x809ed70,
shareList=0x0, renderType=32788) at dri2_glx.c:230
#17 0xb7ee73f9 in CreateContext (dpy=dpy at entry=0x804c050, generic_id=545,
config=0x809ed70, shareList_user=shareList_user at entry=0x0,
allowDirect=allowDirect at entry=1, code=code at entry=3, renderType=32788,
screen=screen at entry=0) at glxcmds.c:274
#18 0xb7ee7c15 in glXCreateContext (dpy=0x804c050, vis=0x805b6b8,
shareList=0x0, allowDirect=1) at glxcmds.c:379
#19 0xb7cb7c6a in __glutCreateWindow (parent=0x0, x=0, y=0, width=300,
height=300, gameMode=0) at glut_win.c:609
#20 0xb7cb7e11 in glutCreateWindow (title=title at entry=0x804a900 "Gears") at
glut_win.c:731
#21 0x0804906f in main (argc=1, argv=0xbffff7f4) at gears.c:391

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130419/71a6c00c/attachment.html>


More information about the dri-devel mailing list