Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234489 - app-text/rarian 0.8.0-r1 rarian-sk-get-cl SIGSEGV
Summary: app-text/rarian 0.8.0-r1 rarian-sk-get-cl SIGSEGV
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-11 18:39 UTC by Filipe Sousa
Modified: 2008-09-07 23:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
scrollkeeper_cl.xml (scrollkeeper_cl.xml,25.82 KB, text/plain)
2008-08-12 09:54 UTC, Filipe Sousa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filipe Sousa 2008-08-11 18:39:59 UTC
I have a core dump (rarian-sk-get-c.core) in my /var/core/1000/  and after inspecting it i can see that the core dump was a result of calling /usr/bin/rarian-sk-get-cl en_US scrollkeeper_cl.xml.

(gdb) bt
#0  0x00007fb7855d41e0 in strlen () from /lib/libc.so.6
#1  0x00000000004063f2 in find_dump_name () at rarian-sk-get-cl.cpp:169
#2  0x000000000040672d in main (argc=<value optimized out>, argv=0x7fff8e4891d8) at rarian-sk-get-cl.cpp:225

===========================================================================
Portage 2.2_rc7 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.7-r2, 2.6.25-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r7-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Mon, 11 Aug 2008 17:03:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -O2 -pipe -ggdb"
CHOST="x86_64-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/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -mtune=core2 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages paralell-fetch parallel-fetch prelink preserve-libs sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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="/usr/local/portage/fsousa"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi alsa amd64 amr avahi bash-completion berkdb bzip2 cairo cli cracklib crypt cups custom-cflags custom-optimization dbus dri dts dv dvd dvdread emacs eselect fam fbcondecor flac fontconfig gdbm glitz hal iconv ipod isdnlog java5 jpeg kdeenablefinal kdehiddenvisibility latex libnotify lm_sensors midi mmx mp3 mudflap multilib musepack mysql ncurses newspr nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pch pcre pdf perl png postscript pppd python qt4 quicktime readline reflection sdl session smp speex spl sse sse2 ssl ssse3 svg sysfs syslog tcpd theora threads truetype ubuntu unicode usb vorbis wma wmf xanim xcomposite xinerama xml xorg xscreensaver xulrunner xvmc 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-08-12 09:36:14 UTC
is there anything we can do to reproduce this bug ?
Comment 2 Filipe Sousa 2008-08-12 09:54:26 UTC
Yes. 

$ rarian-sk-get-cl en_US scrollkeeper_cl.xml
Segmentation fault (core dumped)

And the last lines of strace
open("/usr/share/librarian/rarian-sk-cl.xml", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26933, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f068db7c000
fstat(3, {st_mode=S_IFREG|0644, st_size=26933, ...}) = 0
lseek(3, 24576, SEEK_SET)               = 24576
read(3, "m|Hardware|Processor\">\n        <"..., 2357) = 2357
lseek(3, 0, SEEK_SET)                   = 0
read(3, "<?xml version=\"1.0\" encoding=\"UT"..., 24576) = 24576
read(3, "m|Hardware|Processor\">\n        <"..., 4096) = 2357
brk(0x656000)                           = 0x656000
close(3)                                = 0
munmap(0x7f068db7c000, 4096)            = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++

The scrollkeeper_cl.xml is in /usr/share/librarian/Templates/C/scrollkeeper_cl.xml but I'm attaching it
Comment 3 Filipe Sousa 2008-08-12 09:54:47 UTC
Created attachment 162728 [details]
scrollkeeper_cl.xml
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-08-12 16:47:38 UTC
This is because USERNAME is not set in the environment.  It's fixed upstream already, and will be in 0.8.1.

Filipe: export USERNAME=$USER and that will fix your issue for now.

@gnome: should we patch or wait for 0.8.1?
Comment 5 Filipe Sousa 2008-08-12 21:00:29 UTC
That's it.

I don't remember messing with USERNAME, maybe there was some update that removed that variable. Do you remember where this variable was being set.

Thank you.
Comment 6 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-08-13 16:32:36 UTC
My assumption is it's set by either gnome-session or gdm.  At least, on my box with both of those, it's there, and on my box without them, it's not.
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-09-07 23:01:07 UTC
rarian 0.8.1 is now in tree, please reopen this bug if you can still reproduce with rarian 0.8.1