You are not logged in.

#1 2009-08-19 13:54:42

frojnd
Member
Registered: 2008-09-20
Posts: 125

Backtrace incomplete despite compiling with ABS

I got my first Kopete crash and I thougt why not help to improve it. But when I was looking at the backtrace I saw the lines that were repeating:

#43 0xb69dc6c5 in ?? () from /usr/lib/libQtGui.so.4

I'll post the entire backtrace at the end.
So I clicked on the: How to create useful crash reports: http://techbase.kde.org/Development/Tut … E_packages And since there was no instructions for Arch, I've searched the wiki and I found: http://wiki.archlinux.org/index.php/Deb … ing_Traces I have also red the ABS wiki section at: http://wiki.archlinux.org/index.php/ABS

And then it was typing time:

First I had to find out which package does /usr/lib/libQtGui.so.4 belong to:

# pacman -Qo /usr/lib/libQtGui.so.4

The output was: /usr/lib/libQtGui.so.4 is owned by qt 4.5.2-6

So it belongs to "qt". Since the package "qt" is in the official ABS tree I used ABS to find it's name:

# find /var/abs/ -name "qt"

And the output was: /var/abs/extra/qt

I followed the backtrace guide

# cp -r /var/abs/extra/qt /mnt/sda5/frojnd/build/qt

After that I chmoded the new location:

# chmod -R frojnd:users /mnt/sda5/frojnd/build/qt

So I was able in the following step to execute the command as normal user:

makepkg

I did this in the  /mnt/sda5/frojnd/build/qt as normal user.

The compile time last about 2h and than it finished. I just had to run:

# pacman -U qt-4.5.2-6-i686.pkg.tar.gz

/etc/makepkg file

#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
          'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
          'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
          'rsync::/usr/bin/rsync -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/curl

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="i686"
CHOST="i686-pc-linux-gnu"

#-- Exclusive: will only run on i686
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-g -march=i686 -mtune=generic -O2 -pipe"
CXXFLAGS="-g -march=i686 -mtune=generic -O2 -pipe"
#LDFLAGS=""
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(fakeroot !distcc color !ccache)
#  A negated environment option will do the opposite of the comments below.
#
#-- fakeroot: Allow building packages as a non-root user
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#
BUILDENV=(fakeroot !distcc color !ccache)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
#  A negated option will do the opposite of the comments below.
#
#-- strip:     Strip symbols from binaries/libraries in STRIP_DIRS
#-- docs:      Save doc directories specified by DOC_DIRS
#-- libtool:   Leave libtool (.la) files in packages
#-- emptydirs: Leave empty directories in packages
#-- zipman:    Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge:     Remove files specified by PURGE_TARGETS
#
OPTIONS=(!strip !docs libtool emptydirs zipman purge)

#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Directories to be searched for the strip option (if strip is specified)
STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
# WARNING: Do NOT modify these variables unless you know what you are
#          doing.
#
PKGEXT='.pkg.tar.gz'
SRCEXT='.src.tar.gz'

# vim: set ft=sh ts=2 sw=2 et:

Note that added options are CFLAGS="-g -march=i686 -mtune=generic -O2 -pipe"
CXXFLAGS="-g -march=i686 -mtune=generic -O2 -pipe"
OPTIONS=(!strip !docs libtool emptydirs zipman purge)

Kopete crash report:

Application: Kopete (kopete), signal: Segmentation fault
[Current thread is 0 (LWP 5113)]

Thread 2 (Thread 0xb31cab70 (LWP 6084)):
#0  0xb7ef4424 in __kernel_vsyscall ()
#1  0xb6588bc5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb66c13ad in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#3  0xb71fe047 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4  0xb5ee8c12 in ?? () from /usr/lib/libQtNetwork.so.4
#5  0xb71fd032 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb658468c in start_thread () from /lib/libpthread.so.0
#7  0xb66b3e2e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb55cfa50 (LWP 5113)):
[KCrash Handler]
#6  0xb665ba76 in memcpy () from /lib/libc.so.6
#7  0xbf8cebd8 in ?? ()
#8  0xb724247d in QString::realloc () from /usr/lib/libQtCore.so.4
#9  0xb7242a94 in QString::resize () from /usr/lib/libQtCore.so.4
#10 0xb7244009 in QString::replace_helper () from /usr/lib/libQtCore.so.4
#11 0xb72441fc in QString::replace () from /usr/lib/libQtCore.so.4
#12 0xb724692a in QString::replace () from /usr/lib/libQtCore.so.4
#13 0xb65503ea in ?? () from /usr/lib/libQtXml.so.4
#14 0xb6556f83 in ?? () from /usr/lib/libQtXml.so.4
#15 0xb6549ac2 in ?? () from /usr/lib/libQtXml.so.4
#16 0xb6556b04 in ?? () from /usr/lib/libQtXml.so.4
#17 0xb6549ac2 in ?? () from /usr/lib/libQtXml.so.4
#18 0xb6556b04 in ?? () from /usr/lib/libQtXml.so.4
#19 0xb6549ac2 in ?? () from /usr/lib/libQtXml.so.4
#20 0xb6556b04 in ?? () from /usr/lib/libQtXml.so.4
#21 0xb6549ac2 in ?? () from /usr/lib/libQtXml.so.4
#22 0xb6556b04 in ?? () from /usr/lib/libQtXml.so.4
#23 0xb655ae83 in ?? () from /usr/lib/libQtXml.so.4
#24 0xb655b3d3 in QDomNode::save () from /usr/lib/libQtXml.so.4
#25 0xb7da3997 in Kopete::XmlContactStorage::save () from /usr/lib/libkopete.so.4
#26 0xb7dd1391 in Kopete::ContactList::save () from /usr/lib/libkopete.so.4
#27 0xb7dd1b9f in Kopete::ContactList::qt_metacall () from /usr/lib/libkopete.so.4
#28 0xb73019ac in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#29 0xb73025e2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#30 0xb733ba87 in QTimer::qt_metacall () from /usr/lib/libQtCore.so.4
#31 0xb730705e in QTimer::QTimer () from /usr/lib/libQtCore.so.4
#32 0xb72fbb5f in QObject::event () from /usr/lib/libQtCore.so.4
#33 0xb693e994 in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#34 0xb694607c in QApplication::notify () from /usr/lib/libQtGui.so.4
#35 0xb7864faa in KApplication::notify () from /usr/lib/libkdeui.so.5
#36 0xb72ebfcb in QCoreApplication::installTranslator () from /usr/lib/libQtCore.so.4
#37 0xb731979e in ?? () from /usr/lib/libQtCore.so.4
#38 0xb7316780 in ?? () from /usr/lib/libQtCore.so.4
#39 0xb5c26d98 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#40 0xb5c2a3e0 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#41 0xb5c2a513 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#42 0xb73166cc in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#43 0xb69dc6c5 in ?? () from /usr/lib/libQtGui.so.4
#44 0xb72ea579 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#45 0xb72ea9ca in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#46 0xb72ece3f in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#47 0xb693e817 in QApplication::exec () from /usr/lib/libQtGui.so.4
#48 0x0805981c in _start ()

The problem in my case is that even if I click on the reload changes in crash report, I keep getting this backtrace in this order... I keep getting "#43 0xb69dc6c5 in ?? () from /usr/lib/libQtGui.so.4" Even though I've compile the packe with ABS and follow instructions on this and this wiki page. What am I doing wrong that  I don't see nice backtrace?

Last edited by frojnd (2009-08-19 13:57:39)

Offline

#2 2009-08-19 17:23:12

frojnd
Member
Registered: 2008-09-20
Posts: 125

Re: Backtrace incomplete despite compiling with ABS

Please move this post if you think it doesn't fit in this section.

Bump.I find it difficult to report backtrace if it's not working. Crashes are continueing...
Bump*Bump, crashes are my everday routine...

Last edited by frojnd (2009-08-22 16:41:44)

Offline

#3 2009-08-23 09:23:33

frojnd
Member
Registered: 2008-09-20
Posts: 125

Re: Backtrace incomplete despite compiling with ABS

Bump*bump*Bump, anyone, anything?

Offline

#4 2009-08-23 14:48:06

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Backtrace incomplete despite compiling with ABS

File a bug report.

Offline

#5 2009-08-28 21:20:37

frojnd
Member
Registered: 2008-09-20
Posts: 125

Re: Backtrace incomplete despite compiling with ABS

Don't know exactly what file should I report to a bug report, but http://bugs.archlinux.org/ is down for a few days now... (what file to report?)

Offline

#6 2009-08-29 00:25:24

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: Backtrace incomplete despite compiling with ABS

I think I saw something in some thread that in order to debug the backtrace, you have to put use options=(!strip) in the PKGBUILD.

Offline

#7 2009-08-29 18:57:54

frojnd
Member
Registered: 2008-09-20
Posts: 125

Re: Backtrace incomplete despite compiling with ABS

If you red my posts you'd see that I did it.

Offline

#8 2009-08-29 20:43:06

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: Backtrace incomplete despite compiling with ABS

Sorry. Italics slide by mine eyes, as do single uncommented lines in large blocks of code. In the pkgbuild, was strip specified? Because it's possible that the PKGBUILD for god knows what reason specified it and for some reason that overrode your makepkg.conf (I imagine that's how it works).

After that, I'd check the makefiles (or whatever there is of that) of the qt package to see if there's a makedebug type thing. Unfortunately, I can't figure out a way to browse the code right now otherwise I'd do it.

Offline

Board footer

Powered by FluxBB