Bug 71859 - texelFetch segfault in libLLVM-3.3.so (on Cayman)
Summary: texelFetch segfault in libLLVM-3.3.so (on Cayman)
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-21 04:12 UTC by Alexandre Demers
Modified: 2014-09-26 04:32 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
full today's journal (1.19 MB, text/plain)
2013-11-21 04:18 UTC, Alexandre Demers
Details

Description Alexandre Demers 2013-11-21 04:12:10 UTC
Nov 20 22:55:37 Xander kernel: texelFetch[18811]: segfault at 0 ip 00007f41626876ab sp 00007fff5b0e7400 error 6 in libLLVM-3.3.so[7f4162326000+158d000]
Nov 20 22:55:37 Xander systemd-coredump[18832]: Process 18811 (texelFetch) dumped core.
Nov 20 22:55:40 Xander systemd-coredump[19099]: Process 19087 (texelFetch) dumped core.
Nov 20 22:55:45 Xander systemd-coredump[19393]: Process 19375 (texelFetch) dumped core.
Nov 20 22:55:46 Xander systemd-coredump[19453]: Process 19434 (texelFetch) dumped core.
Nov 20 22:55:55 Xander systemd-coredump[20162]: Process 20145 (texelFetch) dumped core.
Nov 20 22:56:02 Xander systemd-coredump[20619]: Process 20605 (texelFetch) dumped core.
Nov 20 22:56:11 Xander systemd-coredump[21328]: Process 21307 (arb_texture_mul) dumped core.
Nov 20 22:56:11 Xander systemd-coredump[21329]: Process 21309 (arb_texture_mul) dumped core.
Nov 20 22:56:11 Xander systemd-coredump[21332]: Process 21318 (arb_texture_mul) dumped core.
Nov 20 22:56:11 Xander systemd-coredump[21352]: Process 21333 (arb_texture_mul) dumped core.
Nov 20 22:56:26 Xander systemd-coredump[22297]: Process 22281 (texelFetch) dumped core.
Nov 20 22:56:35 Xander systemd-coredump[22874]: Process 22860 (texelFetch) dumped core.
Nov 20 22:56:38 Xander systemd-coredump[23056]: Process 23038 (ext_transform_f) dumped core.
Nov 20 22:56:41 Xander systemd-coredump[23235]: Process 23221 (texelFetch) dumped core.
Nov 20 22:56:41 Xander systemd-coredump[23257]: Process 23242 (texelFetch) dumped core.
Nov 20 22:56:45 Xander systemd-coredump[23484]: Process 23468 (texelFetch) dumped core.
Nov 20 22:56:54 Xander systemd-coredump[23978]: Process 23960 (glx-create-cont) dumped core.
Nov 20 22:57:17 Xander systemd-coredump[25666]: Process 25643 (texelFetch) dumped core.
Nov 20 22:57:17 Xander systemd-coredump[25721]: Process 25704 (ext_transform_f) dumped core.
Comment 1 Alexandre Demers 2013-11-21 04:16:34 UTC
When running piglit-run quick.test, my system always ends up hanging with what's in the previous comment from journald. I'm building mesa with:
--enable-debug \
--enable-r600-llvm-compiler \
--with-llvm-shared-libs \

Is this expected from r600g implemented features?
Comment 2 Alexandre Demers 2013-11-21 04:18:12 UTC
Created attachment 89552 [details]
full today's journal

The interesting part is just before the last "-- Reboot --" of the file when the system hanged while running quick.test piglit run.
Comment 3 Alexandre Demers 2013-11-21 16:19:38 UTC
It was tested with kernel 3.12 and with Alex's drm-next-3.13
Comment 4 Tom Stellard 2013-11-22 00:41:02 UTC
Are you able to get a full backtrace for the crash?
Comment 5 Alexandre Demers 2013-11-22 02:28:19 UTC
(In reply to comment #4)
> Are you able to get a full backtrace for the crash?

I'll see if I can get it.
Comment 6 Alexandre Demers 2013-11-22 03:50:37 UTC
Well, before looking at the backtrace, I want to flag I don't have the same result with and without gdb. See below.

I ran one of the failing TexelFetch tests that was failing. Running "/home/dema1701/projects/display/piglit/bin/texelFetch 140 vs usampler2DRect -auto -fbo" in a terminal fails with the following:

VM start=0x800000  end=0x801000 | Buffer 4096 bytes
VM start=0x801000  end=0x811000 | Buffer 65536 bytes
VM start=0x811000  end=0x811010 | Buffer 16 bytes
VM start=0x812000  end=0x812038 | Buffer 56 bytes
VM start=0x813000  end=0x813038 | Buffer 56 bytes
VM start=0x814000  end=0x814020 | Buffer 32 bytes
VM start=0x815000  end=0x815028 | Buffer 40 bytes
VM start=0x816000  end=0x816010 | Buffer 16 bytes
ATTENTION: default value of option vblank_mode overridden by environment.
VM start=0x817000  end=0x827000 | Buffer 65536 bytes
VM start=0x827000  end=0x827010 | Buffer 16 bytes
VM start=0x828000  end=0x828038 | Buffer 56 bytes
VM start=0x829000  end=0x829038 | Buffer 56 bytes
VM start=0x82A000  end=0x82A020 | Buffer 32 bytes
VM start=0x82B000  end=0x82B028 | Buffer 40 bytes
VM start=0x82C000  end=0x82C010 | Buffer 16 bytes
VM start=0x830000  end=0x834000 | Texture 512x32x1, 1 levels, 1 samples, i8_unorm
VM start=0x834000  end=0x844000 | Buffer 65536 bytes
VM start=0x82D000  end=0x82D080 | Buffer 128 bytes
VM start=0x82E000  end=0x82E020 | Buffer 32 bytes
VM start=0x82F000  end=0x82F010 | Buffer 16 bytes
VM start=0x848000  end=0x868000 | Texture 165x165x1, 1 levels, 1 samples, r8g8_unorm
VM start=0x868000  end=0x87CA00 | Texture 165x165x1, 1 levels, 1 samples, r8g8_unorm
VM start=0x844000  end=0x844078 | Buffer 120 bytes
VM start=0x845000  end=0x845190 | Buffer 400 bytes
VM start=0x846000  end=0x8466C0 | Buffer 1728 bytes
VM start=0x847000  end=0x8473C0 | Buffer 960 bytes
VM start=0x900000  end=0xB80000 | Texture 900x600x1, 1 levels, 1 samples, b8g8r8x8_unorm
VM start=0xB80000  end=0xF55700 | Texture 900x600x1, 10 levels, 1 samples, r8g8b8a8_unorm
65x32x1
VM start=0x880000  end=0x889000 | Texture 65x32x1, 1 levels, 1 samples, r32g32b32a32_uint
VM start=0x889000  end=0x899000 | Texture 65x32x1, 1 levels, 1 samples, r32g32b32a32_uint
VM start=0x899000  end=0x899050 | Buffer 80 bytes
VM start=0x89A000  end=0x8AA000 | Buffer 65536 bytes
VM start=0x8AA000  end=0x8AA050 | Buffer 80 bytes
VM start=0x8AB000  end=0x8B3200 | Buffer 33280 bytes
VM start=0x8B4000  end=0x8BC200 | Buffer 33280 bytes
VM start=0x8BD000  end=0x8BD0F8 | Buffer 248 bytes
Stack dump:
0.	Running pass 'Function Pass Manager' on module 'tgsi'.
1.	Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@main'
Segmentation fault (core dumped)

---
Running the same thing, but with gdb as "gdb --args /home/dema1701/projects/display/piglit/bin/texelFetch 140 vs usampler2DRect -auto -fbo" ends with a PASS:

Starting program: /home/dema1701/projects/display/piglit/bin/texelFetch 140 vs usampler2DRect -auto -fbo
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffef6e5700 (LWP 7915)]
VM start=0x800000  end=0x801000 | Buffer 4096 bytes
VM start=0x801000  end=0x811000 | Buffer 65536 bytes
VM start=0x811000  end=0x811010 | Buffer 16 bytes
VM start=0x812000  end=0x812038 | Buffer 56 bytes
VM start=0x813000  end=0x813038 | Buffer 56 bytes
VM start=0x814000  end=0x814020 | Buffer 32 bytes
VM start=0x815000  end=0x815028 | Buffer 40 bytes
VM start=0x816000  end=0x816010 | Buffer 16 bytes
ATTENTION: default value of option vblank_mode overridden by environment.
VM start=0x817000  end=0x827000 | Buffer 65536 bytes
VM start=0x827000  end=0x827010 | Buffer 16 bytes
VM start=0x828000  end=0x828038 | Buffer 56 bytes
VM start=0x829000  end=0x829038 | Buffer 56 bytes
VM start=0x82A000  end=0x82A020 | Buffer 32 bytes
VM start=0x82B000  end=0x82B028 | Buffer 40 bytes
VM start=0x82C000  end=0x82C010 | Buffer 16 bytes
VM start=0x830000  end=0x834000 | Texture 512x32x1, 1 levels, 1 samples, i8_unorm
VM start=0x834000  end=0x844000 | Buffer 65536 bytes
VM start=0x82D000  end=0x82D080 | Buffer 128 bytes
VM start=0x82E000  end=0x82E020 | Buffer 32 bytes
VM start=0x82F000  end=0x82F010 | Buffer 16 bytes
VM start=0x848000  end=0x868000 | Texture 165x165x1, 1 levels, 1 samples, r8g8_unorm
VM start=0x868000  end=0x87CA00 | Texture 165x165x1, 1 levels, 1 samples, r8g8_unorm
VM start=0x844000  end=0x844078 | Buffer 120 bytes
VM start=0x845000  end=0x845190 | Buffer 400 bytes
VM start=0x846000  end=0x8466C0 | Buffer 1728 bytes
VM start=0x847000  end=0x8473C0 | Buffer 960 bytes
VM start=0x900000  end=0xB80000 | Texture 900x600x1, 1 levels, 1 samples, b8g8r8x8_unorm
VM start=0xB80000  end=0xF55700 | Texture 900x600x1, 10 levels, 1 samples, r8g8b8a8_unorm
65x32x1
VM start=0x880000  end=0x889000 | Texture 65x32x1, 1 levels, 1 samples, r32g32b32a32_uint
VM start=0x889000  end=0x899000 | Texture 65x32x1, 1 levels, 1 samples, r32g32b32a32_uint
VM start=0x899000  end=0x899050 | Buffer 80 bytes
VM start=0x89A000  end=0x8AA000 | Buffer 65536 bytes
VM start=0x8AA000  end=0x8AA050 | Buffer 80 bytes
VM start=0x8AB000  end=0x8B3200 | Buffer 33280 bytes
VM start=0x8B4000  end=0x8BC200 | Buffer 33280 bytes
VM start=0x8BD000  end=0x8BD0F8 | Buffer 248 bytes
VM start=0x8BE000  end=0x8BE040 | Buffer 64 bytes
VM start=0xF56000  end=0x1056000 | Buffer 1048576 bytes
VM start=0x8BF000  end=0x8BF038 | Buffer 56 bytes
VM start=0x8C0000  end=0x8C00F8 | Buffer 248 bytes
VM start=0x8C1000  end=0x8D1000 | Texture 65x32x1, 1 levels, 1 samples, r32g32b32a32_float
[Thread 0x7fffef6e5700 (LWP 7915) exited]
PIGLIT: {'result': 'pass' }
[Inferior 1 (process 7911) exited normally]
Comment 7 Alexandre Demers 2013-11-22 03:53:26 UTC
Replace "failing TexelFetch" by "crashing TexelFetch"

