Bug 103838 - Random segfaults in applications from radeonsi_dri.so
Summary: Random segfaults in applications from radeonsi_dri.so
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: 17.3
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-21 23:15 UTC by Alex Ford
Modified: 2018-01-23 01:37 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
A snippet from /var/log/messages (4.23 KB, text/plain)
2017-11-21 23:15 UTC, Alex Ford
Details
The crash log from the Java application ( a minecraft modpack) (188.97 KB, text/plain)
2017-11-21 23:16 UTC, Alex Ford
Details
The application log from the game hackmud (the Unity application) (12.30 KB, text/plain)
2017-11-21 23:17 UTC, Alex Ford
Details

Description Alex Ford 2017-11-21 23:15:14 UTC
Created attachment 135652 [details]
A snippet from /var/log/messages

Starting sometime after 17.2.5, all 17.3.0_rc versions I've tried have caused some applications to crash randomly. On occasion an application will take longer to crash, but it almost always does.

My graphics card reports as Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon RX 550] (rev c7)

My distro is Gentoo ~AMD64, and my mesa flags are "classic d3d9 dri3 egl gallium gbm gles2 llvm nptl opencl osmesa wayland"

I almost never see anything in dmesg or /var/log/messages, with the exception of a few messages that are attached.

I should add that it seems to only be the application that crashes, I have not noticed any ill effects on any other part of my system. In addition, it does not seem to be application or even language dependant, having noticed it in a Unity game (which is C#) and a Java game.

To reproduce it, I simply start the application and begin using it, after some time it will simply crash.
Comment 1 Alex Ford 2017-11-21 23:16:28 UTC
Created attachment 135653 [details]
The crash log from the Java application ( a minecraft modpack)
Comment 2 Alex Ford 2017-11-21 23:17:03 UTC
Created attachment 135654 [details]
The application log from the game hackmud (the Unity application)
Comment 3 Nicolai Hähnle 2017-11-27 10:36:06 UTC
Thanks for the report. Maybe try a clean rebuild?

Failing that, please provide a backtrace with debug symbols, otherwise there's no hope of fixing this if it is a real bug.
Comment 4 Alex Ford 2017-11-29 01:54:20 UTC
Alright, I rebuilt mesa with debug symbols, and I got the following from gdb (along with a bunch of useless stuff regarding threads)

dri2_allocate_textures (ctx=0x274f950, drawable=<optimized out>, statts=<optimized out>, statts_count=2)
    at /var/tmp/portage/media-libs/mesa-17.3.0_rc5/work/mesa-17.3.0-rc5/src/gallium/state_trackers/dri/dri2.c:675


This is with mesa 17.3.0_rc5
Comment 5 Alex Ford 2018-01-23 01:37:10 UTC
This bug seems to have completely vanished in 17.3.3


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.