LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-04-2017, 02:31 AM   #1
dflavio
LQ Newbie
 
Registered: Mar 2017
Location: Zurich
Distribution: Slackware
Posts: 3

Rep: Reputation: Disabled
Slackware64 14.2, OpenGL issue: i965_dri.so segmentation fault


Dear all,

I am running Slackware64 14.2 (multilib) on a Thinkpad T460p with hybrid-graphics but using only the integrated intel GPU.

The outputs of lspci and uname -a are:
Code:
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)

Linux darkstar 4.4.38 #2 SMP Sun Dec 11 16:18:36 CST 2016 x86_64 Intel(R)
Core(TM) i7-6700HQ CPU @ 2.60GHz GenuineIntel GNU/Linux
I have installed octave (4.2.0) from SlackBuilds (using Intel MKL) and encountered some OpenGL issue. After interaction with a plotting window
octave crashes. A backtrace gives:

Code:
Thread 1 "octave-gui" received signal SIGSEGV, Segmentation fault.
0x00007f4ee2a644fb in ?? () from /usr/lib64/xorg/modules/dri/i965_dri.so
First, I thouht it might be an octave issue, but the same version under openSUSE live did not crash. Further, also glthreads -p crashes with a similar backtrace:

Code:
Thread 3 "glthreads" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffef47c700 (LWP 6001)]
0x00007ffff2ecf8d7 in ?? () from /usr/lib64/xorg/modules/dri/i965_dri.so
I suspect it's a mesa (intel driver, kernel...?) issue. Under slackware64-live-current, plthreads -p just works fine. But since I never used current before, I hesitate to switch due to the (I assume) additional maintenance effort. Thus, any help to get the issue resolved under 14.2 would be greatly appreciated.

Thanks in advance,
Flavio
 
Old 03-04-2017, 03:31 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
The intel mesa driver has been extremely hit or miss depending on your hardware. During the development of 14.2 many versions were tried and it seemed like there was always someone with an issue when it fixed other peoples' issues. It might be worth grabbing the source for the intel driver from -current and build it on your system and upgrade the package to see if it fixes the problem. If it does, you can simply blacklist that package to ensure you don't accidentally "upgrade" it using slackpkg to the stock version.
 
Old 03-06-2017, 04:02 AM   #3
dflavio
LQ Newbie
 
Registered: Mar 2017
Location: Zurich
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the input.

I have upgraded mesa to the version from -current (which also required upgrade of libedit, llvm and libclc). The good thing is that the octave issue seems to be resolved, but glthreads -p still crashes as before. Which other packages may I need to upgrade too?
 
Old 03-06-2017, 07:14 AM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I actually intended for you to upgrade the xf86-video-intel driver, not mesa itself (since that can include a lot of extra dependencies that need to be upgraded as well... as you saw). Forum member atelszewski created a few scripts to help minimize the effort in upgrading that driver.
 
Old 03-06-2017, 12:18 PM   #5
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Here are a few things you can try:

1. Try the modesetting ddx instead of xf86-video-intel and / or DRI3 instead of DRI2.
2. Try compiling libdrm and mesa from the git master.
3. Try compiling them with debugging symbols and get a backtrace with gdb. Report this to mesa devs @ #dri-devel and / or #intel-gfx @ freenode. The more willing you are to debug your issue the more likely someone will help there.
4. Also install apitrace from SBo and follow the documentation at their github wiki to make a GL trace of the issue and include this with the backtrace for when reporting upstream.

Alternately just accept that concurrent GL threads is not a very smart idea currently and try to not use anything that blows up your GL. Fwiw glthreads -p brought nouveau to its knees on my system when I tried it, enough that I opted to ssh in from another device and reboot.
 
Old 03-08-2017, 09:58 AM   #6
dflavio
LQ Newbie
 
Registered: Mar 2017
Location: Zurich
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: Disabled
OK, as already mentioned upgrading mesa to version 13.0.4 seems to prevent octave from crashing, which was my main concern.

However, upgrading the xf86-video-intel driver to the latest version (xf86-video-intel-git_20170228_78d7a09-x86_64-1) did not prevent plthreads -p from crashing. Hence, I also upgraded libdrm to -current which did not help either. Only also enabling option DRI 3 kept glthreads from crashing.

Although I don't understand why updating xf86-video-intel, mesa, libdrm to -current is not enough to prevent plthread from crashing, given that it runs under slackware64-current-live without problems, I consider the issue as resolved.

Thanks again for your help!

Best,
Flavio
 
Old 03-08-2017, 12:41 PM   #7
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
My understanding is that intel devs prefer the modesetting ddx now included with xorg-server and DRI3, so less developers are working on xf86-video-intel and DRI2 despite that most distros still default to them, I've seen this lead to some hard to diagnose bugs when using certain combinations of xf86-video-* and DRI2/3.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware64 14.1 Bumblebee issue: primusrun fails with segmentation fault pcxt21 Slackware 5 04-19-2015 02:15 PM
[SOLVED] OpenGL Segmentation fault flyinggeorge Linux - Newbie 1 06-12-2013 03:06 AM
Spotify segmentation fault on Slackware64 14.0 stahlkrantz Slackware 8 06-11-2013 02:10 AM
smbtree Segmentation Fault (Slackware64-Current) Jack128 Slackware 1 04-04-2010 03:56 AM
Slackware64 13.0 finger segmentation fault hithere Slackware 2 03-06-2010 05:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration