Bug 65085 - [radeonsi LLVM] Segfault during OpenCL kernel compilation
Summary: [radeonsi LLVM] Segfault during OpenCL kernel compilation
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (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-05-28 15:43 UTC by Niels Ole Salscheider
Modified: 2013-11-16 02:26 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Kernel that causes the segfault (476 bytes, text/plain)
2013-05-28 15:43 UTC, Niels Ole Salscheider
Details
Patch to work around the issue (728 bytes, patch)
2013-05-28 15:43 UTC, Niels Ole Salscheider
Details | Splinter Review
Full backtrace (43.98 KB, text/plain)
2013-05-28 15:44 UTC, Niels Ole Salscheider
Details

Description Niels Ole Salscheider 2013-05-28 15:43:05 UTC
Created attachment 79901 [details]
Kernel that causes the segfault

I get a segmentation fault in LLVM with Tom Stellard's recent radeonsi compute patches (http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130520/175743.html) with the attached kernel.

I can work around the issue when executing the if-block in the kernel unconditionally or with the attached patch to LLVM.
Desc.OpInfo[0].RegClass equals -1 when the segmentation fault occurs.
Comment 1 Niels Ole Salscheider 2013-05-28 15:43:39 UTC
Created attachment 79903 [details] [review]
Patch to work around the issue
Comment 2 Niels Ole Salscheider 2013-05-28 15:44:07 UTC
Created attachment 79904 [details]
Full backtrace
Comment 3 Tom Stellard 2013-11-16 02:26:42 UTC
This is working for me with the latest LLVM code.  Please re-open if it is not working for you.


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.