LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-28-2012, 08:02 AM   #1
lemmens
LQ Newbie
 
Registered: Jan 2005
Location: netherlands
Distribution: slackware64 13.37 + current
Posts: 22

Rep: Reputation: 1
Unhappy Slackware 14.0 RC : KDE kwin keeps crashing at startup


Hi,

Upgraded a 13.37 system in KVM/QEMU to 14.00 using slackpkg and tried to login into KDE. It first seems to start fine, but after having seen the first 5 icons kwin seems to crash and I endup with 3 crash dumps (one from kdeinit4 and 2 from kwin) and a suggestion to use fvwm2 instead.

I then tried the following :

1) Created a new VM on KVM/AQEMU and made a fresh install from a 14.00 ISO. Same problem when trying to start KDE/kwin (both as root and as ordinary user).

2) I then tried to use Xrender instead of OpenGL : Same problem.

3) I then tried to use remote X session using XDMCP and Xephyr on the host computer : Same problem.

4) I then tried a fresh install of 14.00 on Virtualbox. Guess : same problem !

5) I then tried a suggestion I found elsewhere and added

[Compositing]
OpenGLIsUnsafe=true

to ~/.kde/share/config/kwinrc

Same problem.

I am already struggling with this for a day now and am out of tricks/ideas. Anyone who has a solution/workaround for this ?

If I can't get this working we cannot upgrade our Slackware 13.37 to Slackware 14.00 as a reliable KDE is crucial for us.

Thanks !
Kees L.
 
Old 08-28-2012, 08:05 AM   #2
StreamThreader
Member
 
Registered: Mar 2012
Location: Ukraine/Odesa
Distribution: Skackware
Posts: 74

Rep: Reputation: 5
Maybe same problem in virtualbox?
http://www.linuxquestions.org/questi...ox-4175424258/
 
Old 08-28-2012, 08:32 AM   #3
lemmens
LQ Newbie
 
Registered: Jan 2005
Location: netherlands
Distribution: slackware64 13.37 + current
Posts: 22

Original Poster
Rep: Reputation: 1
No, if it is the same problem it should work using Xephyr / XDMCP unless this combination suffers from the same problem as the virtual machines. IS there anyone with a working KDE/Slack 14 who can confirm that Xephyr / XDMCP works fine for them or not ?

BTW: I also tried a Debian Wheezy install on the same KVM/QEMU and there KDE works fine. Wheezy has Qt 4.8.2 and Kwin 4.8.4 which is virtually the same as in Slackware 14 (Qt 4.8.2 and Kwin 4.8.5) so it is either the minor update to 4.8.5 or something specific inside Slackware that causes these crashes.
 
Old 08-28-2012, 10:44 AM   #4
lemmens
LQ Newbie
 
Registered: Jan 2005
Location: netherlands
Distribution: slackware64 13.37 + current
Posts: 22

Original Poster
Rep: Reputation: 1
Small update :

I now installed Slack 14 on a real computer system (old P4) and this time KDE works fine !!!

So, the problem seems to be related only to Virtual machines, but imo it can not be a problem of the Xserver
or else it should work if using a remote Xserver to connect using XDMCP as I did using Xephyr but correct me if you think I am wrong ...

Anyway : Kwin crashes on these virtual machines in memcpy_sse2 with a segmentation fault and that is imo not related to anything that has to do with Compositing.

Thread 1 (Thread 0x7f57a6e7d7c0 (LWP 2693)):
[KCrash Handler]
#5 0x00007f579f7898b1 in __memcpy_sse2 () from /lib64/libc.so.6
#6 0x00007f57a36a4286 in ?? () from /usr/lib64/qt/lib/libQtScript.so.4
#7 0x00007f57a36a1dde in ?? () from /usr/lib64/qt/lib/libQtScript.so.4
#8 0x00007f57a36b769c in ?? () from /usr/lib64/qt/lib/libQtScript.so.4
#9 0x00007f57a36b3b53 in ?? () from /usr/lib64/qt/lib/libQtScript.so.4
#10 0x00007f57a3700518 in ?? () from /usr/lib64/qt/lib/libQtScript.so.4
#11 0x00007f57a3700bcc in ?? () from /usr/lib64/qt/lib/libQtScript.so.4
#12 0x00007f57a37a1030 in ?? () from /usr/lib64/qt/lib/libQtScript.so.4
#13 0x00007f57a37a2026 in QScriptEngine::QScriptEngine() () from /usr/lib64/qt/lib/libQtScript.so.4
#14 0x00007f57a6a485fd in ?? () from /usr/lib64/libkdeinit4_kwin.so
#15 0x00007f57a69d7bc5 in kdemain () from /usr/lib64/libkdeinit4_kwin.so
#16 0x00007f579f71ba95 in __libc_start_main () from /lib64/libc.so.6
 
