Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 14 Aug 2017 19:55:27 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: man-db 2.7.6.1: Test failures under musl libc

On Mon, Aug 14, 2017 at 06:43:27PM -0500, A. Wilcox wrote:
> Hello,
> 
> We are creating a new Linux distribution based on the musl libc focused
> on security and reliability.  As such, we run test suites for all of our
> packaged software.  The man-db test suite seems to have numerous
> failures due to musl's iconv(3) (or more specifically, iconv_open(3))
> method not supporting //IGNORE suffixes for character sets.

I'm not clear what it's trying to do with //IGNORE or why it wants it:

> ==============================================
>    man-db 2.7.6.1: src/tests/test-suite.log
> ==============================================
> 
> # TOTAL: 24
> # PASS:  20
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  4
> # XPASS: 0
> # ERROR: 0
> 
> .. contents:: :depth: 2
> 
> FAIL: man-6
> ===========
> 
> No manual entry for test
>   FAIL: missing locales
> FAIL man-6 (exit status: 1)
> 
> FAIL: manconv-1
> ===============
> 
> lt-manconv: iconv_open ("UTF-8//IGNORE", "ISO-8859-1"): Invalid argument
> --- /tmp/tmp.Z13DSCRrAK/1.exp	2017-08-14 23:36:45.092587088 +0000
> +++ /tmp/tmp.Z13DSCRrAK/1.out	2017-08-14 23:36:45.092587088 +0000
> @@ -1,2 +0,0 @@
> -'\" -*- coding: ISO-8859-1
> -??

Here the "//IGNORE" seems to be on the destination charset, and the
source charset, ISO-8859-1, does not have any illegal bytes/sequences,
so it's not clear what they're even trying to achieve. I think it's
just a wrong test but maybe you have some more insight?

> --- /tmp/tmp.SkB1onmT18/2.exp	2017-08-14 23:36:45.502586346 +0000
> +++ /tmp/tmp.SkB1onmT18/2.out	2017-08-14 23:36:45.502586346 +0000
> @@ -1,2 +0,0 @@
> -??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
> -????????
>   FAIL: -f UTF-8:KOI8-R -t UTF-8 on KOI8-R input with UTF-8 prefix
>   PASS: -f UTF-8:ISO-8859-1 -t UTF-8 preserves UTF-8 input
> lt-manconv: iconv_open ("ISO-8859-2//IGNORE", "UTF-8"): Invalid argument
> lt-manconv: iconv_open ("UTF-8//IGNORE", "ISO-8859-2"): Invalid argument

This is the only one that seems to be different, trying to do some
sort of round trip test?

> --- /tmp/tmp.SkB1onmT18/4.exp	2017-08-14 23:36:45.702585984 +0000
> +++ /tmp/tmp.SkB1onmT18/4.out	2017-08-14 23:36:45.702585984 +0000
> @@ -1 +0,0 @@
> -??
>   FAIL: recognises input encoding and omits invalid output character
> lt-manconv: iconv_open ("UTF-8//IGNORE", "ISO-8859-7"): Invalid argument
>   PASS: copes with invalid input characters
> FAIL manconv-2 (exit status: 1)

Not sure if this is any different.

> FAIL: manconv-3
> ===============
> 
> lt-manconv: iconv_open ("UTF-8//IGNORE", "EUC-JP"): Invalid argument
>   FAIL: incomplete character at EOF
> FAIL manconv-3 (exit status: 1)
> 

Looks like just the //IGNORE issue again. Not clear if it's supposed
to do anything useful in this case.

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.