LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Dolphin crashes (https://www.linuxquestions.org/questions/slackware-14/dolphin-crashes-841783/)

eddygrinder 11-01-2010 06:47 PM

Dolphin crashes
 
Hi,
I've installed slackware64 up to date and have a annoying problem:
Dolphin crashes many times. As i'm sick of it, i decide to call for help.
Here is some debug info
************************************

Application: Dolphin (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#6 0x00007faa18e95ad4 in ?? () from /usr/lib64/libdbus-1.so.3
#7 0x00007faa18ea745d in ?? () from /usr/lib64/libdbus-1.so.3
#8 0x00007faa18e9949e in ?? () from /usr/lib64/libdbus-1.so.3
#9 0x00007faa26aa48e3 in ?? () from /usr/lib64/qt/lib/libQtDBus.so.4
#10 0x00007faa26781953 in QObject::event(QEvent*) () from /usr/lib64/qt/lib/libQtCore.so.4
#11 0x00007faa2569979c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt/lib/libQtGui.so.4
#12 0x00007faa2569fc8b in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt/lib/libQtGui.so.4
#13 0x00007faa2774c636 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#14 0x00007faa26771f0c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt/lib/libQtCore.so.4
#15 0x00007faa2679ec82 in ?? () from /usr/lib64/qt/lib/libQtCore.so.4
#16 0x00007faa2679b7f8 in ?? () from /usr/lib64/qt/lib/libQtCore.so.4
#17 0x00007faa2163af9e in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#18 0x00007faa2163e958 in ?? () from /usr/lib64/libglib-2.0.so.0
#19 0x00007faa2163ea80 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#20 0x00007faa2679b4c3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#21 0x00007faa257486ce in ?? () from /usr/lib64/qt/lib/libQtGui.so.4
#22 0x00007faa26770832 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#23 0x00007faa26770c0c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#24 0x00007faa2677589b in QCoreApplication::exec() () from /usr/lib64/qt/lib/libQtCore.so.4
#25 0x00007faa19f2387f in kdemain () from /usr/lib64/libkdeinit4_dolphin.so
#26 0x0000000000407ca6 in _start ()
************************+

Thx a lot
EddY

allend 11-01-2010 07:30 PM

Had you tried the "Search this Forum", you would have found this
http://www.linuxquestions.org/questi...urrent-832297/

eddygrinder 11-01-2010 07:39 PM

Quote:

Originally Posted by allend (Post 4146302)
Had you tried the "Search this Forum", you would have found this
http://www.linuxquestions.org/questi...urrent-832297/

Hi,
Yes, i've searched and i've read.
The 1st thing that i did was to click on find "similar threads" button.

I'm using Slackware64 and i can't find dbus>=1.3 for slack64

I'm using kdexxx-4.5.2-x86_64-1alien

Must wait for new version of DBUS? If so, sorry for my mistake and some Administrator erase this thread, please! I could't understand if that thread was for slack or slack64...

Thx
EddY

allend 11-01-2010 09:13 PM

Official Slackware still has dbus-1.2.
You need to download the source dbus-1.3.1.tar.gz from here http://cgit.freedesktop.org/dbus/dbus/ into a new subdirectory somewhere called dbus-1.3.1
Add to this subdirectory these files from your Slackware install disk or a mirror
source/a/dbus/dbus.SlackBuild
source/a/dbus/doinst.sh.gz
source/a/dbus/rc.messagebus.gz
source/a/dbus/slack-desc

Edit dbus.SlackBuild
Change line 62 so it reads
Quote:

tar xvf $CWD/$PKGNAM-$VERSION.tar.gz || exit 1
and comment out line 71 so it reads
Quote:

# zcat $CWD/dbus-1.2.x-allow_root_globally.diff.gz | patch -p1 --verbose || exit 1
Open a terminal and do 'su -'
cd to the directory containing the files
'chmod +x dbus.SlackBuild'
'BUILD="1_eddy" ./dbus.SlackBuild'

After the package is built, do
'upgradepkg /tmp/dbus-1.3.1-x86_64-1_eddy.txz

Note: These instructions will not work for dbus-1.4 as there is no configure available. Looks like cmake is the way to go here.

mlangdn 11-01-2010 09:49 PM

I just downloaded dbus-1.4 and it does have a configure script. Now to reboot and see if there is a problem.

mlangdn 11-01-2010 09:59 PM

Seems to be just fine!

allend 11-02-2010 12:24 AM

I have just added another entry to my list of cockups for this week.
I will try another download of dbus-1.4.

allend 11-02-2010 09:51 AM

dbus-1.4.0 has an autogen.sh script instead of configure.
This dbus.SlackBuild is working for me.
Code:

#!/bin/sh

# Copyright 2007-2010  Robby Workman, Northport, Alabama, USA
# Copyright 2007-2010  Patrick Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PKGNAM=dbus
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | cut -d - -f 2 | rev | cut -f 3- -d . | rev)}
BUILD=${BUILD:-2}

