Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655116 - media-gfx/curaengine-2.3.1-r1: test failure: StringTest: SegFault
Summary: media-gfx/curaengine-2.3.1-r1: test failure: StringTest: SegFault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: 3D Printing Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 620376
  Show dependency tree
 
Reported: 2018-05-06 22:16 UTC by Thomas Deutschmann (RETIRED)
Modified: 2018-05-11 18:20 UTC (History)
0 users

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


Attachments
build.log (build.log,67.04 KB, text/plain)
2018-05-06 22:16 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 2018-05-06 22:16:41 UTC
Created attachment 530280 [details]
build.log

> >>> Test phase: media-gfx/curaengine-2.3.1-r1
> >>> Working in BUILD_DIR: "/var/tmp/portage/media-gfx/curaengine-2.3.1-r1/work/curaengine-2.3.1_build"
> ctest -j 5 --test-load 7.95
> Invalid value for 'Test Load' : 7.95
> Test project /var/tmp/portage/media-gfx/curaengine-2.3.1-r1/work/curaengine-2.3.1_build
>     Start 1: SparseGridTest
>     Start 2: LinearAlg2DTest
>     Start 3: PolygonUtilsTest
>     Start 4: PolygonTest
>     Start 5: StringTest
> 1/5 Test #4: PolygonTest ......................   Passed    0.00 sec
> 2/5 Test #3: PolygonUtilsTest .................   Passed    0.04 sec
> 3/5 Test #1: SparseGridTest ...................   Passed    0.07 sec
> 4/5 Test #2: LinearAlg2DTest ..................   Passed    0.07 sec
> 5/5 Test #5: StringTest .......................***Exception: SegFault  0.01 sec
> 
> 80% tests passed, 1 tests failed out of 5
> 
> Total Test time (real) =   0.08 sec
> 
> The following tests FAILED:
>           5 - StringTest (SEGFAULT)
> 


Backtrace:

> GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1
> Copyright (C) 2017 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 "i686-pc-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <https://bugs.gentoo.org/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from /var/tmp/portage/media-gfx/curaengine-2.3.1-r1/work/curaengine-2.3.1_build/StringTest...done.
> [New LWP 15995]
> Core was generated by `/var/tmp/portage/media-gfx/curaengine-2.3.1-r1/work/curaengine-2.3.1_build/Stri'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  __strlen_ia32 () at ../sysdeps/i386/i686/multiarch/../../i586/strlen.S:64
> 64      ../sysdeps/i386/i686/multiarch/../../i586/strlen.S: No such file or directory.
> (gdb) bt
> #0  __strlen_ia32 () at ../sysdeps/i386/i686/multiarch/../../i586/strlen.S:64
> #1  0xb752fd4a in _IO_vfprintf_internal (s=<optimized out>, s@entry=0xbfa51c9c, format=<optimized out>,
>     format@entry=0x636154 "The integer %ld was printed as '%s' which was interpreted as %ld rather than %ld!",
>     ap=<optimized out>,
>     ap@entry=0xbfa51db0 "\360\330\377\377\377\377\377\377@\036\245\277\360\330\377\377\377\377\377\377\360\330\377\377\377\377\377\377\020'") at vfprintf.c:1637
> #2  0xb75ee9e8 in ___vsprintf_chk (s=s@entry=0xbfa52024 "The integer -10000 was printed as '\267\273",
>     flags=flags@entry=1, slen=slen@entry=200,
>     format=format@entry=0x636154 "The integer %ld was printed as '%s' which was interpreted as %ld rather than %ld!",
>     args=args@entry=0xbfa51db0 "\360\330\377\377\377\377\377\377@\036\245\277\360\330\377\377\377\377\377\377\360\330\377\377\377\377\377\377\020'") at vsprintf_chk.c:83
> #3  0xb75ee8db in ___sprintf_chk (s=s@entry=0xbfa52024 "The integer -10000 was printed as '\267\273",
>     flags=flags@entry=1, slen=slen@entry=200,
>     format=0x636154 "The integer %ld was printed as '%s' which was interpreted as %ld rather than %ld!",
>     format@entry=0x64cb44 "pE") at sprintf_chk.c:31
> #4  0x0057958d in sprintf (
>     __fmt=0x636154 "The integer %ld was printed as '%s' which was interpreted as %ld rather than %ld!",
>     __s=0xbfa52024 "The integer -10000 was printed as '\267\273") at /usr/include/bits/stdio2.h:34
> #5  cura::StringTest::writeInt2mmAssert (this=this@entry=0xf09e90, in=-10000)
>     at /var/tmp/portage/media-gfx/curaengine-2.3.1-r1/work/CuraEngine-2.3.1/tests/utils/StringTest.cpp:82
> #6  0x00579c63 in cura::StringTest::writeInt2mmTest10000Negative (this=0xf09e90)
>     at /var/tmp/portage/media-gfx/curaengine-2.3.1-r1/work/CuraEngine-2.3.1/tests/utils/StringTest.cpp:26
> #7  0xb76da9fa in CppUnit::TestCaseMethodFunctor::operator()() const () from /usr/lib/libcppunit-1.14.so.0
> #8  0xb76d0602 in CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) ()
>    from /usr/lib/libcppunit-1.14.so.0
> #9  0xb76d76ae in CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) ()
>    from /usr/lib/libcppunit-1.14.so.0
> #10 0xb76e0c52 in CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/$
> ib/libcppunit-1.14.so.0
> #11 0xb76da851 in CppUnit::TestCase::run(CppUnit::TestResult*) () from /usr/lib/libcppunit-1.14.so.0
> #12 0xb76dad03 in CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) () from /usr/lib/libcppunit-1.14.so.0
> #13 0xb76dac55 in CppUnit::TestComposite::run(CppUnit::TestResult*) () from /usr/lib/libcppunit-1.14.so.0
> #14 0xb76dad03 in CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) () from /usr/lib/libcppunit-1.14.so.0
> #15 0xb76dac55 in CppUnit::TestComposite::run(CppUnit::TestResult*) () from /usr/lib/libcppunit-1.14.so.0
> #16 0xb76e0b45 in CppUnit::TestResult::runTest(CppUnit::Test*) () from /usr/lib/libcppunit-1.14.so.0
> #17 0xb76e3483 in CppUnit::TestRunner::run(CppUnit::TestResult&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/lib/libcppunit-1.14.so.0
> ---Type <return> to continue, or q <return> to quit---q
>
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2018-05-06 22:16:50 UTC
Portage 2.3.24 (python 3.5.5-final-0, default/linux/x86/17.0, gcc-6.4.0, glibc-2.25-r11, 4.9.95-gentoo i686)
=================================================================
System uname: Linux-4.9.95-gentoo-i686-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:     3108308 total,   1334776 free
KiB Swap:     488276 total,    488276 free
Timestamp of repository gentoo: Sun, 06 May 2018 21:15:50 +0000
Head commit of repository gentoo: 50c9fabb8dafb7c243557de47e73ce7385b06423

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r11::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="*"
ANT_HOME="/usr/share/ant"
ARCH="x86"
CBUILD="i686-pc-linux-gnu"
CCL_DEFAULT_DIRECTORY="/usr/lib/clozurecl"
CFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m"
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/config /usr/share/gnupg/qualified.txt"
CPU_FLAGS_X86="mmx mmxext sse sse2"
CXXFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m"
DEFAULT_ABI="x86"
EDITOR="/usr/bin/mcedit"
ELIBC="glibc"
EPREFIX=""
EROOT="/"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GCC_SPECS=""
GRUB_PLATFORMS="efi-32 pc"
GSETTINGS_BACKEND="dconf"
HOME="/root"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/6.4.0/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.29.1/info:/usr/share/info"
INPUT_DEVICES="libinput keyboard mouse"
IUSE_IMPLICIT="abi_x86_32 prefix prefix-chain prefix-guest"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
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"
NOCOLOR="true"
OFFICE_IMPLEMENTATION="libreoffice"
OLDPWD="/root"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/i686-pc-linux-gnu/gcc-bin/6.4.0:/usr/lib/llvm/5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
PHP_TARGETS="php5-6 php7-0"
POSTGRES_TARGETS="postgres9_5"
PWD="/tmp/stable"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_5"
PYTHON_TARGETS="python2_7 python3_5"
QT_GRAPHICSSYSTEM="raster"
ROOT="/"
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/6.4.0:/usr/lib/llvm/5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
RUBY_TARGETS="ruby22 ruby23"
SHELL="/bin/bash"
SHLVL="2"
SSH_TTY="/dev/pts/0"
TERM="screen"
TMUX="/tmp/tmux-0/default,4884,0"
TMUX_PANE="%1"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
USER="root"
USERLAND="GNU"
VIDEO_CARDS="vmware"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
Comment 2 Michael 'veremitz' Everitt 2018-05-08 07:48:18 UTC
Solution located: https://github.com/Ultimaker/CuraEngine/pull/621
Patch & PR to follow...
Comment 3 Larry the Git Cow gentoo-dev 2018-05-11 18:20:19 UTC
The bug has been closed via the following commit(s):

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

commit 3c59fa24dc0ba2f2023a2fef48be9af986ace5bc
Author:     M. J. Everitt <m.j.everitt@iee.org>
AuthorDate: 2018-05-10 21:56:39 +0000
Commit:     Amy Liffey <amynka@gentoo.org>
CommitDate: 2018-05-11 18:17:45 +0000

    media-gfx/curaengine: Fix StringTest for 32-bit arches
    
    Closes: https://bugs.gentoo.org/655116
    Closes: https://github.com/gentoo/gentoo/pull/8339
    Package-Manager: Portage-2.3.13, Repoman-2.3.3

 media-gfx/curaengine/curaengine-2.3.1-r2.ebuild    | 47 ++++++++++++++++++++++
 ...curaengine-2.3.1-fix-stringtest-int-types.patch | 43 ++++++++++++++++++++
 ...raengine-2.3.1-make-stringtest-64bit-safe.patch | 13 ++++++
 3 files changed, 103 insertions(+)