Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560396 - dev-libs/gobject-introspection-1.44.0 with sys-apps/sandbox-2.7: libsandbox/trace.c:do_peekstr():110: failure (Bad address): ISE:do_peekstr: process_vm_readv() hates us: Bad address
Summary: dev-libs/gobject-introspection-1.44.0 with sys-apps/sandbox-2.7: libsandbox/t...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
: 560604 563602 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-09-14 04:01 UTC by Jeroen Roovers (RETIRED)
Modified: 2015-10-23 22:15 UTC (History)
4 users (show)

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


Attachments
dev-libs:gobject-introspection-1.44.0:20150914-030710.log (20150914-030710.log,114.47 KB, text/plain)
2015-09-14 04:01 UTC, Jeroen Roovers (RETIRED)
Details
sandbox-process_vm_readv-efault.patch (sandbox-process_vm_readv-efault.patch,367 bytes, patch)
2015-09-15 18:20 UTC, SpanKY
Details | Diff
dev-lang/fpc-2.6.4 build.log (build.log,407.20 KB, text/plain)
2015-09-16 06:43 UTC, Viktor Yu. Kovalskii
Details
dev-libs:gobject-introspection-1.44.0:20150920-091439.log (20150920-091439.log,248.32 KB, text/plain)
2015-09-20 09:19 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2015-09-14 04:01:00 UTC
Created attachment 411870 [details]
dev-libs:gobject-introspection-1.44.0:20150914-030710.log

