app-misc/workrave-1.9.0 refuses to start it gives (SIGSEGV). dmesg says:[ 1196.111519] workrave[6368]: segfault at 0 ip 080aecbf sp bfa7a6f0 error 4 in workrave[8048000+a4000] Reproducible: Always Steps to Reproduce: 1. workrave 2. 3. Actual Results: Neoprávněný přístup do paměti (SIGSEGV) Expected Results: program start it was build with this parameters, the -kde flag have to used in order to go through compilation. app-misc/workrave-1.9.0 USE="dbus nls xml -arts -debug -distribution -gnome -kde" emerge --info Portage 2.2_rc33 (!../usr/portage/profiles/default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r4-i686-Intel-R-_Pentium-R-_M_processor_1.73GHz-with-gentoo-1.12.11.1 Timestamp of tree: Fri, 24 Jul 2009 08:00:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.8-r1 dev-lang/python: 2.4.4-r9, 2.5.4-r2, 2.6.2-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.4-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" 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 /etc/udev/rules.d" CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer" DISTDIR="/mnt/nfs_portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans" GENTOO_MIRRORS="rsync://192.168.1.1/gentoo-portage/distfiles rsync://192.168.1.1/gentoo-portage/ rsync://ftp6.linux.cz/pub/linux/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo" LANG="cs_CZ.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="cs us" PKGDIR="/mnt/nfs_portage/packages" PORTAGE_CONFIGROOT="/" 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="/mnt/nfs_portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip X acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo faad fam firefox fortran gdbm gif gpm gstreamer gtk hal iconv ipv6 isdnlog jack java jpeg kde ldap libnotify mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection sdl session slang spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs us" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
a good backtrace would be most useful, see [1] [1] http://www.gentoo.org/proj/en/qa/backtraces.xml
Hmm, I have all system without -gdb flag. And it would take quite long to rebuild all. Is there some way to build just the one application?
emerge -1 <package> Please do read that link Gilles posted as adding -g to CFLAGS isn't enough by itself. Thanks
Created attachment 199304 [details] backtrace.log output of gdb /usr/bin/workrave
the upper post is result of this command: gdb /usr/bin/workrave GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... (no debugging symbols found) (gdb) run Starting program: /usr/bin/workrave (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) ---Type <return> to continue, or q <return> to quit--- (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [New Thread 0xb6c80960 (LWP 17672)] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [New Thread 0xb6ac3b90 (LWP 17683)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb6c80960 (LWP 17672)] 0x080a793c in ?? () (gdb) set logging file backtrace.log (gdb) set logging on Copying output to backtrace.log. (gdb) bt #0 0x080a793c in ?? () #1 0x080a80c4 in ?? () #2 0x080a81e0 in ?? () #3 0x08066571 in ?? () #4 0x0806741c in ?? () #5 0x080840aa in ?? () #6 0x080840e1 in ?? () #7 0xb6cc36fc in __libc_start_main () from /lib/libc.so.6 #8 0x08061361 in ?? () (gdb) set logging off Done logging to backtrace.log. (gdb) quit The program is running. Exit anyway? (y or n) y
Hum, that's not good, all thos "(no debugging symbols found)" should disappear. You will probably need to rebuild glib, gtk, glibmm, gtkmm, gconf, libsigc++ and other deps you enabled via use flags to get a better backtrace.
uff, it look like it have some debug flag: # emerge -1av app-misc/workrave These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] app-misc/workrave-1.9.0 USE="dbus nls xml -arts -debug -distribution -gnome -kde" 0 kB wouldn't be enough to compile it with debug use flag?
no, USE="debug" is not enough, please read the documentation, you need symbols per used libs, CFLAGS="${CFLAGS} -g", FEATURES="$FEATURES splitdebug" otherwise your debugger won't be able to do its job.
so I will add to FEATURES splitdebug my /etc/make.conf # These settings were set by the catalyst build script that automatically built this stage # Please consult /etc/make.conf.example for a more detailed example CHOST="i686-pc-linux-gnu" #CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer" CFLAGS="-march=pentium-m -O2 -ggdb" CXXFLAGS="${CFLAGS}" INPUT_DEVICES="keyboard mouse synaptics" VIDEO_CARDS="intel" #"i810 i915" USE="slang unicode -gnome -arts kde nsplugin java alsa dri nls xv qt truetype dvd xvid sdl opengl dvdread jack nptl nptlonly 7zip bluetooth faad" GENTOO_MIRRORS="rsync://192.168.1.1/gentoo-portage/distfiles rsync://192.168.1.1/gentoo-portage/ rsync://ftp6.linux.cz/pub/linux/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo" #SYNC="rsync://192.168.1.1/gentoo-portage" PORTDIR_OVERLAY="/usr/local/portage" PORTDIR="/mnt/nfs_portage" DISTDIR="${PORTDIR}/distfiles" PKGDIR="${PORTDIR}/packages" RPMDIR="${PORTDIR}/rpm" FEATURES="-userfetch distlocks" #ALSA_CARDS="intel8x0" ALSA_CARDS="hda-intel" LINGUAS="cs us"
Created attachment 199314 [details] backtrace.log so with FEATURES splitdebug on # gdb /usr/bin/workrave GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... (gdb) run Starting program: /usr/bin/workrave [Thread debugging using libthread_db enabled] [New Thread 0xb6c43960 (LWP 3355)] [New Thread 0xb6a86b90 (LWP 3362)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb6c43960 (LWP 3355)] 0x080a793c in SoundPlayer::sync_settings (this=0x9e46370) at SoundPlayer.cc:398 398 SoundPlayer.cc: No such file or directory. in SoundPlayer.cc (gdb) set logging file backtrace.log (gdb) set logging on Copying output to backtrace.log. (gdb) bt #0 0x080a793c in SoundPlayer::sync_settings (this=0x9e46370) at SoundPlayer.cc:398 #1 0x080a80c4 in SoundPlayer::register_sound_events (this=0x9e46370, theme=@0xbfb760e4) at SoundPlayer.cc:334 #2 0x080a81e0 in SoundPlayer (this=0x9e46370) at SoundPlayer.cc:317 #3 0x08066571 in GUI::init_sound_player (this=0x9df2ea8) at GUI.cc:888 #4 0x0806741c in GUI::main (this=0x9df2ea8) at GUI.cc:205 #5 0x080840aa in run (argc=1, argv=0xbfb76224) at main.cc:54 #6 0x080840e1 in main (argc=Cannot access memory at address 0x0 ) at main.cc:71 (gdb) set logging off Done logging to backtrace.log. (gdb) quit The program is running. Exit anyway? (y or n) y