Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951662 - net-vpn/openvpn-2.6.12-r1 test failure with LTO (__wrap_buffer_write_file: '%s' parameter still has values that haven't been checked.)
Summary: net-vpn/openvpn-2.6.12-r1 test failure with LTO (__wrap_buffer_write_file: '%...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2025-03-20 14:21 UTC by Arniiiii
Modified: 2025-03-22 04:53 UTC (History)
2 users (show)

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


Attachments
tarball with bunch of files. (net-vpn_openvpn-2.6.12-r1_test_fail_tls_crypt_testdriver.tar.xz,228.52 KB, application/x-xz)
2025-03-20 14:21 UTC, Arniiiii
Details
emerge --info (file_951662.txt,15.33 KB, text/plain)
2025-03-20 14:22 UTC, Arniiiii
Details
build.log (file_951662.txt,235.56 KB, text/plain)
2025-03-20 14:24 UTC, Arniiiii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arniiiii 2025-03-20 14:21:58 UTC
Created attachment 921341 [details]
tarball with bunch of files.

inside tarball: emerge_--info.txt /var/tmp/portage/net-vpn/openvpn-2.6.12-r1/{build-info/,files/,temp/,work/**.log} /var/lib/portage/ /var/log/portage/elog/net-vpn/openvpn-2.6.12-r1:20250320-134755.log /etc/portage/binrepos.conf /etc/portage/crossdev /etc/portage/crossdev_experiments /etc/portage/env /etc/portage/gentoo /etc/portage/make.conf /etc/portage/make.conf\~ /etc/portage/make.profile /etc/portage/package.accept_keywords /etc/portage/package.accept_restrict /etc/portage/package.env /etc/portage/package.license /etc/portage/package.mask /etc/portage/package.properties /etc/portage/package.unmask /etc/portage/package.use /etc/portage/patches /etc/portage/profile /etc/portage/repo-patches /etc/portage/repo.postsync.d /etc/portage/repos.conf /etc/portage/savedconfig


from build.log:
```
[==========] Running 16 test(s).
[ RUN      ] tls_crypt_loopback
[       OK ] tls_crypt_loopback
[ RUN      ] tls_crypt_loopback_zero_len
[       OK ] tls_crypt_loopback_zero_len
[ RUN      ] tls_crypt_loopback_max_len
[       OK ] tls_crypt_loopback_max_len
[ RUN      ] tls_crypt_fail_msg_too_long
[       OK ] tls_crypt_fail_msg_too_long
[ RUN      ] tls_crypt_fail_invalid_key
[       OK ] tls_crypt_fail_invalid_key
[ RUN      ] tls_crypt_fail_replay
[       OK ] tls_crypt_fail_replay
[ RUN      ] tls_crypt_ignore_replay
[       OK ] tls_crypt_ignore_replay
[ RUN      ] tls_crypt_v2_wrap_unwrap_no_metadata
[       OK ] tls_crypt_v2_wrap_unwrap_no_metadata
[ RUN      ] tls_crypt_v2_wrap_unwrap_max_metadata
[       OK ] tls_crypt_v2_wrap_unwrap_max_metadata
[ RUN      ] tls_crypt_v2_wrap_too_long_metadata
ERROR: could not crypt: insufficient space in dst
[       OK ] tls_crypt_v2_wrap_too_long_metadata
[ RUN      ] tls_crypt_v2_wrap_unwrap_wrong_key
[       OK ] tls_crypt_v2_wrap_unwrap_wrong_key
[ RUN      ] tls_crypt_v2_wrap_unwrap_dst_too_small
[       OK ] tls_crypt_v2_wrap_unwrap_dst_too_small
[ RUN      ] test_tls_crypt_secure_reneg_key
[       OK ] test_tls_crypt_secure_reneg_key
[ RUN      ] test_tls_crypt_v2_write_server_key_file
[  ERROR   ] --- %s() has remaining non-returned values.
test_tls_crypt.c:630: note: remaining item was declared here
__wrap_buffer_write_file: '%s' parameter still has values that haven't been checked.
test_tls_crypt.c:627: note: remaining item was declared here
'%s' parameter still has values that haven't been checked.
test_tls_crypt.c:628: note: remaining item was declared here

[  FAILED  ] test_tls_crypt_v2_write_server_key_file
[ RUN      ] test_tls_crypt_v2_write_client_key_file
[  ERROR   ] --- %s() has remaining non-returned values.
test_tls_crypt.c:644: note: remaining item was declared here
%s() has remaining non-returned values.
test_tls_crypt.c:648: note: remaining item was declared here
__wrap_buffer_write_file: '%s' parameter still has values that haven't been checked.
test_tls_crypt.c:641: note: remaining item was declared here
'%s' parameter still has values that haven't been checked.
test_tls_crypt.c:642: note: remaining item was declared here
__wrap_buffer_read_from_file: '%s' parameter still has values that haven't been checked.
test_tls_crypt.c:647: note: remaining item was declared here

[  FAILED  ] test_tls_crypt_v2_write_client_key_file
[ RUN      ] test_tls_crypt_v2_write_client_key_file_metadata
[  ERROR   ] --- %s() has remaining non-returned values.
test_tls_crypt.c:663: note: remaining item was declared here
%s() has remaining non-returned values.
test_tls_crypt.c:667: note: remaining item was declared here
__wrap_buffer_write_file: '%s' parameter still has values that haven't been checked.
test_tls_crypt.c:660: note: remaining item was declared here
'%s' parameter still has values that haven't been checked.
test_tls_crypt.c:661: note: remaining item was declared here
__wrap_buffer_read_from_file: '%s' parameter still has values that haven't been checked.
test_tls_crypt.c:666: note: remaining item was declared here

[  FAILED  ] test_tls_crypt_v2_write_client_key_file_metadata
[==========] 16 test(s) run.
[  PASSED  ] 13 test(s).
[  FAILED  ] 3 test(s), listed below:
[  FAILED  ] test_tls_crypt_v2_write_server_key_file
[  FAILED  ] test_tls_crypt_v2_write_client_key_file
[  FAILED  ] test_tls_crypt_v2_write_client_key_file_metadata

 3 FAILED TEST(S)
FAIL: tls_crypt_testdriver
[==========] Running 3 test(s).
[ RUN      ] xkey_provider_test_fetch
[       OK ] xkey_provider_test_fetch
[ RUN      ] xkey_provider_test_mgmt_sign_cb
[       OK ] xkey_provider_test_mgmt_sign_cb
[ RUN      ] xkey_provider_test_generic_sign_cb
[       OK ] xkey_provider_test_generic_sign_cb
[==========] 3 test(s) run.
[  PASSED  ] 3 test(s).
PASS: provider_testdriver
====================================================
1 of 10 tests failed
Please report to openvpn-users@lists.sourceforge.net
====================================================
```
Comment 1 Arniiiii 2025-03-20 14:22:23 UTC
Created attachment 921342 [details]
emerge --info
Comment 2 Arniiiii 2025-03-20 14:24:03 UTC
Created attachment 921343 [details]
build.log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-21 19:12:01 UTC
It's the same problem as bug 877741 but see my comments there. -Wl,--wrap can't really work properly with LTO, I think. Need to filter it for tests at least.