Mon Sep 14 05:59:00 CEST 2015
emerge --info =dev-libs/gobject-introspection-1.44.0
Portage 2.2.20.1 (python 3.4.1-final-0, default/linux/x86/13.0, gcc-4.8.4, glibc-2.20-r2, 3.12.44-gentoo-JeR i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.12.44-gentoo-JeR-i686-Intel-R-_Pentium-R-_4_CPU_2.60GHz-with-gentoo-2.2
KiB Mem:     3499304 total,    329788 free
KiB Swap:     500468 total,    387692 free
Timestamp of repository gentoo: Mon, 14 Sep 2015 03:15:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.2rc1 i686-pc-linux-gnu [enabled]
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.23.2::gentoo, 2.24-r3::gentoo
sys-devel/gcc:            4.7.3-r1::gentoo, 4.8.3::gentoo, 4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /world/gentoo/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

JeR
    location: /keeps/gentoo/local
    masters: gentoo
    priority: -100

Installed sets: @system
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -fstack-protector -march=pentium4 --param l1-cache-size=8 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=pentium4 -Wall"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/portage/savedconfig /usr/lib/distcc/bin /usr/share/X11/app-defaults/XTerm /usr/share/X11/app-defaults/XTerm-color /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -fstack-protector -march=pentium4 --param l1-cache-size=8 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=pentium4 -Wall"
DISTDIR="/aches/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news notitles parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ http://mirror.leaseweb.com/gentoo/ "
LANG="en_GB.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/aches/gentoo/packages/marga"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="256-color X a52 aac aalib acpi alsa ao artist-screen asf audiofile bash-completion berkdb bl bzip2 cairo caps cdda cddb cdio cdparanoia cdr chroot cle266 cli colors cpath cracklib crypt cscope css cups curl cxx dbus dga dillo dri dv dvd dvdr dvdread edl elf encode fam fame fbcon ffmpeg filecaps flac flash fluidsynth foomaticdb freetype gdbm ggi gif gimpprint glibc-omitfp glut gmedia gnutls graphite gs gtk gtk2 gtk3 gudev help-screen iconv id3tag idn imlib inkjar ipv6 jpeg kmod ladspa lcms libcaca libkms libsamplerate live lm_sensors logrotate lyrics-screen lzma lzo mad matroska midi mikmod minizip mjpeg mmx mng modplug modules mozilla mozsvg mozxmlterm mp3 mpeg mplayer multislot musepack nas ncurses network network-cron nfs nls nptl offensive ogg opengl openmp optimisememory pam pcre pda pdf perl physfs pic plotutils png python qt qt3 qt3support qt4 quicktime readline real realmedia rtc rtsp ruby samba sasl screenshot sdl seccomp server session sftplogging shout skins smux sndfile snmp song-screen speex spell ssl stream svg sysfs syslog tcl tcpd tetex tga theora threads tiff tk truetype unicode unicode3 unwind upnp usb userlocales v4l v4l2 vcd vidix vim-syntax vlm vorbis wavpack wcwidth win32codecs winbind x86 xanim xcomposite xft xml xml2 xosd xterm-color xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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 ublox ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB nl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="mga nvidia" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 SpanKY gentoo-dev 2015-09-14 18:39:18 UTC
does it pass w/sandbox-2.6 ?  i don't think the ptrace logic changed ...
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-09-15 03:45:24 UTC
(In reply to SpanKY from comment #1)
> does it pass w/sandbox-2.6 ?

Yes.
Comment 3 SpanKY gentoo-dev 2015-09-15 18:20:34 UTC
Created attachment 411994 [details, diff]
sandbox-process_vm_readv-efault.patch

what kind of settings do you have enabled in this kernel ?  does this patch make it work ?  it seems odd if it does ...
Comment 4 Viktor Yu. Kovalskii 2015-09-16 06:42:17 UTC
I have the similar problem when I try to install =dev-lang/fpc-2.6.4.
Comment 5 Viktor Yu. Kovalskii 2015-09-16 06:43:03 UTC
Created attachment 412018 [details]
dev-lang/fpc-2.6.4 build.log
Comment 6 SpanKY gentoo-dev 2015-09-16 14:10:48 UTC
(In reply to Viktor Yu. Kovalskii from comment #4)

please try the patch already posted
Comment 7 Viktor Yu. Kovalskii 2015-09-18 04:21:55 UTC
(In reply to SpanKY from comment #6)
> (In reply to Viktor Yu. Kovalskii from comment #4)
> 
> please try the patch already posted

Thanks, this patch works for me.
Comment 8 SpanKY gentoo-dev 2015-09-20 08:17:10 UTC
i've committed the fallback logic as well as extended debug info:
http://gitweb.gentoo.org/proj/sandbox.git/commit/?id=c17c4b85ca9e9af75bc16c9e49b6bf0b3ee6b4c8

this is part of sandbox-2.8 which is in the tree now.  if you could try that out and post the new error messages you see, that'd be helpful.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2015-09-20 09:19:13 UTC
Created attachment 412320 [details]
dev-libs:gobject-introspection-1.44.0:20150920-091439.log

libtool: link: i686-pc-linux-gnu-gcc -o /var/tmp/portage/dev-libs/gobject-introspection-1.44.0/work/gobject-introspection-1.44.0/tmp-introspectu7yvqu/Gio-2.0 -fno-strict-aliasing -Wsign-compare -Wcast-align -Wpointer-arith -Wnested-externs -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Os -fstack-protector -march=pentium4 --param l1-cache-size=8 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=pentium4 -Wall -Wl,-O1 -Wl,--hash-style=gnu /var/tmp/portage/dev-libs/gobject-introspection-1.44.0/work/gobject-introspection-1.44.0/tmp-introspectu7yvqu/Gio-2.0.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic  -Wl,--as-needed -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 -lgio-2.0 -pthread
 * process_vm_readv(5871, 0xbfa0a368{0xb726e004, 2296}, 1, 0xbfa0a370{0xb77288f8, 2296}, 1, 0) failed: Bad address
Comment 10 SpanKY gentoo-dev 2015-09-20 21:06:29 UTC
(In reply to Jeroen Roovers from comment #9)

thanks.  looks like the rounding logic is wrong -- i used the remainder instead of the difference between the page size and the remainder.
Comment 12 Alex Xu (Hello71) 2015-09-27 17:49:54 UTC
*** Bug 560604 has been marked as a duplicate of this bug. ***
Comment 13 Alex Xu (Hello71) 2015-09-27 17:50:24 UTC
This bug should be fixed in sys-apps/sandbox-2.9.
Comment 14 SpanKY gentoo-dev 2015-10-23 22:15:36 UTC
*** Bug 563602 has been marked as a duplicate of this bug. ***