Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 865269 - app-admin/gixy-0.1.20-r1 fails tests (lto)
Summary: app-admin/gixy-0.1.20-r1 fails tests (lto)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jakov Smolić
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-08-15 18:23 UTC by Agostino Sarubbo
Modified: 2023-04-03 17:40 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,274.54 KB, text/plain)
2022-08-15 18:23 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-08-15 18:23:08 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-admin/gixy-0.1.20-r1 fails tests (lto).
Discovered on: amd64 (internal ref: lto_tinderbox)

NOTE:
This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing

Here is a bit of explanation:

-Werror=lto-type-mismatch:
User to find possible runtime issues in packages. It likely means the package is unsafe to build & use with LTO.
For projects using the same identifier but with different types across different files, they must be fixed to be consistent across the codebase.

-Werror=odr:
Used to find possible runtime issues in packages. These bugs are a problem anyway but may be even worse when combined with LTO. C++ code must comply with the One Definition Rule (ODR) - see https://en.cppreference.com/w/cpp/language/definition#One_Definition_Rule.

-Werror=strict-aliasing:
Used to find possible runtime issues in packages. These bugs are a problem anyway but may be even worse when combined with LTO.

Workarounds:
- If upstream is friendly and still active, file a bug upstream. For emulators, codecs, games, or multimedia packages, it may be worth just applying a workaround instead, as upstreams sometimes aren't receptive to these bugs (VALID FOR ALL).
- Use the new 'filter-lto' from flag-o-matic.eclass as it's likely to be unsafe with LTO (VALID FOR lto-type-mismatch - odr).
- Fix it yourself if interested, of course (VALID FOR ALL).
- Append-flags -fno-strict-aliasing (VALID FOR strict-aliasing).
- Use memcpy() but a union is sometimes suitable too (VALID FOR strict-aliasing).
- -fstrict-aliasing is implied by -O2, so this must be addressed in some form (VALID FOR strict-aliasing).

See also: https://marc.info/?l=gentoo-dev&m=165639574126280&w=2
Comment 1 Agostino Sarubbo gentoo-dev 2022-08-15 18:23:10 UTC
Created attachment 799765 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-08-15 18:23:12 UTC
Error(s) that match a know pattern:


AssertionError: 0 != 1 : Should have one report
AssertionError: Lists differ: [['/e[32 chars][], ['include', 'sites/*.conf;']], ['/etc/ngin[38 chars] []]] != [['/e[32 chars][], [['include', 'sites/*.conf']]], ['/etc/ngi[39 chars] []]]
AssertionError: Lists differ: [['http', [], ['gzip', 'on;']]] != [['http', [], [['gzip', 'on']]]]
AssertionError: Lists differ: [['lo[34 chars][], ['text/html', 'html', 'htm', 'shtml;', 'ap[99 chars]]]]]] != [['lo[34 chars][], [['text/html', 'html', 'htm', 'shtml'], ['[103 chars]]]]]]
FAIL: tests.parser.test_raw_parser.test_block_with_child
FAIL: tests.parser.test_raw_parser.test_file_delims
FAIL: tests.parser.test_raw_parser.test_hash_block_in_location
FAIL: tests.plugins.test_simply.test_from_config('add_header_redefinition', '/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_redefinition/nested_block.conf', {'severity': 'MEDIUM'})
FAIL: tests.plugins.test_simply.test_from_config('add_header_redefinition', '/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_redefinition/step_replaces.conf', {'severity': 'MEDIUM'})
FAILED (errors=98, failures=5)
IndexError: list index out of range
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_multiline/add_header.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_multiline/add_header_fp.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_multiline/more_set_headers.conf": char 17 (line:1, col:18)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_multiline/more_set_headers_fp.conf": char 17 (line:1, col:18)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_multiline/more_set_headers_multiple.conf": char 17 (line:1, col:18)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_multiline/more_set_headers_replace.conf": char 17 (line:1, col:18)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_multiline/more_set_headers_replace_fp.conf": char 17 (line:1, col:18)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_multiline/more_set_headers_status_fp.conf": char 17 (line:1, col:18)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_multiline/more_set_headers_type_fp.conf": char 17 (line:1, col:18)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_redefinition/if_replaces.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_redefinition/location_replaces.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_redefinition/non_block_fp.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_redefinition/not_secure_both_fp.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/add_header_redefinition/not_secure_outer_fp.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/alias_traversal/nested.conf": char 23 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/alias_traversal/nested_fp.conf": char 58 (line:4, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/alias_traversal/not_slashed_alias.conf": char 22 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/alias_traversal/not_slashed_alias_fp.conf": char 23 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/alias_traversal/simple.conf": char 22 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/alias_traversal/simple_fp.conf": char 23 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/alias_traversal/slashed_alias.conf": char 22 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/alias_traversal/slashed_alias_fp.conf": char 23 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/host_spoofing/http_fp.conf": char 17 (line:1, col:18)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/host_spoofing/http_host.conf": char 17 (line:1, col:18)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/host_spoofing/http_host_diff_case.conf": char 17 (line:1, col:18)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/host_spoofing/some_arg.conf": char 17 (line:1, col:18)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/add_header_uri.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/dont_report_not_resolved_var_fp.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/proxy_from_location_var.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/proxy_from_location_var_var.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/proxy_from_location_var_var_fp.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/proxy_from_location_var_var_var.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/proxy_pass_cr_fp.conf": char 12 (line:1, col:13)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/proxy_pass_ducument_uri.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/proxy_pass_lf.conf": char 12 (line:1, col:13)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/proxy_set_header_ducument_uri.conf": char 17 (line:1, col:18)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/return_403_fp.conf": char 7 (line:1, col:8)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/return_request_uri_fp.conf": char 7 (line:1, col:8)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/rewrite_extract_fp.conf": char 8 (line:1, col:9)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/rewrite_uri.conf": char 8 (line:1, col:9)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/http_splitting/rewrite_uri_after_var.conf": char 7 (line:1, col:8)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/origins/metrika.conf": char 114 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/origins/structure_dot.conf": char 51 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/origins/structure_fp.conf": char 52 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/origins/structure_prefix.conf": char 51 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/origins/structure_suffix.conf": char 51 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/origins/webvisor.conf": char 56 (line:3, col:1)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/ssrf/have_internal_fp.conf": char 37 (line:3, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/ssrf/host_w_const_start.conf": char 12 (line:1, col:13)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/ssrf/host_w_const_start_arg.conf": char 25 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/ssrf/not_host_var_fp.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/ssrf/request_uri_fp.conf": char 25 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/ssrf/request_uri_var_fp.conf": char 17 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/ssrf/scheme_var.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/ssrf/single_var.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/ssrf/used_arg.conf": char 23 (line:2, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/ssrf/vars_from_loc.conf": char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/ssrf/with_const_scheme.conf": char 12 (line:1, col:13)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/valid_referers/none_first.conf": char 15 (line:1, col:16)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/valid_referers/none_last.conf": char 15 (line:1, col:16)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/valid_referers/none_middle.conf": char 15 (line:1, col:16)
gixy.parser.nginx_parser: ERROR: Failed to parse config "/var/tmp/portage/app-admin/gixy-0.1.20-r1/work/gixy-0.1.20/tests/plugins/simply/valid_referers/wo_none_fp.conf": char 15 (line:1, col:16)
gixy.parser.nginx_parser: ERROR: Failed to parse config: char 11 (line:1, col:12)
gixy.parser.nginx_parser: ERROR: Failed to parse config: char 127 (line:7, col:1)
gixy.parser.nginx_parser: ERROR: Failed to parse config: char 4 (line:1, col:5)
gixy.parser.nginx_parser: ERROR: Failed to parse config: char 5 (line:1, col:6)
gixy.parser.nginx_parser: ERROR: Failed to parse config: char 8 (line:1, col:9)
Comment 3 Larry the Git Cow gentoo-dev 2023-03-04 22:22:25 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a79cbf3536b9bb208622e1485a604ed6d361cd3

commit 4a79cbf3536b9bb208622e1485a604ed6d361cd3
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2023-03-04 22:19:43 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2023-03-04 22:20:31 +0000

    package.mask: Last rite app-admin/gixy
    
    Bug: https://bugs.gentoo.org/896468
    Bug: https://bugs.gentoo.org/878685
    Bug: https://bugs.gentoo.org/865269
    Bug: https://bugs.gentoo.org/825062
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 profiles/package.mask | 7 +++++++
 1 file changed, 7 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2023-04-03 17:40:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14409377a35ddb8f64f317ae6e2b03e186446a32

commit 14409377a35ddb8f64f317ae6e2b03e186446a32
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2023-04-03 17:38:41 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2023-04-03 17:38:52 +0000

    app-admin/gixy: treeclean
    
    Closes: https://bugs.gentoo.org/896468
    Closes: https://bugs.gentoo.org/825062
    Closes: https://bugs.gentoo.org/865269
    Closes: https://bugs.gentoo.org/878685
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 app-admin/gixy/Manifest                          |  1 -
 app-admin/gixy/files/gixy-0.1.20-backports.patch | 76 ------------------------
 app-admin/gixy/gixy-0.1.20-r1.ebuild             | 28 ---------
 app-admin/gixy/metadata.xml                      | 11 ----
 profiles/package.mask                            |  7 ---
 5 files changed, 123 deletions(-)