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

Bug 402155

Summary: sys-apps/grep-2.9 : PAX: terminating task: /bin/grep(grep)
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: The Gentoo Linux Hardened Team <hardened>
Status: RESOLVED NEEDINFO    
Severity: normal CC: base-system
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Agostino Sarubbo gentoo-dev 2012-02-04 14:18:45 UTC
From my pax.log

Feb  1 04:14:00 localhost kernel: PAX: execution attempt in: <anonymous mapping>, 15401000-15432000 15401000
Feb  1 04:14:00 localhost kernel: PAX: terminating task: /bin/grep(grep):8724, uid/euid: 1000/1000, PC: 15411d70, SP: 5977b424
Feb  1 04:14:00 localhost kernel: PAX: bytes at PC: e0 0f 00 00 c0 22 41 15 e8 22 41 15 e8 22 41 15 a0 32 41 15 
Feb  1 04:14:00 localhost kernel: PAX: bytes at SP-4: 15411d70 00000000 00000000 153f825e 4bf66141 15411628 15411ca0 15411650 15411c94 15411ca4 15411cb4 15411ca8 15411780 00000028 00000000 15411d70 15411750 5977b48c 15411c40 09377eb3 15411568
Comment 1 Anthony Basile gentoo-dev 2012-02-05 20:53:48 UTC
ago, we need more information because I've never seen grep hit an rwx mmap.  Can you give me emerge --info grep and what kernel version you're using.
Comment 2 Agostino Sarubbo gentoo-dev 2012-02-05 23:08:22 UTC
Portage 2.1.10.44 (hardened/linux/x86, gcc-4.4.5, glibc-2.13-r4, 3.1.5-gentoo i686)
=================================================================                                                                                                                   
                        System Settings                                                                                                                                             
=================================================================                                                                                                                   
System uname: Linux-3.1.5-gentoo-i686-Intel-R-_Celeron-R-_M_CPU_430_@_1.73GHz-with-gentoo-2.0.3                                                                                     
Timestamp of tree: Sun, 05 Feb 2012 08:30:01 +0000                                                                                                                                  
app-shells/bash:          4.1_p9                                                                                                                                                    
dev-lang/python:          2.7.2-r3                                                                                                                                                  
dev-util/cmake:           2.8.6-r4                                                                                                                                                  
dev-util/pkgconfig:       0.26                                                                                                                                                      
sys-apps/baselayout:      2.0.3                                                                                                                                                     
sys-apps/openrc:          0.9.8.4                                                                                                                                                   
sys-apps/sandbox:         2.5                                                                                                                                                       
sys-devel/autoconf:       2.13, 2.68                                                                                                                                                
sys-devel/automake:       1.11.1                                                                                                                                                    
sys-devel/binutils:       2.21.1-r1                                                                                                                                                 
sys-devel/gcc:            4.4.5, 4.6.2                                                                                                                                              
sys-devel/gcc-config:     1.4.1-r1                                                                                                                                                  
sys-devel/libtool:        2.4-r1                                                                                                                                                    
sys-devel/make:           3.82-r1                                                                                                                                                   
sys-kernel/linux-headers: 3.1 (virtual/os-headers)                                                                                                                                  
sys-libs/glibc:           2.13-r4                                                                                                                                                   
Repositories: gentoo x-portage                                                                                                                                                      
ACCEPT_KEYWORDS="x86"                                                                                                                                                               
ACCEPT_LICENSE="*"                                                                                                                                                                  
CBUILD="i686-pc-linux-gnu"                                                                                                                                                          
CFLAGS="-O2 -march=prescott"                                                                                                                                                        
CHOST="i686-pc-linux-gnu"                                                                                                                                                           
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"                                                                         
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"                    
CXXFLAGS="-O2 -march=prescott"                                                                                                                                                      
DISTDIR="/media/sources"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms sign split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en en_GB"
MAKEOPTS="-j1"
PKGDIR="/usr/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="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa apic bash-completion berkdb bzip2 cairo cli consolekit cracklib crypt custom-cflags custom-optimization cxx dbus dri dvd extras ffmpeg gdbm gpm gtk hardened iconv jpeg jpeg2k kde lame lm_sensors mad mmx modules mp3 mudflap ncurses networkmanager nls nptl nptlonly nsplugin opengl openmp pam pax_kernel pcre pic png policykit pppd qt3support qt4 readline semantic-desktop session sse sse2 ssl svg symlink sysfs tcpd threads tiff tordns udev urandom x264 x86 xorg 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LINGUAS="en en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-apps/grep-2.9 was built with the following:
USE="nls pcre"


THe kernel version is: linux-3.1.5-hardened with workstation profile
Comment 3 Anthony Basile gentoo-dev 2012-02-07 11:39:08 UTC
Strange, I can't reproduce this with your toolchain.  Can you give me an strace.
Comment 4 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-01-13 03:42:28 UTC
Is this still occurring?
Comment 5 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-01-24 02:07:42 UTC
closing :D
Comment 6 SpanKY gentoo-dev 2013-04-27 09:24:52 UTC
if i had to guess, it was related to USE=pcre