Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
Bug 446312 - app-shells/autojump-21.1.0 causes startDM.sh to segfault during system start
Summary: app-shells/autojump-21.1.0 causes startDM.sh to segfault during system start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
: 459480 (view as bug list)
Depends on: 468056
Blocks:
  Show dependency tree
 
Reported: 2012-12-06 22:07 UTC by Tomasz Golinski
Modified: 2013-05-15 07:00 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Golinski 2012-12-06 22:07:17 UTC
After last batch of xorg updates (to x11-base/xorg-server-1.13.0-r1) I get the following problem on two amd64 machines: during startup, when openrc reaches xdm, the process hangs for half a minute, spills a segfault 

startDM.sh[19762]: segfault at 7fff1000dff8 ip 000000000043ac99 sp 00007fff1000e000 error 6 in bash[400000+b0000]

and then either continues starting selected xdm, or just stays on console. In any case, I can restart xdm manually without the problem.

Both systems have sys-apps/openrc-0.11.6, x11-apps/xinit-1.3.2, app-shells/bash-4.2_p37 and x11-base/xorg-server-1.13.0-r1 (all stable). One uses x11-drivers/ati-drivers-12.11_beta with x11-misc/slim-1.3.4-r1. The other uses  x11-drivers/nvidia-drivers-304.64 with kde-base/kdm-4.9.3:4.


Here's emerge --info from one of them (nvidia&kdm box):

Portage 2.1.11.31 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.4, glibc-2.15-r3, 3.5.7-gentoo x86_64)
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.1
Timestamp of tree: Thu, 06 Dec 2012 15:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.6
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.vectranet.pl/gentoo/ http://gentoo.mneisen.org/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="pl_PL"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://h/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acoustid acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative djvu dri dts dvd dvdr emboss exif ffmpeg firefox flac fortran g3dvl gallium gdbm gif gpm gtk iconv jpeg kde kipi kpathsea lame lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib musepack musicbrainz ncurses nls nptl nvidia offensive ogg opengl openmp pam pango pcre pdf phonon plasma png policykit postscript ppds pppd qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg system-sqlite tcpd tetex tiff truetype truetype-fonts udev udisks unicode upower usb userlocales v4l2 vdpau vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en pl" LIRC_DEVICES="serial" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia radeon" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Tomasz Golinski 2012-12-08 14:46:48 UTC
It turns out that the problem was caused by app-shells/autojump-21.1.0 (previous version autojump-20.9.ebuild didn't cause that problem). 

It may be related to the fact that many scripts produce additional error msg with autojump-21: 

bash: autojump_add_to_database: command not found
Comment 2 jens 2013-01-25 08:51:42 UTC
I can confirm both, the problem and the proposed solution.
Removing autojump (I didn't try the older version) solved the segfault in startDm during boot.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2013-02-27 12:28:07 UTC
*** Bug 459480 has been marked as a duplicate of this bug. ***
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2013-02-27 12:29:15 UTC
Michael, you seem to maintain a long list of packages because you wanted to "salvage" them but don't care about them so much.

This bug is a *huge* problem and has been reported over three months ago and you haven't even commented on it...
Comment 5 Tomasz Golinski 2013-03-01 13:27:41 UTC
This bug is still present in the current autojump-21.3.0. I would suggest hard-masking it, since that bug is really critical and non-obvious. At least there should be an explicit warning in ebuild about possible problem.
Comment 6 Kamil Kuduk 2013-03-30 19:16:01 UTC
It's just because of stupid:

/etc/profile.d/autojump.sh:
# check global install
elif [ -s /etc/profile.d/autojump.${shell} ]; then
        source /etc/profile.d/autojump.${shell}

when sourced from /etc/inid.d/xdm shell is "sh", so it causes infinite recursion
Comment 7 Michael Weber (RETIRED) gentoo-dev 2013-05-04 10:43:56 UTC
+*autojump-21.3.0-r1 (04 May 2013)
+
+  04 May 2013; Michael Weber <xmw@gentoo.org> +autojump-21.3.0-r1.ebuild,
+  +files/autojump-21.3.0-supported-shells.patch, -autojump-21.3.0.ebuild:
+  Drop old, fix infinity loop sourcing shell=sh (thanks Kamil Kuduk, bug
+  446312), prefix support (thanks Leho Kraav, bug 465226), fix security issue
+  (bug 467262).
+
Comment 8 Tomasz Golinski 2013-05-14 12:35:29 UTC
Tested, works for me.