Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 603244 - dev-libs/apr with FEATURES=usersandbox: test failure: testlfs: Segmentation fault
Summary: dev-libs/apr with FEATURES=usersandbox: test failure: testlfs: Segmentation f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL: https://bz.apache.org/bugzilla/show_b...
Whiteboard:
Keywords: PullRequest
: 663132 665138 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-12-20 19:37 UTC by Thomas Deutschmann (RETIRED)
Modified: 2022-11-23 01:45 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,752.58 KB, text/plain)
2016-12-20 19:37 UTC, Thomas Deutschmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2016-12-20 19:37:27 UTC
Created attachment 456900 [details]
build.log

[...]
testlfs             :  /-|\Line 118: re-open 8GB file (75): Value too large for defined data type

/bin/sh: line 2: 23525 Segmentation fault      ./$prog -v
Creating a test file...
Sending the file...
apr_socket_sendfile() updated offset with 0
apr_socket_sendfile() updated len with 370049
bytes really sent: 370049
After apr_socket_sendfile(), the kernel file pointer is at offset 0.
client: apr_socket_sendfile() worked as expected!
Waiting for a client to connect...
Processing a client...
server: apr_socket_sendfile() worked as expected!
Creating a test file...
Sending the file...
Calling apr_socket_sendfile()...
Headers (3):
	15 bytes (1)
	5 bytes (E)
	80000 bytes (^)
File: 200000 bytes from offset 0
Trailers (3):
	19 bytes
	10 bytes
	90000 bytes
apr_socket_sendfile()->0, sent 370049 bytes
After apr_socket_sendfile(), the kernel file pointer is at offset 0.
client: apr_socket_sendfile() worked as expected!
Waiting for a client to connect...
Processing a client...
server: apr_socket_sendfile() worked as expected!
Creating a test file...
Sending the file...
Calling apr_socket_sendfile()...
Headers (3):
	15 bytes (1)
	5 bytes (E)
	80000 bytes (^)
File: 200000 bytes from offset 0
Trailers (3):
	19 bytes
	10 bytes
	90000 bytes
apr_socket_sendfile()->0, sent 370049 bytes
After apr_socket_sendfile(), the kernel file pointer is at offset 0.
client: apr_socket_sendfile() worked as expected!
Waiting for a client to connect...
Processing a client...
server: apr_socket_sendfile() worked as expected!
Programs failed: testall
Makefile:162: recipe for target 'check' failed
make[1]: *** [check] Error 139
make[1]: Leaving directory '/var/tmp/portage/dev-libs/apr-1.5.2/work/apr-1.5.2/test'
Makefile:127: recipe for target 'check' failed
make: *** [check] Error 2


# emerge --info
Portage 2.3.0 (python 3.4.5-final-0, default/linux/x86/13.0, gcc-4.9.4, glibc-2.22-r4, 4.4.26-gentoo i686)
=================================================================
System uname: Linux-4.4.26-gentoo-i686-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:     3108776 total,   2297980 free
KiB Swap:     488276 total,    488276 free
Timestamp of repository gentoo: Tue, 20 Dec 2016 11:46:33 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000


ABI="x86"
ABI_X86="32"
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ARCH="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt"
CHOST="i686-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
CXXFLAGS="-O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt"
DEFAULT_ABI="x86"
EDITOR="/usr/bin/mcedit"
ELIBC="glibc"
EPREFIX=""
EROOT="/"
EVENT_NOEPOLL="1"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GCC_SPECS=""
GRUB_PLATFORMS="efi-32 pc"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.9.4/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.25.1/info"
INPUT_DEVICES="keyboard mouse evdev"
IUSE_IMPLICIT="abi_x86_32 prefix prefix-guest"
KERNEL="linux"
L10N="en en-US de de-DE"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LC_MESSAGES="C"
LC_PAPER="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LIBDIR_x86="lib"
LINGUAS="en de"
LOGNAME="root"
MAIL="/var/mail/root"
MAKEOPTS="--jobs 5 --load-average 7.95"
MULTILIB_ABIS="x86"
MULTIOSDIRS="../lib"
NOCOLOR="true"
OFFICE_IMPLEMENTATION="libreoffice"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.9.4"
PHP_TARGETS="php5-6"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python2_7"
PYTHON_TARGETS="python2_7 python3_4"
ROOT="/"
ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.9.4"
RUBY_TARGETS="ruby21"
SHELL="/bin/bash"
SHLVL="2"
SSH_TTY="/dev/pts/0"
TERM="screen"
TMUX="/tmp/tmux-0/default,4333,0"
TMUX_PANE="%5"
USER="root"
USERLAND="GNU"
VIDEO_CARDS="intel"
Comment 1 Michael Weber (RETIRED) gentoo-dev 2017-02-08 08:16:35 UTC
same on ppc
Comment 2 Rolf Eike Beer archtester 2017-11-02 23:30:02 UTC
Same on sparc, where it is SIGBUS, but otherwise the same.
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2018-08-28 11:44:41 UTC
*** Bug 663132 has been marked as a duplicate of this bug. ***
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-01 15:01:28 UTC
This is a sandbox issue. Passing with FEATURES=-usersandbox. Note that this test will be skipped on 64-bit builds (https://svn.apache.org/viewvc?view=revision&revision=1789850).
Comment 5 Larry the Git Cow gentoo-dev 2018-09-01 15:20:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b3a23b766b2ee1c19712e8a5c4925b9eb1ba0dd

commit 6b3a23b766b2ee1c19712e8a5c4925b9eb1ba0dd
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2018-09-01 15:19:27 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-09-01 15:19:52 +0000

    dev-libs/apr: skip testlfs test
    
    Test only runs on non 64-bit systems and fails due to
    a Gentoo sandbox issue. To avoid requiring FEATURES=-usersandbox
    for this package, we are now skipping this test.
    
    Closes: https://bugs.gentoo.org/603244
    Package-Manager: Portage-2.3.48, Repoman-2.3.10

 dev-libs/apr/apr-1.6.3-r2.ebuild                       |  1 +
 .../apr/files/apr-1.6.3-skip-known-failing-tests.patch | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-02 20:33:12 UTC
*** Bug 665138 has been marked as a duplicate of this bug. ***
Comment 7 Larry the Git Cow gentoo-dev 2022-11-23 01:45:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b53422e8c5e1d2426b89dd23004d3935d0e7f2f8

commit b53422e8c5e1d2426b89dd23004d3935d0e7f2f8
Author:     Peter Levine <plevine457@gmail.com>
AuthorDate: 2022-11-20 09:05:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-23 01:43:39 +0000

    dev-cpp/gtest: exclude tests that fail due to usersandbox
    
    Patching internal code to overcome test failure due to the usersandbox
    feature flag seems misguided. Other packages opt to skip such tests
    rather than patching compiled code or turning off usersandbox
    (bug# 413621, 603244).  Let's do that.
    
    Bug: https://bugs.gentoo.org/413621
    Bug: https://bugs.gentoo.org/603244
    Signed-off-by: Peter Levine <plevine457@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-cpp/gtest/gtest-9999.ebuild | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)