NUMJOBS=${NUMJOBS:-" -j7 "}

# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) export ARCH=i486 ;;
    arm*) export ARCH=arm ;;
    # Unless $ARCH is already set, use uname -m for all other archs:
      *) export ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-$PKGNAM

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf $PKGNAM-$VERSION
tar xvzf $CWD/$PKGNAM-$VERSION.tar.gz || exit 1
cd $PKGNAM-$VERSION || exit 1
chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

# zcat $CWD/dbus-1.2.x-allow_root_globally.diff.gz | patch -p1 --verbose || exit 1

# dbus-1.4.0 has autogen.sh instead of configure
#./configure \
# The following two options are no longer recognized. Both shared and static libraries are built.
#  --enable-shared=yes \
#  --enable-static=no \

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./autogen.sh \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --infodir=/usr/info \
  --docdir=/usr/doc/$PKGNAM-$VERSION \
  --enable-tests=no \
  --enable-ansi=no \
  --enable-verbose-mode=no \
  --enable-asserts=no \
  --enable-xml-docs=no \
  --enable-doxygen-docs=no \
  --enable-selinux=no \
  --enable-libaudit=no \
  --enable-dnotify=no \
  --enable-inotify \
  --with-system-pid-file=/var/run/dbus/dbus.pid \
  --with-system-socket=/var/run/dbus/system_bus_socket \
  --with-init-scripts=slackware \
  --build=$ARCH-slackware-linux

make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG

find $PKG | xargs file | grep -e "executable" -e "shared object" \
  | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null

( cd $PKG/usr/man
  find . -type f -exec gzip -9 {} \;
  for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)

# Install a custom init script for dbus - the included one is not good for us
rm $PKG/etc/rc.d/*
zcat $CWD/rc.messagebus.gz > $PKG/etc/rc.d/rc.messagebus.new
chmod 0755 $PKG/etc/rc.d/rc.messagebus.new

# Let's not clobber existing config files
mv $PKG/etc/dbus-1/session.conf $PKG/etc/dbus-1/session.conf.new
mv $PKG/etc/dbus-1/system.conf $PKG/etc/dbus-1/system.conf.new

# Fix some directory ownership
chown messagebus $PKG/var/lib/dbus

# Add documentation
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
cp -a \
  AUTHORS COPYING HACKING INSTALL NEWS README doc/*.{txt,html,dtd} \
  $PKG/usr/doc/$PKGNAM-$VERSION
find $PKG/usr/doc/$PKGNAM-$VERSION -type f -exec chmod 644 {} \;

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz


2handband 11-02-2010 10:00 AM

If Dolphin launched on my computer, I'd crash it as soon as I could! Sorry, just had to say it... I really do hope you get it fixed.

eddygrinder 11-02-2010 01:51 PM

Hi,
Thx for your reply, i've just compiled dbus-1.4 and now i'm gonna try dolphin...

I'll give feedback soon...

Thx once again!


All times are GMT -5. The time now is 08:05 PM.