(In reply to comment #6)
> Well, before looking at the backtrace, I want to flag I don't have the same
> result with and without gdb. See below.
> 
> I ran one of the failing TexelFetch tests that was failing. Running
> "/home/dema1701/projects/display/piglit/bin/texelFetch 140 vs usampler2DRect
> -auto -fbo" in a terminal fails with the following:
> 
> VM start=0x800000  end=0x801000 | Buffer 4096 bytes
> VM start=0x801000  end=0x811000 | Buffer 65536 bytes
> VM start=0x811000  end=0x811010 | Buffer 16 bytes
> VM start=0x812000  end=0x812038 | Buffer 56 bytes
> VM start=0x813000  end=0x813038 | Buffer 56 bytes
> VM start=0x814000  end=0x814020 | Buffer 32 bytes
> VM start=0x815000  end=0x815028 | Buffer 40 bytes
> VM start=0x816000  end=0x816010 | Buffer 16 bytes
> ATTENTION: default value of option vblank_mode overridden by environment.
> VM start=0x817000  end=0x827000 | Buffer 65536 bytes
> VM start=0x827000  end=0x827010 | Buffer 16 bytes
> VM start=0x828000  end=0x828038 | Buffer 56 bytes
> VM start=0x829000  end=0x829038 | Buffer 56 bytes
> VM start=0x82A000  end=0x82A020 | Buffer 32 bytes
> VM start=0x82B000  end=0x82B028 | Buffer 40 bytes
> VM start=0x82C000  end=0x82C010 | Buffer 16 bytes
> VM start=0x830000  end=0x834000 | Texture 512x32x1, 1 levels, 1 samples,
> i8_unorm
> VM start=0x834000  end=0x844000 | Buffer 65536 bytes
> VM start=0x82D000  end=0x82D080 | Buffer 128 bytes
> VM start=0x82E000  end=0x82E020 | Buffer 32 bytes
> VM start=0x82F000  end=0x82F010 | Buffer 16 bytes
> VM start=0x848000  end=0x868000 | Texture 165x165x1, 1 levels, 1 samples,
> r8g8_unorm
> VM start=0x868000  end=0x87CA00 | Texture 165x165x1, 1 levels, 1 samples,
> r8g8_unorm
> VM start=0x844000  end=0x844078 | Buffer 120 bytes
> VM start=0x845000  end=0x845190 | Buffer 400 bytes
> VM start=0x846000  end=0x8466C0 | Buffer 1728 bytes
> VM start=0x847000  end=0x8473C0 | Buffer 960 bytes
> VM start=0x900000  end=0xB80000 | Texture 900x600x1, 1 levels, 1 samples,
> b8g8r8x8_unorm
> VM start=0xB80000  end=0xF55700 | Texture 900x600x1, 10 levels, 1 samples,
> r8g8b8a8_unorm
> 65x32x1
> VM start=0x880000  end=0x889000 | Texture 65x32x1, 1 levels, 1 samples,
> r32g32b32a32_uint
> VM start=0x889000  end=0x899000 | Texture 65x32x1, 1 levels, 1 samples,
> r32g32b32a32_uint
> VM start=0x899000  end=0x899050 | Buffer 80 bytes
> VM start=0x89A000  end=0x8AA000 | Buffer 65536 bytes
> VM start=0x8AA000  end=0x8AA050 | Buffer 80 bytes
> VM start=0x8AB000  end=0x8B3200 | Buffer 33280 bytes
> VM start=0x8B4000  end=0x8BC200 | Buffer 33280 bytes
> VM start=0x8BD000  end=0x8BD0F8 | Buffer 248 bytes
> Stack dump:
> 0.	Running pass 'Function Pass Manager' on module 'tgsi'.
> 1.	Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function
> '@main'
> Segmentation fault (core dumped)
> 
> ---
> Running the same thing, but with gdb as "gdb --args
> /home/dema1701/projects/display/piglit/bin/texelFetch 140 vs usampler2DRect
> -auto -fbo" ends with a PASS:
> 
> Starting program: /home/dema1701/projects/display/piglit/bin/texelFetch 140
> vs usampler2DRect -auto -fbo
> warning: no loadable sections found in added symbol-file system-supplied DSO
> at 0x7ffff7ffa000
> warning: Could not load shared library symbols for linux-vdso.so.1.
> Do you need "set solib-search-path" or "set sysroot"?
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/usr/lib/libthread_db.so.1".
> [New Thread 0x7fffef6e5700 (LWP 7915)]
> VM start=0x800000  end=0x801000 | Buffer 4096 bytes
> VM start=0x801000  end=0x811000 | Buffer 65536 bytes
> VM start=0x811000  end=0x811010 | Buffer 16 bytes
> VM start=0x812000  end=0x812038 | Buffer 56 bytes
> VM start=0x813000  end=0x813038 | Buffer 56 bytes
> VM start=0x814000  end=0x814020 | Buffer 32 bytes
> VM start=0x815000  end=0x815028 | Buffer 40 bytes
> VM start=0x816000  end=0x816010 | Buffer 16 bytes
> ATTENTION: default value of option vblank_mode overridden by environment.
> VM start=0x817000  end=0x827000 | Buffer 65536 bytes
> VM start=0x827000  end=0x827010 | Buffer 16 bytes
> VM start=0x828000  end=0x828038 | Buffer 56 bytes
> VM start=0x829000  end=0x829038 | Buffer 56 bytes
> VM start=0x82A000  end=0x82A020 | Buffer 32 bytes
> VM start=0x82B000  end=0x82B028 | Buffer 40 bytes
> VM start=0x82C000  end=0x82C010 | Buffer 16 bytes
> VM start=0x830000  end=0x834000 | Texture 512x32x1, 1 levels, 1 samples,
> i8_unorm
> VM start=0x834000  end=0x844000 | Buffer 65536 bytes
> VM start=0x82D000  end=0x82D080 | Buffer 128 bytes
> VM start=0x82E000  end=0x82E020 | Buffer 32 bytes
> VM start=0x82F000  end=0x82F010 | Buffer 16 bytes
> VM start=0x848000  end=0x868000 | Texture 165x165x1, 1 levels, 1 samples,
> r8g8_unorm
> VM start=0x868000  end=0x87CA00 | Texture 165x165x1, 1 levels, 1 samples,
> r8g8_unorm
> VM start=0x844000  end=0x844078 | Buffer 120 bytes
> VM start=0x845000  end=0x845190 | Buffer 400 bytes
> VM start=0x846000  end=0x8466C0 | Buffer 1728 bytes
> VM start=0x847000  end=0x8473C0 | Buffer 960 bytes
> VM start=0x900000  end=0xB80000 | Texture 900x600x1, 1 levels, 1 samples,
> b8g8r8x8_unorm
> VM start=0xB80000  end=0xF55700 | Texture 900x600x1, 10 levels, 1 samples,
> r8g8b8a8_unorm
> 65x32x1
> VM start=0x880000  end=0x889000 | Texture 65x32x1, 1 levels, 1 samples,
> r32g32b32a32_uint
> VM start=0x889000  end=0x899000 | Texture 65x32x1, 1 levels, 1 samples,
> r32g32b32a32_uint
> VM start=0x899000  end=0x899050 | Buffer 80 bytes
> VM start=0x89A000  end=0x8AA000 | Buffer 65536 bytes
> VM start=0x8AA000  end=0x8AA050 | Buffer 80 bytes
> VM start=0x8AB000  end=0x8B3200 | Buffer 33280 bytes
> VM start=0x8B4000  end=0x8BC200 | Buffer 33280 bytes
> VM start=0x8BD000  end=0x8BD0F8 | Buffer 248 bytes
> VM start=0x8BE000  end=0x8BE040 | Buffer 64 bytes
> VM start=0xF56000  end=0x1056000 | Buffer 1048576 bytes
> VM start=0x8BF000  end=0x8BF038 | Buffer 56 bytes
> VM start=0x8C0000  end=0x8C00F8 | Buffer 248 bytes
> VM start=0x8C1000  end=0x8D1000 | Texture 65x32x1, 1 levels, 1 samples,
> r32g32b32a32_float
> [Thread 0x7fffef6e5700 (LWP 7915) exited]
> PIGLIT: {'result': 'pass' }
> [Inferior 1 (process 7911) exited normally]
Comment 8 Alexandre Demers 2013-11-22 03:55:14 UTC
I ran a different crashing texelFetch test and gdb gave me a segfault with a backtrace:

gdb --args /home/dema1701/projects/display/piglit/bin/texelFetch vs isampler2DArray b0r1 -auto -fbo
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/dema1701/projects/display/piglit/bin/texelFetch...done.
(gdb) run
Starting program: /home/dema1701/projects/display/piglit/bin/texelFetch vs isampler2DArray b0r1 -auto -fbo
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffef6e5700 (LWP 7984)]
VM start=0x800000  end=0x801000 | Buffer 4096 bytes
VM start=0x801000  end=0x811000 | Buffer 65536 bytes
VM start=0x811000  end=0x811010 | Buffer 16 bytes
VM start=0x812000  end=0x812038 | Buffer 56 bytes
VM start=0x813000  end=0x813038 | Buffer 56 bytes
VM start=0x814000  end=0x814020 | Buffer 32 bytes
VM start=0x815000  end=0x815028 | Buffer 40 bytes
VM start=0x816000  end=0x816010 | Buffer 16 bytes
ATTENTION: default value of option vblank_mode overridden by environment.
VM start=0x817000  end=0x827000 | Buffer 65536 bytes
VM start=0x827000  end=0x827010 | Buffer 16 bytes
VM start=0x828000  end=0x828038 | Buffer 56 bytes
VM start=0x829000  end=0x829038 | Buffer 56 bytes
VM start=0x82A000  end=0x82A020 | Buffer 32 bytes
VM start=0x82B000  end=0x82B028 | Buffer 40 bytes
VM start=0x82C000  end=0x82C010 | Buffer 16 bytes
VM start=0x830000  end=0x834000 | Texture 512x32x1, 1 levels, 1 samples, i8_unorm
VM start=0x834000  end=0x844000 | Buffer 65536 bytes
VM start=0x82D000  end=0x82D080 | Buffer 128 bytes
VM start=0x82E000  end=0x82E020 | Buffer 32 bytes
VM start=0x82F000  end=0x82F010 | Buffer 16 bytes
VM start=0x848000  end=0x868000 | Texture 165x165x1, 1 levels, 1 samples, r8g8_unorm
VM start=0x868000  end=0x87CA00 | Texture 165x165x1, 1 levels, 1 samples, r8g8_unorm
VM start=0x844000  end=0x844078 | Buffer 120 bytes
VM start=0x845000  end=0x845190 | Buffer 400 bytes
VM start=0x846000  end=0x8466C0 | Buffer 1728 bytes
VM start=0x847000  end=0x8473C0 | Buffer 960 bytes
VM start=0x900000  end=0xB80000 | Texture 900x600x1, 1 levels, 1 samples, b8g8r8x8_unorm
VM start=0xB80000  end=0xF55700 | Texture 900x600x1, 10 levels, 1 samples, r8g8b8a8_unorm
65x32x5
VM start=0x880000  end=0x8FC000 | Texture 65x32x5, 7 levels, 1 samples, r32g32b32a32_sint
VM start=0xF56000  end=0xF66000 | Texture 65x32x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0x8FC000  end=0x8FC050 | Buffer 80 bytes
VM start=0xF66000  end=0xF76000 | Buffer 65536 bytes
VM start=0x8FD000  end=0x8FD050 | Buffer 80 bytes
VM start=0x868000  end=0x878000 | Texture 65x32x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xF76000  end=0xF86000 | Texture 65x32x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xF86000  end=0xF96000 | Texture 65x32x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xF96000  end=0xFA6000 | Texture 65x32x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0x878000  end=0x87C000 | Texture 32x16x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0x87C000  end=0x880000 | Texture 32x16x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFA6000  end=0xFAA000 | Texture 32x16x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFAA000  end=0xFAE000 | Texture 32x16x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFAE000  end=0xFB2000 | Texture 32x16x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0x8FE000  end=0x900000 | Texture 16x8x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFB2000  end=0xFB4000 | Texture 16x8x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFB4000  end=0xFB6000 | Texture 16x8x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFB6000  end=0xFB8000 | Texture 16x8x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFB8000  end=0xFBA000 | Texture 16x8x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFBA000  end=0xFBB000 | Texture 8x4x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFBB000  end=0xFBC000 | Texture 8x4x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFBC000  end=0xFBD000 | Texture 8x4x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFBD000  end=0xFBE000 | Texture 8x4x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFBE000  end=0xFBF000 | Texture 8x4x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFBF000  end=0xFBF800 | Texture 4x2x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFC0000  end=0xFC0800 | Texture 4x2x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFC1000  end=0xFC1800 | Texture 4x2x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFC2000  end=0xFC2800 | Texture 4x2x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFC3000  end=0xFC3800 | Texture 4x2x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFC4000  end=0xFC4400 | Texture 2x1x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFC5000  end=0xFC5400 | Texture 2x1x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFC6000  end=0xFC6400 | Texture 2x1x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFC7000  end=0xFC7400 | Texture 2x1x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFC8000  end=0xFC8400 | Texture 2x1x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFC9000  end=0xFC9400 | Texture 1x1x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFCA000  end=0xFCA400 | Texture 1x1x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFCB000  end=0xFCB400 | Texture 1x1x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFCC000  end=0xFCC400 | Texture 1x1x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFCD000  end=0xFCD400 | Texture 1x1x1, 1 levels, 1 samples, r32g32b32a32_sint
VM start=0xFCE000  end=0x1003F70 | Buffer 221040 bytes
VM start=0x1004000  end=0x1039F70 | Buffer 221040 bytes
VM start=0x103A000  end=0x103A0F8 | Buffer 248 bytes

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff0442dd2 in llvm::InstrEmitter::EmitRegSequence(llvm::SDNode*, llvm::DenseMap<llvm::SDValue, unsigned int, llvm::DenseMapInfo<llvm::SDValue> >&, bool, bool) () from /usr/lib/libLLVM-3.3.so
(gdb) bt
#0  0x00007ffff0442dd2 in llvm::InstrEmitter::EmitRegSequence(llvm::SDNode*, llvm::DenseMap<llvm::SDValue, unsigned int, llvm::DenseMapInfo<llvm::SDValue> >&, bool, bool) () from /usr/lib/libLLVM-3.3.so
#1  0x00007ffff04453d1 in llvm::InstrEmitter::EmitMachineNode(llvm::SDNode*, bool, bool, llvm::DenseMap<llvm::SDValue, unsigned int, llvm::DenseMapInfo<llvm::SDValue> >&) () from /usr/lib/libLLVM-3.3.so
#2  0x00007ffff04be431 in llvm::ScheduleDAGSDNodes::EmitSchedule(llvm::MachineBasicBlock::bundle_iterator<llvm::MachineInstr, llvm::ilist_iterator<llvm::MachineInstr> >&) () from /usr/lib/libLLVM-3.3.so
#3  0x00007ffff051bd70 in llvm::SelectionDAGISel::CodeGenAndEmitDAG() () from /usr/lib/libLLVM-3.3.so
#4  0x00007ffff051d72a in llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) () from /usr/lib/libLLVM-3.3.so
#5  0x00007ffff051e9d8 in llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) ()
   from /usr/lib/libLLVM-3.3.so
#6  0x00007fffefc16a57 in llvm::FPPassManager::runOnFunction(llvm::Function&) () from /usr/lib/libLLVM-3.3.so
#7  0x00007fffefc16aeb in llvm::FPPassManager::runOnModule(llvm::Module&) () from /usr/lib/libLLVM-3.3.so
#8  0x00007fffefc16d1b in llvm::MPPassManager::runOnModule(llvm::Module&) () from /usr/lib/libLLVM-3.3.so
#9  0x00007fffefc18cfc in llvm::PassManagerImpl::run(llvm::Module&) () from /usr/lib/libLLVM-3.3.so
#10 0x00007ffff00f1a1e in ?? () from /usr/lib/libLLVM-3.3.so
#11 0x00007ffff00f1d65 in LLVMTargetMachineEmitToMemoryBuffer () from /usr/lib/libLLVM-3.3.so
#12 0x00007ffff1dd7dda in radeon_llvm_compile (M=0xb15590, binary=0x7fffffff40b0, gpu_family=0x7ffff1f06903 "cayman", dump=0)
    at radeon_llvm_emit.c:124
#13 0x00007ffff1dcf24d in r600_llvm_compile (mod=0xb15590, family=CHIP_CAYMAN, bc=0xb1be78, use_kill=0x7fffffffca8f "", 
    dump=0) at r600_llvm.c:835