Old 08-28-2012, 12:53 PM   #5
tomac.pl
LQ Newbie
 
Registered: Aug 2012
Location: Oświęcim/Gliwice, Poland
Distribution: Slackware64 14.1, Debian Sid
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by lemmens View Post
Small update :

Anyway : Kwin crashes on these virtual machines in memcpy_sse2 with a segmentation fault and that is imo not related to anything that has to do with Compositing.

Thread 1 (Thread 0x7f57a6e7d7c0 (LWP 2693)):
[KCrash Handler]
#5 0x00007f579f7898b1 in __memcpy_sse2 () from /lib64/libc.so.6
#6 0x00007f57a36a4286 in ?? () from /usr/lib64/qt/lib/libQtScript.so.4
#7 0x00007f57a36a1dde in ?? () from /usr/lib64/qt/lib/libQtScript.so.4
#8 0x00007f57a36b769c in ?? () from /usr/lib64/qt/lib/libQtScript.so.4
#9 0x00007f57a36b3b53 in ?? () from /usr/lib64/qt/lib/libQtScript.so.4
#10 0x00007f57a3700518 in ?? () from /usr/lib64/qt/lib/libQtScript.so.4
#11 0x00007f57a3700bcc in ?? () from /usr/lib64/qt/lib/libQtScript.so.4
#12 0x00007f57a37a1030 in ?? () from /usr/lib64/qt/lib/libQtScript.so.4
#13 0x00007f57a37a2026 in QScriptEngine::QScriptEngine() () from /usr/lib64/qt/lib/libQtScript.so.4
#14 0x00007f57a6a485fd in ?? () from /usr/lib64/libkdeinit4_kwin.so
#15 0x00007f57a69d7bc5 in kdemain () from /usr/lib64/libkdeinit4_kwin.so
#16 0x00007f579f71ba95 in __libc_start_main () from /lib64/libc.so.6
I got the same error on real laptop when trying to run Stellarium. The problem started to occur after upgrade to RC3. I built the most recent version of Stellarium (0.11.4a), but got the same error (stacktrace with Stellarium's output before it):

Code:
Loaded 85 / 85 constellation art records successfully for culture "western" 
Loaded 89 / 89 constellation names 
Loading constellation boundary data ...  
Loaded 782 constellation boundary segments 
[New Thread 0x7fffdf4cc700 (LWP 16669)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4f9b8b1 in __memcpy_sse2 () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff4f9b8b1 in __memcpy_sse2 () from /lib64/libc.so.6
#1  0x00007ffff7702286 in ?? () from /usr/lib64/libQtScript.so.4
#2  0x00007ffff76ffdde in ?? () from /usr/lib64/libQtScript.so.4
#3  0x00007ffff771569c in ?? () from /usr/lib64/libQtScript.so.4
#4  0x00007ffff7711b53 in ?? () from /usr/lib64/libQtScript.so.4
#5  0x00007ffff775e518 in ?? () from /usr/lib64/libQtScript.so.4
#6  0x00007ffff775ebcc in ?? () from /usr/lib64/libQtScript.so.4
#7  0x00007ffff77ff030 in ?? () from /usr/lib64/libQtScript.so.4
#8  0x00007ffff7800026 in QScriptEngine::QScriptEngine() ()
   from /usr/lib64/libQtScript.so.4
#9  0x000000000069d8d2 in StelScriptMgr::StelScriptMgr(QObject*) ()
#10 0x000000000068e06c in StelMainGraphicsView::init(QSettings*) ()
#11 0x0000000000691471 in StelMainWindow::init(QSettings*) ()
#12 0x0000000000503869 in main ()
Downgrading Qt package to 4.8.2-1 version did help. I suspect it either shows some hidden bug in Stellarium, or a bug in JIT patch to Qt library - though I cannot give any proofs apart from the stacktrace and the fact that downgrading Qt package helped. When searching for the reason of this error I found that Debian folks also had a similar problem, and it turned out to be caused by some patch related to JIT in Qt library:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685524

There are suggestions that it may be related to CPU family or video card - while they reported to encounter the error on machines with Intel video card and Intel Core 2 CPUs, my laptop has AMD Turion 64 ML-34 CPU and ATI Radeon Xpress 200M integrated video card.
 
Old 08-30-2012, 04:31 AM   #6
lemmens
LQ Newbie
 
Registered: Jan 2005
Location: netherlands
Distribution: slackware64 13.37 + current
Posts: 22

Original Poster
Rep: Reputation: 1
FYI : I also installed Debian Wheezy on the same KVM/Qemu virtual machine. Debian Wheezy has the same QT and KDE major version numbers and there I don't see any problems with kwin. As this is the same hardware I don't expect it to be a a (virtual) hardware issue. Only possiblility could be that the compiler options used on Slack and Debian may have been slightly different ?

Tomac: In the thread you mention it seems that Qt was fixed : it may be a good idea to include this updated minor release of QT in Slackware 14.0 final ?

Quote:
From: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
To: 685524-close@bugs.debian.org
Subject: Bug#685524: fixed in qt4-x11 4:4.8.2+dfsg-2
Date: Mon, 27 Aug 2012 22:18:46 +0000

Source: qt4-x11
Source-Version: 4:4.8.2+dfsg-2

We believe that the bug you reported is fixed in the latest version of
qt4-x11, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 685524@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org> (supplier of updated qt4-x11 package)
 
Old 08-30-2012, 05:17 AM   #7
lemmens
LQ Newbie
 
Registered: Jan 2005
Location: netherlands
Distribution: slackware64 13.37 + current
Posts: 22

Original Poster
Rep: Reputation: 1
WOW !

I increased the amount of memory in the virtual machine to 3 GB and everything works fine now !!! No more nasty kwin crashes !

This was suggested in the thread that tomac pointed out and I just thought let's give it a try. So, the bug in this version of Qt only becomes apparent for systems with limited memory, no matter if they are virtual or not.

I consider the problem as solved, although it may be worth to include an improved version of Qt in the final release of Slack.

Thanks for reading/replying, especially Tomac.pl
 
Old 08-30-2012, 06:06 AM   #8
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
I get those crashes on a laptop every time I try to start KDE. This thing started after the last update to KDE 14.0RC3
 
Old 08-30-2012, 03:34 PM   #9
tomac.pl
LQ Newbie
 
Registered: Aug 2012
Location: Oświęcim/Gliwice, Poland
Distribution: Slackware64 14.1, Debian Sid
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by lemmens View Post
FYI : I also installed Debian Wheezy on the same KVM/Qemu virtual machine. Debian Wheezy has the same QT and KDE major version numbers and there I don't see any problems with kwin. As this is the same hardware I don't expect it to be a a (virtual) hardware issue. Only possiblility could be that the compiler options used on Slack and Debian may have been slightly different ?

Tomac: In the thread you mention it seems that Qt was fixed : it may be a good idea to include this updated minor release of QT in Slackware 14.0 final ?
From the Debian thread, and from the changelog of qt4-x11 source package, it looks like they decided to remove Fix-JIT-crash-on-x86-64-avoid-32-bit-branch-offset-o patch from the Debian package:

http://packages.debian.org/changelog...sg-2/changelog

So actually, it wasn't the matter of an update to QT library, but of removing a patch that was previously applied to it.

I think this could be the reason why it works on Debian Wheezy - however, I don't know if the QT4 packages with this patch ever reached Wheezy or if they stayed in Debian Sid only.

I compared patches used to fix JIT issue in Debian and Slackware. I found them under the following locations:

Slackware patch: ftp://ftp.slackware.pl/pub/slackware....crash.diff.gz

Debian patch: http://anonscm.debian.org/gitweb/?p=...1fef79566caf64 - can be found through the history of qt4-x11 package at: http://anonscm.debian.org/gitweb/?p=....git;a=summary

Both patches contain changes made to the same set of source files - however, the order of files is different in them, making it bit difficult to compare them. After sorting files in both patches (sorted versions in attachment) and comparing their contents, it looks like they are essentially the same - the Debian one seems to contain some hints at "@@" lines (not sure what they exactly are). So, in my opinion, the problems that Debian folks encountered were caused by essentially the same patch as the one used in Slackware. After removing the patch from Debian package, issues didn't occur anymore for them.

On the other hand, the patch itself fixes some other issues, so probably making decision whether this patch should stay or not won't be an easy one :|
Attached Files
File Type: txt debian-patch.txt (9.8 KB, 5 views)
File Type: txt slackware-patch.txt (8.9 KB, 9 views)

Last edited by tomac.pl; 08-30-2012 at 03:47 PM.
 
  


Reply

Tags
kdecrash, kdeinit4


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
[SOLVED] Kmail crashing in Slackware current with KDE 4.7.3 saivnoba Slackware 2 11-12-2011 07:05 PM
how to install kwin decoration slackware 12.1 kde 3.5.9 pauledwards03 Linux - Software 11 09-05-2008 11:36 PM
KDE sound system crashing with SIGSEGV, slackware-current, 2.6.17.13 StarsAndBars14 Linux - Desktop 0 03-09-2007 07:40 PM
Kwin keeps crashing DaBlade Linux - Software 0 08-12-2005 04:24 PM
Slackware 9.1 Linux Crashing? KDE Lord Vance Linux - Software 1 02-25-2004 11:56 AM


All times are GMT -5. The time now is 03:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration