Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 359863

Summary: app-cdr/k3b-2.0.2-r1 crash on start (hardened, sigsegv)
Product: Gentoo Linux Reporter: Alex Efros <powerman-asdf>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED NEEDINFO    
Severity: normal CC: hardened, media-optical
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alex Efros 2011-03-22 00:29:00 UTC
I rarely use k3b (it upgrades more often than I run it), so I can't be sure this is first version in portage with this bug. I think I've used 2.0.0 to write one DVD, and I'm sure I've used 1.92.0_rc3 a lot and it works fine.

So. When I run k3b, it immediately crash.

Console output:

KCrash: Application 'k3b' crashing...
sock_file=/home/powerman/.kde4/socket-home/kdeinit4__0
<unknown program name>(17444)/: Communication problem with  "k3b" , it probably crashed. 
Error message was:  "org.freedesktop.DBus.Error.ServiceUnknown" : " "The name org.k3b.k3b was not provided by any .service files" " 

Kernel log:

2011-03-22_00:17:28.59219 kern.alert: grsec: Segmentation fault occurred at af401ed0 in /usr/bin/k3b[k3b:17445] uid/euid:1000/1000 gid/egid:100/100, parent /usr/bin/k3b[k3b:17444] uid/euid:1000/1000 gid/egid:100/100

K3b's embedded backtrace:

Application: K3b (k3b), signal: Segmentation fault
[KCrash Handler]
#6  0xaf3ec13b in ?? () from /lib/ld-linux.so.2
#7  0xaf3ec7fa in ?? () from /lib/ld-linux.so.2
#8  0xaf3f29a0 in ?? () from /lib/ld-linux.so.2
#9  0xaf3f32e6 in ?? () from /lib/ld-linux.so.2
#10 0xaf3f1c8a in ?? () from /lib/ld-linux.so.2
#11 0xaf3f76d1 in ?? () from /lib/ld-linux.so.2
#12 0xaf3f32e6 in ?? () from /lib/ld-linux.so.2
#13 0xaf3f70e6 in ?? () from /lib/ld-linux.so.2
#14 0xac169c1b in ?? () from /lib/libdl.so.2
#15 0xaf3f32e6 in ?? () from /lib/ld-linux.so.2
#16 0xac16a0ac in ?? () from /lib/libdl.so.2
#17 0xac169b51 in dlopen () from /lib/libdl.so.2
#18 0xad1d64aa in ?? () from /usr/lib/qt4/libQtCore.so.4
#19 0xad1d031e in ?? () from /usr/lib/qt4/libQtCore.so.4
#20 0xad1d0674 in ?? () from /usr/lib/qt4/libQtCore.so.4
#21 0xad1c98bd in QPluginLoader::load() () from /usr/lib/qt4/libQtCore.so.4
#22 0xad523407 in KPluginLoader::load() () from /usr/lib/libkdecore.so.5
#23 0xad52466d in KPluginLoader::KPluginLoader(KService const&, KComponentData const&, QObject*) () from /usr/lib/libkdecore.so.5
#24 0xaf29bd67 in K3b::PluginManager::Private::loadPlugin(KSharedPtr<KService> const&) () from /usr/lib/libk3blib.so.6
#25 0xaf29c2a8 in K3b::PluginManager::loadAll() () from /usr/lib/libk3blib.so.6
#26 0xaf242951 in K3b::Core::init() () from /usr/lib/libk3blib.so.6
#27 0x12b0b689 in _start ()

I know this info isn't really helpful, so maybe I'll try to get more informative backtrace. Let me know if you need more info.

Reproducible: Always




Portage 2.1.9.42 (hardened/linux/x86, gcc-4.4.5, glibc-2.11.3-r0, 2.6.36-hardened-r9 i686)
=================================================================
System uname: Linux-2.6.36-hardened-r9-i686-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-1.12.14
Timestamp of tree: Sun, 20 Mar 2011 03:30:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/icedtea6-bin-1.9.7/jre/lib/i386/jvm.cfg /service /usr/inferno/keydb /usr/inferno/lib /usr/inferno/services /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/log /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=prescott -O2 -pipe"
DISTDIR="/usr/portage-distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.df.lth.se/pub/gentoo/ http://ftp.df.lth.se/pub/gentoo/ http://gentoo.telcom.net.ua/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage-packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog --delete-excluded"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/powerman /var/lib/layman/sunrise /var/lib/layman/kde-sunset /var/lib/layman/vmware /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi aim alsa apache2 asf avi bash-completion berkdb bitmap-fonts bzip2 cddb cdr chm cli cracklib crypt cscope cue curl cxx dbus dga divx4linux djvu dlloader dri dts dvd dvdr dvdread encode fastcgi ffmpeg flac flash gd gdbm gif gnutls gpg gtk gtk2 hardened hddtemp iconv icq idn imagemagick imap imlib irc jabber javascript jpeg kde lm_sensors lzo mad mailbox mbox mmx mng modules motif mp3 mpeg msn mudflap musepack mysql ncurses network-cron nls nptl nptlonly ogg opengl openmp oss pam pcre perl pic png pppd pwdb python qt qt3support qt4 quicktime readline rss rtc samba sdl session spell sse sse2 ssl ssse3 svg sysfs tcltk tcpd theora tiff truetype truetype-fonts type1-fonts unicode urandom vim-pager vim-syntax vim-with-x vorbis wavpack win32codecs x86 xinetd xorg xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="log_config vhost_alias autoindex alias rewrite dir deflate filter mime negotiation auth_basic authn_file authz_host authz_user authz_groupfile cgi actions headers env setenvif" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" LIRC_DEVICES="serial" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Alex Efros 2011-03-22 00:51:47 UTC
I've tried to improve backtrace using this:
- added "-O1" and "-ggdb" to CFLAGS and CXXFLAGS
- added "nostrip" to FEATURES
- added USE-flag "debug"
- re-emerged k3b
This make backtrace better, but still doesn't detailed enough. Maybe some other libraries should be re-emerged with these settings too?

Application: K3b (k3b), signal: Segmentation fault
[KCrash Handler]
#6  0xaf78313b in ?? () from /lib/ld-linux.so.2
#7  0xaf7837fa in ?? () from /lib/ld-linux.so.2
#8  0xaf7899a0 in ?? () from /lib/ld-linux.so.2
#9  0xaf78a2e6 in ?? () from /lib/ld-linux.so.2
#10 0xaf788c8a in ?? () from /lib/ld-linux.so.2
#11 0xaf78e6d1 in ?? () from /lib/ld-linux.so.2
#12 0xaf78a2e6 in ?? () from /lib/ld-linux.so.2
#13 0xaf78e0e6 in ?? () from /lib/ld-linux.so.2
#14 0xac4f9c1b in ?? () from /lib/libdl.so.2
#15 0xaf78a2e6 in ?? () from /lib/ld-linux.so.2
#16 0xac4fa0ac in ?? () from /lib/libdl.so.2
#17 0xac4f9b51 in dlopen () from /lib/libdl.so.2
#18 0xad5664aa in ?? () from /usr/lib/qt4/libQtCore.so.4
#19 0xad56031e in ?? () from /usr/lib/qt4/libQtCore.so.4
#20 0xad560674 in ?? () from /usr/lib/qt4/libQtCore.so.4
#21 0xad5598bd in QPluginLoader::load() () from /usr/lib/qt4/libQtCore.so.4
#22 0xad8b3407 in KPluginLoader::load() () from /usr/lib/libkdecore.so.5
#23 0xad8b466d in KPluginLoader::KPluginLoader(KService const&, KComponentData const&, QObject*) () from /usr/lib/libkdecore.so.5
#24 0xaf633ce2 in KService::createInstance<K3b::Plugin> (this=0x1a8edd28, parentWidget=0x0, parent=0x1a8f0df0, args=..., error=0x0) at /usr/include/kservice.h:514
#25 0xaf633ec6 in KService::createInstance<K3b::Plugin> (this=0x1a8edd28, parent=0x1a8f0df0, args=..., error=0x0) at /usr/include/kservice.h:494
#26 0xaf6322ae in K3b::PluginManager::Private::loadPlugin (this=0x1a8f0db0, service=...) at /var/tmp/portage/app-cdr/k3b-2.0.2-r1/work/k3b-2.0.2/libk3b/plugin/k3bpluginmanager.cpp:102
#27 0xaf6325ac in K3b::PluginManager::loadAll (this=0x1a8f0df0) at /var/tmp/portage/app-cdr/k3b-2.0.2-r1/work/k3b-2.0.2/libk3b/plugin/k3bpluginmanager.cpp:158
#28 0xaf5d33cd in K3b::Core::init (this=0x1a8e8098) at /var/tmp/portage/app-cdr/k3b-2.0.2-r1/work/k3b-2.0.2/libk3b/core/k3bcore.cpp:196
#29 0x1a782593 in K3b::Application::Core::init (this=0x1a8e8098) at /var/tmp/portage/app-cdr/k3b-2.0.2-r1/work/k3b-2.0.2/src/k3bapplication.cpp:317
#30 0x1a783580 in K3b::Application::init (this=0xbf629b24) at /var/tmp/portage/app-cdr/k3b-2.0.2-r1/work/k3b-2.0.2/src/k3bapplication.cpp:116
#31 0x1a78384d in K3b::Application::qt_metacall (this=0xbf629b24, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf6291c8) at /var/tmp/portage/app-cdr/k3b-2.0.2-r1/work/k3b-2.0.2_build/src/k3bapplication.moc:80
#32 0xad57c141 in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/qt4/libQtCore.so.4
#33 0xad58c22c in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/qt4/libQtCore.so.4
#34 0xad594189 in ?? () from /usr/lib/qt4/libQtCore.so.4
#35 0xad5942cc in ?? () from /usr/lib/qt4/libQtCore.so.4
#36 0xad588860 in QObject::event(QEvent*) () from /usr/lib/qt4/libQtCore.so.4
#37 0xaca67002 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#38 0xaca6dc2a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#39 0xadb3a372 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#40 0xad576822 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/qt4/libQtCore.so.4
#41 0xad5a9098 in ?? () from /usr/lib/qt4/libQtCore.so.4
#42 0xad5a589e in ?? () from /usr/lib/qt4/libQtCore.so.4
#43 0xabaa40d0 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#44 0xabaa8101 in ?? () from /usr/lib/libglib-2.0.so.0
#45 0xabaa82d1 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#46 0xad5a54e5 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#47 0xacb30f87 in ?? () from /usr/lib/qt4/libQtGui.so.4
#48 0xad574ab4 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#49 0xad574f9d in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#50 0xad57a785 in QCoreApplication::exec() () from /usr/lib/qt4/libQtCore.so.4
#51 0xaca670a3 in QApplication::exec() () from /usr/lib/qt4/libQtGui.so.4
#52 0x1a7a3741 in main (argc=1, argv=0xbf629ec4) at /var/tmp/portage/app-cdr/k3b-2.0.2-r1/work/k3b-2.0.2/src/main.cpp:151
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2011-05-14 12:34:50 UTC
Please report this upstream at bugs.kde.org and add here a link to that bug report.
Comment 3 Alex Efros 2011-08-17 19:25:50 UTC
Actually this segfault can be fixed simply with:
  paxctl -m /usr/bin/k3b
so please add paxmarking into ebuild.

Real issue is PaX become less verbose in latest versions. Previously all segfaults which happens because of hardened was ease to detect by looking in kernel logs. But this segfault doesn't listed in kernel log at all, so it's harder to find out it happens because of PaX.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2011-11-20 21:35:51 UTC
(In reply to comment #3)
> Actually this segfault can be fixed simply with:
>   paxctl -m /usr/bin/k3b
> so please add paxmarking into ebuild.
> 
> Real issue is PaX become less verbose in latest versions. Previously all
> segfaults which happens because of hardened was ease to detect by looking in
> kernel logs. But this segfault doesn't listed in kernel log at all, so it's
> harder to find out it happens because of PaX.

@hardened: what's to do here? if you think adding pax-mark in the ebuild makes sense, please just go ahead...
Comment 5 Magnus Granberg gentoo-dev 2011-11-20 22:37:03 UTC
Did the pax or grsec log show anything?
It start fine for me.
Do strace show anything?
Portage 2.1.10.36 (hardened/linux/amd64, gcc-4.6.2, glibc-2.12.2-r0, 3.0.4-hardened-r5 x86_64)
=================================================================
System uname: Linux-3.0.4-hardened-r5-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_720_@_1.60GHz-with-gentoo-2.1
Timestamp of tree: Sat, 19 Nov 2011 12:45:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.7-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.6-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.8.5-r4, 1.9.6-r3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.4-r2, 4.5.3-r1, 4.6.2
sys-devel/gcc-config:     1.5-r1
sys-devel/libtool:        2.4-r3
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Comment 6 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2011-11-20 23:38:50 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Actually this segfault can be fixed simply with:
> >   paxctl -m /usr/bin/k3b
> > so please add paxmarking into ebuild.
> > 
> > Real issue is PaX become less verbose in latest versions. Previously all
> > segfaults which happens because of hardened was ease to detect by looking in
> > kernel logs. But this segfault doesn't listed in kernel log at all, so it's
> > harder to find out it happens because of PaX.
> 
> @hardened: what's to do here? if you think adding pax-mark in the ebuild makes
> sense, please just go ahead...

Having an "emerge --info k3b" would be very helpful, I think your culprit is ffmpeg ;)

Zorry it is an x86 system
Comment 7 Johannes Huber (RETIRED) gentoo-dev 2012-02-09 21:51:25 UTC
> Having an "emerge --info k3b" would be very helpful, I think your culprit is
> ffmpeg ;)
> 
> Zorry it is an x86 system