#14 0x00007ffff1d3afe3 in r600_shader_from_tgsi (rscreen=0x63bb70, pipeshader=0xb1be60, key=...) at r600_shader.c:1120
#15 0x00007ffff1d380ef in r600_pipe_shader_create (ctx=0x61bb50, shader=0xb1be60, key=...) at r600_shader.c:129
#16 0x00007ffff1d5ee44 in r600_shader_select (ctx=0x61bb50, sel=0xb36710, dirty=0x0) at r600_state_common.c:746
#17 0x00007ffff1d5f052 in r600_create_shader_state (ctx=0x61bb50, state=0xb260d0, pipe_shader_type=0)
    at r600_state_common.c:793
#18 0x00007ffff1d5f0ba in r600_create_vs_state (ctx=0x61bb50, state=0xb260d0) at r600_state_common.c:809
#19 0x00007ffff1ab6ccd in st_translate_vertex_program (st=0x731420, stvp=0xb2c0f0, key=0x7fffffffde10)
    at state_tracker/st_program.c:388
#20 0x00007ffff1ab6ded in st_get_vp_variant (st=0x731420, stvp=0xb2c0f0, key=0x7fffffffde10)
    at state_tracker/st_program.c:426
#21 0x00007ffff1a79e0e in update_vp (st=0x731420) at state_tracker/st_atom_shader.c:153
#22 0x00007ffff1a745ce in st_validate_state (st=0x731420) at state_tracker/st_atom.c:202
#23 0x00007ffff1a80abf in st_Clear (ctx=0x73b080, mask=256) at state_tracker/st_cb_clear.c:396
#24 0x00007ffff1904056 in _mesa_Clear (mask=16384) at main/clear.c:202
#25 0x00007ffff7af21df in stub_glClear (mask=16384)
    at /home/dema1701/projects/display/piglit/tests/util/generated_dispatch.c:1935
