Bug 73649

Summary: SIGSEGV: r600_sb::bc_parser::decode_shader()
Product: Mesa Reporter: octoploid <octoploid>
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium CC: freedesktop, octoploid
Version: 10.0   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: R600_DEBUG=ps,vs output

Description octoploid 2014-01-15 06:36:54 UTC
Trying to run the http://code.google.com/p/glyphy/ demo with 
r600 LLVM backend enabled I get:

Enter: demo_glstate_create
Enter: demo_shader_create_program
Enter: compile_shader
Leave: compile_shader
Enter: compile_shader
Leave: compile_shader
Enter: link_program
Leave: link_program
Leave: demo_shader_create_program
Enter: demo_atlas_create
Leave: demo_atlas_create
Leave: demo_glstate_create
Enter: demo_view_create
Leave: demo_view_create
Welcome to GLyphy demo
 45 glyphs; avg num endpoints 23.78; avg error 60.4%; avg tex fetch 2.96; avg  2.23kb per glyph
Setting vsync on.
Setting sRGB framebuffer on.
No sRGB framebuffer extension found; failed to set sRGB framebuffer
Setting debug to 0
Setting contrast to 1
Setting gamma_adjust to 1
Setting outline to 0
Setting outline_thickness to 1
Setting boldness to 0

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6a865e6 in r600_sb::bc_parser::decode_shader() () from /usr/lib64/dri/r600_dri.so
(gdb) bt
#0  0x00007ffff6a865e6 in r600_sb::bc_parser::decode_shader() () from /usr/lib64/dri/r600_dri.so
#1  0x00007ffff6a8b23e in r600_sb_bytecode_process () from /usr/lib64/dri/r600_dri.so
#2  0x00007ffff6a20966 in r600_shader_select () from /usr/lib64/dri/r600_dri.so
#3  0x00007ffff6a22100 in r600_create_shader_state () from /usr/lib64/dri/r600_dri.so
#4  0x00007ffff6b69bae in st_translate_fragment_program () from /usr/lib64/dri/r600_dri.so
#5  0x00007ffff6b6bf66 in st_get_fp_variant () from /usr/lib64/dri/r600_dri.so
#6  0x00007ffff6a60a15 in update_fp () from /usr/lib64/dri/r600_dri.so
#7  0x00007ffff6a7a63f in st_validate_state () from /usr/lib64/dri/r600_dri.so
#8  0x00007ffff68e807a in st_Clear.lto_priv.2949 () from /usr/lib64/dri/r600_dri.so
#9  0x0000000000406df2 in demo_view_display (vu=0x9f0ae0, buffer=0x83e260) at demo-view.cc:640
#10 0x00007ffff7bc2934 in fghcbDisplayWindow () from /usr/lib/libglut.so.3
#11 0x00007ffff7bc63f9 in fgEnumWindows () from /usr/lib/libglut.so.3
#12 0x00007ffff7bc2f55 in glutMainLoopEvent () from /usr/lib/libglut.so.3
#13 0x00007ffff7bc373d in glutMainLoop () from /usr/lib/libglut.so.3
#14 0x0000000000403250 in main (argc=1, argv=<optimized out>) at glyphy-demo.cc:136
Comment 1 Vadim Girlin 2014-01-16 20:34:23 UTC
Please attach the output with R600_DEBUG=ps,vs
Comment 2 octoploid 2014-01-17 08:42:22 UTC
Created attachment 92266 [details]
R600_DEBUG=ps,vs output
Comment 3 GitLab Migration User 2019-09-18 19:13:02 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/mesa/mesa/issues/486.

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.