Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408377 - sys-apps/paxctl-0.6: SIGSEGV at paxctl-elf.c:201
Summary: sys-apps/paxctl-0.6: SIGSEGV at paxctl-elf.c:201
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-15 17:04 UTC by wbrana
Modified: 2012-03-25 14:45 UTC (History)
1 user (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 wbrana 2012-03-15 17:04:22 UTC
firefox downloaded from
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/11.0/linux-x86_64/en-GB/firefox-11.0.tar.bz2

GNU gdb (Gentoo 7.4 p1) 7.4
Copyright (C) 2012 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 "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /sbin/paxctl...Reading symbols from /usr/lib64/debug/sbin/paxctl.debug...done.
done.
(gdb) run -C firefox
Starting program: /sbin/paxctl -C firefox

Program received signal SIGSEGV, Segmentation fault.
0x00000058d8fae2fc in elf64_modify_phdr (state=0x3edd6eb6e60) at paxctl-elf.c:201
201     paxctl-elf.c: No such file or directory.
(gdb) bt
#0  0x00000058d8fae2fc in elf64_modify_phdr (state=0x3edd6eb6e60) at paxctl-elf.c:201
#1  0x00000058d8faf2d4 in pax_process_file (state=0x3edd6eb6e60) at paxctl.c:163
#2  0x00000058d8faf36c in pax_process_files (state=0x3edd6eb6e60) at paxctl.c:180
#3  0x00000058d8faf935 in main (argc=3, argv=0x3edd6eb6fa8) at paxctl.c:279
(gdb) bt full
#0  0x00000058d8fae2fc in elf64_modify_phdr (state=0x3edd6eb6e60) at paxctl-elf.c:201
        newmap = 0x395fe42a000 "\177ELF\002\001\001"
        newphdr = 0x4f621525
        ehdr = 0x395febd9000
        shift = 2097152
        i = 9
        pt_phdr = 0
        pt_load = 2
        gnu_stack = 8
        pax_flags = 9
        phdr = 0x395fe62a040
        shdr = 0x395fe638838
#1  0x00000058d8faf2d4 in pax_process_file (state=0x3edd6eb6e60) at paxctl.c:163
        ret = 1
#2  0x00000058d8faf36c in pax_process_files (state=0x3edd6eb6e60) at paxctl.c:180
        status = 0
#3  0x00000058d8faf935 in main (argc=3, argv=0x3edd6eb6fa8) at paxctl.c:279
        state = {argv = 0x3edd6eb6fa8, flags_on = 0, flags_off = 0, files = 2, quiet = 0, shortonly = 0, view = 0, convert = 0, create = 1, ops = 0x58d91b1060, fd = 7, map = 0x395fe42a000 "\177ELF\002\001\001", size = 2158520}
Comment 1 wbrana 2012-03-15 17:10:01 UTC
Portage 2.1.10.49 (hardened/linux/amd64, gcc-4.4.6, glibc-2.12.2, 3.2.7-hardened x86_64)
=================================================================
System uname: Linux-3.2.7-hardened-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Thu, 15 Mar 2012 00:45:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.7-r2, 2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r2
sys-devel/gcc-config:     1.5.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 ETQW RTCW-ETEULA googleearth AdobeFlash-10.3 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/mnt/md3/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv webrsync-gpg"
FFLAGS="-O2 -pipe"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/mnt/md3/cache/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="/mnt/md3/cache"
PORTDIR="/mnt/md3/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi aio alsa amd64 amr apng berkdb bzip2 cairo caps chm cli consolekit cracklib crypt cxx dbus device-mapper dlz dri dts dvb eix enca exif extensions extras faad ffmpeg flac gdbm glib glibc-omitfp glitz gnutls gudev handbook hardened iconv jit jpeg jpeg2k justify kde lcms lm_sensors logrotate lzma matroska mikmod minizip mmx mng modplug modules mp3 mpeg mudflap multilib ncurses nodrm nptl nptlonly nsplugin ogg openal opengl openmp pam pax_kernel pcre pdf pic png policykit pppd qt qt3support qt4 rar readline rtsp schroedinger session slang spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 symlink sysfs theora threads tiff truetype unicode urandom usb userpriv v4l2 vlc vorbis vpx x264 xcb xcomposite xml xorg xv xvid zlib" ALSA_CARDS="virtuoso" 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 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" 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
Comment 2 PaX Team 2012-03-22 22:46:11 UTC
while i'm investigating this you can just use paxctl -c (which is preferred over -C).
Comment 3 PaX Team 2012-03-22 23:50:03 UTC
paxctl 0.7 fixes the bug.
Comment 4 Anthony Basile gentoo-dev 2012-03-23 00:44:57 UTC
(In reply to comment #3)
> paxctl 0.7 fixes the bug.

Its in the tree.  I tested and its fixed.  I'll wait a few days for the reporter to comment and then close this bug.
Comment 5 Anthony Basile gentoo-dev 2012-03-25 14:45:20 UTC
Reopen if this is still a problem.