#26 0x0000000000404b71 in piglit_display ()
    at /home/dema1701/projects/display/piglit/tests/texturing/shaders/texelFetch.c:928
#27 0x00007ffff7aeb593 in run_test (gl_fw=0x608010, argc=4, argv=0x7fffffffe188)
    at /home/dema1701/projects/display/piglit/tests/util/piglit-framework-gl/piglit_fbo_framework.c:52
#28 0x00007ffff7ae93a9 in piglit_gl_test_run (argc=4, argv=0x7fffffffe188, config=0x7fffffffe050)
    at /home/dema1701/projects/display/piglit/tests/util/piglit-framework-gl.c:191
#29 0x0000000000402b1b in main (argc=4, argv=0x7fffffffe188)
    at /home/dema1701/projects/display/piglit/tests/texturing/shaders/texelFetch.c:102
Comment 9 Alexandre Demers 2013-11-25 03:18:55 UTC
May be related to bug 68224
Comment 10 Alexandre Demers 2013-11-29 19:46:26 UTC
Disabling llvm (R600_LLVM=0) prevents the crash. So, I enabled it back, ran one of the test and had a coredump. I'll be attaching it in a moment.
Comment 11 Alexandre Demers 2013-11-29 20:17:11 UTC
Coredump with R600_LLVM=1 from running /home/dema1701/projects/display/piglit/bin/texelFetch vs isampler2DArray b0r1 -auto -fbo
65x32x5
Stack dump:
0.	Running pass 'Function Pass Manager' on module 'tgsi'.
1.	Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on function '@main'
Segmentation fault (core dumped)


Coredump can be downloaded from: https://drive.google.com/file/d/0Bw_tZdWsNa4BemdsVUV4UUktWFk/edit?usp=sharing
Comment 12 Alexandre Demers 2014-09-26 04:32:43 UTC
I don't remember seeing this error in the log file for a long time, so it must have been fixed at some point. Also, I will not be using a Cayman GPU anymore. I'm closing this bug. If someone hits it, they can reopen it.


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.