LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-13-2018, 01:20 PM   #1
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: Slackware
Posts: 160

Rep: Reputation: 29
ImageMagick OpenCL hard lockup on Slackware64-current


I am seeing a hard lockup on Slackware64-current when I run ImageMagick "convert" to convert a png file to pdf.

Using strace, the last lines I see are a few ioctl () calls to my Radeon card, then a mmap () to the Radeon, and then the system locks up. This appears to be an OpenCL bug.

I worked around the bug by disabling OpenCL:

export MAGICK_OCL_DEVICE=OFF

I'm not sure I can debug this further. It may be safer to build ImageMagick without OpenCL support.
Ed

Last edited by EdGr; 04-13-2018 at 05:41 PM.
 
Old 04-13-2018, 03:11 PM   #2
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,215

Rep: Reputation: Disabled
First thing you could do to debug this further is to ssh from a different device and then as root do `dmesg -w`. Now you can lock up your system and hopefully the issue will be printed to dmesg on your other device.
 
Old 04-13-2018, 04:28 PM   #3
gus3
Member
 
Registered: Jun 2014
Distribution: Slackware (x86 and ARM)
Posts: 115

Rep: Reputation: Disabled
A hard lockup might block sshd, the shell, and dmesg from running. However, a kernel-level view of the system log is possible, using Linux's netconsole capability. I have a tutorial here:

https://mindplusplus.wordpress.com/2010/03/06/using-netconsole-on-linux/

(raw link in case LQ.org blocks the HTML link, also for transparency)
 
Old 04-13-2018, 05:16 PM   #4
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: Slackware
Posts: 160

Original Poster
Rep: Reputation: 29
Thanks for the suggestions!

I am not going to tickle this bug further since I don't like to restore the system from backups.

I noted that the lockup was very sudden: I lost the keyboard, mouse, and ssh from another machine all at once. The system did not sync the disks, blink the LEDs, or leave any clues in /var/log/messages. The kernel did not seem to recognize that it was crashing.

ETA: as usual, I am running a custom kernel which is identical to the generic kernel except that it does not require an initrd.
Ed

Last edited by EdGr; 04-13-2018 at 05:42 PM.
 
Old 04-13-2018, 05:51 PM   #5
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,215

Rep: Reputation: Disabled
Quote:
Originally Posted by gus3 View Post
A hard lockup might block sshd, the shell, and dmesg from running.
This is why you run dmesg before the lockup. It should print anything that happens before the lockup with the '-w' option.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Brightness function keys not working on Slackware64 & Slackware64 current Andersen Slackware 7 01-15-2018 04:27 AM
Slackware64 14.1 Runaway Lockup? slackerboy Slackware 9 06-28-2015 12:46 PM
wine1.7.33 ./configure openCL Slackware64 RyuKim Slackware 11 12-30-2014 03:33 PM
how to install/enable Nvidia OpenCL in Slackware64 13.1? linuxs64 Slackware 2 11-23-2010 08:33 PM
Updating from Slackware64-current to Slackware64 13. glore2002 Slackware 4 08-28-2009 06:50 PM

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

All times are GMT -5. The time now is 08:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration