Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 662694 - >=dev-libs/ell-0.6: FAIL: unit/test-utf8
Summary: >=dev-libs/ell-0.6: FAIL: unit/test-utf8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords: TESTFAILURE
: 662078 (view as bug list)
Depends on:
Blocks: 657616
  Show dependency tree
 
Reported: 2018-08-03 00:30 UTC by ernsteiswuerfel
Modified: 2019-04-29 07:44 UTC (History)
2 users (show)

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


Attachments
build.log (ell-0.6:20180802-230056.log,69.61 KB, text/plain)
2018-08-03 00:30 UTC, ernsteiswuerfel
Details
emerge --info (file_662694.txt,6.16 KB, text/plain)
2018-08-03 00:32 UTC, ernsteiswuerfel
Details
build.log (ppc_32) (ell-0.6:20180806-225019.log,70.94 KB, text/plain)
2018-08-06 23:04 UTC, ernsteiswuerfel
Details
build.log (0.11, ppc_32) (ell-0.11:20181024-221557.log,69.64 KB, text/plain)
2018-10-24 22:20 UTC, ernsteiswuerfel
Details
build.log (0.13, ppc_32) (ell-0.13:20181109-114823.log,71.30 KB, text/plain)
2018-11-09 11:54 UTC, ernsteiswuerfel
Details
test-suite.log (0.13) (test-suite.log,422 bytes, text/plain)
2018-11-09 14:16 UTC, ernsteiswuerfel
Details
test-suite.log (0.17) (test-suite.log,401 bytes, text/plain)
2019-02-17 18:06 UTC, ernsteiswuerfel
Details
ell-0.9-r1.ebuild (ell-0.9-r1.ebuild,812 bytes, text/plain)
2019-03-24 20:35 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2018-08-03 00:30:56 UTC
Created attachment 542210 [details]
build.log

PASS: unit/test-queue
PASS: unit/test-endian
PASS: unit/test-hashmap
PASS: unit/test-string
libtool: link: powerpc64-unknown-linux-gnu-gcc -fvisibility=hidden -DUNITDIR=\"/var/tmp/portage/dev-libs/ell-0.6/work/ell-0.6/unit/\" -DCERTDIR=\"./unit/\" -O2 -mcpu=powerpc64 -maltivec -mabi=altivec -pipe -Wl,-O1 -Wl,--as-needed -o unit/test-dhcp unit/test-dhcp.o  ell/.libs/libell-private.a
/var/tmp/portage/dev-libs/ell-0.6/work/ell-0.6/build-aux/test-driver: line 107: 24358 Aborted                 (core dumped) "$@" > $log_file 2>&1
FAIL: unit/test-utf8
PASS: unit/test-io
PASS: unit/test-plugin
PASS: unit/test-ringbuf
PASS: unit/test-settings
PASS: unit/test-netlink
PASS: unit/test-checksum
PASS: unit/test-genl
PASS: unit/test-genl-msg
PASS: unit/test-siphash
PASS: unit/test-random
PASS: unit/test-util
PASS: unit/test-uintset
PASS: unit/test-cipher
PASS: unit/test-uuid
PASS: unit/test-base64
PASS: unit/test-dhcp
PASS: unit/test-main
PASS: unit/test-pbkdf2
make --no-print-directory all-am
============================================================================
Testsuite summary for ell 0.6
============================================================================
# TOTAL: 24
# PASS:  23
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
============================================================================
Comment 1 ernsteiswuerfel archtester 2018-08-03 00:32:02 UTC
Created attachment 542212 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2018-08-03 00:40:49 UTC
===============================
   ell 0.6: ./test-suite.log
===============================

# TOTAL: 24
# PASS:  23
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: unit/test-utf8
====================

test-utf8: /var/tmp/portage/dev-libs/ell-0.6/work/ell-0.6/unit/test-utf8.c:827: test_utf8_codepoint: Assertion `ret > 0 && val == test->ucs4[i]' failed.
TEST: Validate UTF 1
Comment 3 ernsteiswuerfel archtester 2018-08-06 23:04:11 UTC
Created attachment 542648 [details]
build.log (ppc_32)

Same on ppc (32 bit):

===============================
   ell 0.6: ./test-suite.log
===============================

# TOTAL: 24
# PASS:  23
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: unit/test-utf8
====================

test-utf8: /var/tmp/portage/dev-libs/ell-0.6/work/ell-0.6/unit/test-utf8.c:827: test_utf8_codepoint: Assertion `ret > 0 && val == test->ucs4[i]' failed.
TEST: Validate UTF 1


# coredumpctl gdb
           PID: 16078 (test-utf8)
           UID: 250 (portage)
           GID: 250 (portage)
        Signal: 6 (ABRT)
     Timestamp: Tue 2018-08-07 00:51:33 CEST (8min ago)
  Command Line: ./unit/test-utf8
    Executable: /var/tmp/portage/dev-libs/ell-0.6/work/ell-0.6-abi_ppc_32.ppc/unit/test-utf8
 Control Group: /user.slice/user-1000.slice/session-c1.scope
          Unit: session-c1.scope
         Slice: user-1000.slice
       Session: c1
     Owner UID: 1000 (ef)
       Boot ID: e21dbde081ed4a9c9bfab9a4b933a9db
    Machine ID: a11f6dbd63d44c20941f9f48a8fbb3e4
      Hostname: T800
       Storage: /var/lib/systemd/coredump/core.test-utf8.250.e21dbde081ed4a9c9bfab9a4b933a9db.16078.1533595893000000.lz4
       Message: Process 16078 (test-utf8) of user 250 dumped core.
                
                Stack trace of thread 16078:
                #0  0x00000000005e2580 __libc_signal_restore_set (libc.so.6)
                #1  0x00000000005e4264 __GI_abort (libc.so.6)
                #2  0x00000000005d93c4 __assert_fail_base (libc.so.6)
                #3  0x00000000005d9454 __GI___assert_fail (libc.so.6)
                #4  0x00000000007a8308 n/a (/var/tmp/portage/dev-libs/ell-0.6/work/ell-0.6-abi_ppc_32.ppc/unit/test-utf8)

GNU gdb (Gentoo 8.1 p1) 8.1
Copyright (C) 2018 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 "powerpc-unknown-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/dev-libs/ell-0.6/work/ell-0.6-abi_ppc_32.ppc/unit/test-utf8...done.
[New LWP 16078]
Core was generated by `./unit/test-utf8'.
Program terminated with signal SIGABRT, Aborted.
#0  0x005e2580 in __libc_signal_restore_set (set=0xfffb9878) at ../sysdeps/unix/sysv/linux/nptl-signals.h:80
80	  return INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, set, NULL,
Comment 4 ernsteiswuerfel archtester 2018-10-24 22:20:21 UTC
Created attachment 552820 [details]
build.log (0.11, ppc_32)

Fails on 0.9 and 0.11 too.
Comment 5 ernsteiswuerfel archtester 2018-11-09 11:54:50 UTC
Created attachment 554597 [details]
build.log (0.13, ppc_32)

No improvement with 0.13.
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-11-09 13:48:52 UTC
Can you please attach the test-suite.log file to this bug?
Comment 7 ernsteiswuerfel archtester 2018-11-09 14:16:01 UTC
Created attachment 554631 [details]
test-suite.log (0.13)
Comment 8 ernsteiswuerfel archtester 2018-11-23 01:32:33 UTC
No improvement with 0.15.
Comment 9 ernsteiswuerfel archtester 2018-12-29 00:39:24 UTC
============================================================================
Testsuite summary for ell 0.16
============================================================================
# TOTAL: 25
# PASS:  24
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
Comment 10 ernsteiswuerfel archtester 2019-02-17 18:06:57 UTC
Created attachment 565660 [details]
test-suite.log (0.17)

================================
   ell 0.17: ./test-suite.log
================================

# TOTAL: 27
# PASS:  26
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: unit/test-utf8
====================

test-utf8: /var/tmp/portage/dev-libs/ell-0.17/work/ell-0.17/unit/test-utf8.c:827: test_utf8_codepoint: Assertion `ret > 0 && val == test->ucs4[i]' failed.
Comment 11 ernsteiswuerfel archtester 2019-03-24 20:35:06 UTC
Created attachment 570674 [details]
ell-0.9-r1.ebuild

Heavily inspired by bug #670753 I realized that adding -fsigned-char to CFLAGS will make ell-0.9 pass this utf8 test too. ;)

Modified the ebuild so this CFLAG gets appended.
Comment 12 ernsteiswuerfel archtester 2019-03-24 20:35:52 UTC
============================================================================
Testsuite summary for ell 0.9
============================================================================
# TOTAL: 25
# PASS:  25
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
>>> Completed testing dev-libs/ell-0.9-r1
Comment 13 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-04-05 13:24:30 UTC
Fair enough. Although I find it a bit over-the-top adding that flag to each architecture, despite this only fails on ppc64.
Comment 14 Larry the Git Cow gentoo-dev 2019-04-05 13:24:55 UTC
The bug has been closed via the following commit(s):

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

commit 7423ade70cfc2d7b97a6b73799839efeccd505c0
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-04-05 13:24:46 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-04-05 13:24:46 +0000

    dev-libs/ell: Fix test suite failure
    
    Closes: https://bugs.gentoo.org/662694
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 dev-libs/ell/ell-0.17.ebuild | 3 ++-
 dev-libs/ell/ell-0.18.ebuild | 3 ++-
 dev-libs/ell/ell-0.9.ebuild  | 5 +++--
 dev-libs/ell/ell-9999.ebuild | 3 ++-
 4 files changed, 9 insertions(+), 5 deletions(-)
Comment 15 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-04-29 07:44:31 UTC
*** Bug 662078 has been marked as a duplicate of this bug. ***