Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 810757 - app-arch/libarchive-3.5.2 - FAIL: bsdcpio_test
Summary: app-arch/libarchive-3.5.2 - FAIL: bsdcpio_test
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2021-08-28 08:48 UTC by ernsteiswuerfel
Modified: 2021-08-29 11:57 UTC (History)
0 users

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


Attachments
build.log (libarchive-3.5.2:20210828-083920.log,629.24 KB, text/plain)
2021-08-28 08:48 UTC, ernsteiswuerfel
Details
test-suite.log (test-suite.log,4.44 KB, text/plain)
2021-08-28 08:49 UTC, ernsteiswuerfel
Details
bsdcpio_test test_basic.log (test_basic.log,2.77 KB, text/plain)
2021-08-28 08:49 UTC, ernsteiswuerfel
Details
emerge --info (file_810757.txt,5.82 KB, text/plain)
2021-08-28 08:51 UTC, ernsteiswuerfel
Details
build.log (3.5.2 with tests passing) (libarchive-3.5.2:20210829-113714.log,636.98 KB, text/plain)
2021-08-29 11:57 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2021-08-28 08:48:35 UTC
Created attachment 736342 [details]
build.log

[...]
make  check-TESTS
make[2]: Entering directory '/var/tmp/portage/app-arch/libarchive-3.5.2/work/libarchive-3.5.2-.ppc64'
make[3]: Entering directory '/var/tmp/portage/app-arch/libarchive-3.5.2/work/libarchive-3.5.2-.ppc64'
PASS: bsdcat_test
FAIL: bsdcpio_test
PASS: bsdtar_test
PASS: libarchive_test
============================================================================
Testsuite summary for libarchive 3.5.2
============================================================================
# TOTAL: 4
# PASS:  3
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
Comment 1 ernsteiswuerfel archtester 2021-08-28 08:49:04 UTC
Created attachment 736345 [details]
test-suite.log
Comment 2 ernsteiswuerfel archtester 2021-08-28 08:49:44 UTC
Created attachment 736366 [details]
bsdcpio_test test_basic.log
Comment 3 ernsteiswuerfel archtester 2021-08-28 08:51:00 UTC
Created attachment 736369 [details]
emerge --info
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-28 09:30:58 UTC
I'm afraid I'm going to need your help figuring this out.

I can't reproduce it on ppc64 or ppc64le.  I don't see anything relevant in configure output.  And worst of all, this doesn't seem really possible given the code:

https://github.com/libarchive/libarchive/blob/master/libarchive/archive_write_set_format_by_name.c#L43

This seems to be the function causing this error.  Since the function just iterates over the table and strcmp()s it with predefined format list, the only way I see this could have happened is if either name or the list were damaged.

For a start, could you try running:

  "/var/tmp/portage/app-arch/libarchive-3.5.2/work/libarchive-3.5.2-.ppc64/bsdcpio" -o -H bin

and seeing if it outputs the same error?

( bsdcpio: No such format 'bin'. )

If it does, then either attach a debugger and trace archive_write_set_format_by_name() or add some printfs to verify what it's doing.
Comment 5 ernsteiswuerfel archtester 2021-08-29 11:57:27 UTC
Created attachment 736648 [details]
build.log (3.5.2 with tests passing)

(In reply to Michał Górny from comment #4)
> I'm afraid I'm going to need your help figuring this out.
> 
> I can't reproduce it on ppc64 or ppc64le.  I don't see anything relevant in
> configure output.
I was just about to check this out but can't reproduce it any longer... Tried several times but tests passed.

Did not do much besides rebooting the machine so don't know what it was. I'll flag the bug as invalid and if I encounter it again throw gdb in immediately.