Created attachment 897423 [details] /var/tmp/portage/kde-apps/dolphin-23.08.5/work/dolphin-23.08.5_build/Testing/Temporary/LastTest.log from /var/tmp/portage/kde-apps/dolphin-23.08.5/work/dolphin-23.08.5_build/Testing/Temporary/LastTest.log : ``` 5/10 Testing: kitemlistcontrollerexpandtest 5/10 Test: kitemlistcontrollerexpandtest Command: "/var/tmp/portage/kde-apps/dolphin-23.08.5/work/dolphin-23.08.5_build/bin/kitemlistcontrollerexpandtest" Directory: /var/tmp/portage/kde-apps/dolphin-23.08.5/work/dolphin-23.08.5_build/src/tests "kitemlistcontrollerexpandtest" start time: Jul 10 17:30 UTC Output: ---------------------------------------------------------- ********* Start testing of KItemListControllerExpandTest ********* Config: Using QtTest library 5.15.14, Qt 5.15.14 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.2.1 20240210), gentoo 2.15 PASS : KItemListControllerExpandTest::initTestCase() QWARN : KItemListControllerExpandTest::testDirExpand() org.kde.dolphin: Invalid item range (index: 7 , count: 0 ) FAIL! : KItemListControllerExpandTest::testDirExpand() 'QTest::qWaitFor( [this]() { return m_spyDirectoryLoadingCompleted->count() == 6; }, 100)' returned FALSE. () Loc: [/var/tmp/portage/kde-apps/dolphin-23.08.5/work/dolphin-23.08.5/src/tests/kitemlistcontrollerexpandtest.cpp(179)] PASS : KItemListControllerExpandTest::cleanupTestCase() Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 1643ms ********* Finished testing of KItemListControllerExpandTest ********* <end of output> Test time = 1.78 sec ---------------------------------------------------------- Test Failed. "kitemlistcontrollerexpandtest" end time: Jul 10 17:30 UTC "kitemlistcontrollerexpandtest" time elapsed: 00:00:01 ---------------------------------------------------------- ```
Created attachment 897424 [details] emerge --info
Created attachment 897425 [details] emerge -pqv '=kde-apps/dolphin-23.08.5::gentoo'
Created attachment 897426 [details] build.log
Created attachment 897427 [details] environment // profile default/linux/amd64/23.0/split-usr/desktop/plasma gcc-13.2.1_p20240210 O3 pipe march=native(verbose) lto graphite ggdb3
Created attachment 897428 [details] /etc/portage/* in `zip -9`
Not reproducible with sane C(XX)FLAGS on two machines of mine.
Created attachment 897457 [details] iteration1.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment Iteration 1: It does NOT happen with -O0 -pipe -ggdb3 -frecord-gcc-switches
Created attachment 897458 [details] iteration2.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment Iteration 2: it does NOT happens when without lto: ``` -O3 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=30720 -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ggdb3 -frecord-gcc-switches ```
Created attachment 897460 [details] iteration3.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment Iteration 3: it does NOT happen with -O2 and LTO: ``` -O2 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=30720 -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -ggdb3 -frecord-gcc-switches ```
Created attachment 897462 [details] iteration4.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment Iteration 4 : it does NOT happen without graphite flags: ``` -O3 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=30720 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -ggdb3 -frecord-gcc-switches ```
Created attachment 897463 [details] iteration5.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment iteration 5: idk why, but with all flags it now passes? what's going on? ``` -O3 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=30720 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ggdb3 -frecord-gcc-switches ```
The test is a "waitFor" which implies it might be timing out or otherwise timing sensitive.. Maybe try repeatedly with each flag?
Interestingly enough, I got same test failure right now, but in another place of the test. It happened when in the same time CPU was compiling 4 packages ( two of them are librewolf and firefox ) in parallel. from `/var/tmp/portage/kde-apps/dolphin-23.08.5-r1/work/dolphin-23.08.5_build/Testing/Temporary/LastTest.log ``` 5/10 Testing: kitemlistcontrollerexpandtest 5/10 Test: kitemlistcontrollerexpandtest Command: "/var/tmp/portage/kde-apps/dolphin-23.08.5-r1/work/dolphin-23.08.5_build/bin/kitemlistcontrollerexpandtest" Directory: /var/tmp/portage/kde-apps/dolphin-23.08.5-r1/work/dolphin-23.08.5_build/src/tests "kitemlistcontrollerexpandtest" start time: Aug 18 02:40 UTC Output: ---------------------------------------------------------- ********* Start testing of KItemListControllerExpandTest ********* Config: Using QtTest library 5.15.14, Qt 5.15.14 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.2.1 20240210), gentoo 2.15 QWARN : KItemListControllerExpandTest::initTestCase() kf.kio.core: KIO Connection server not listening, could not connect QWARN : KItemListControllerExpandTest::initTestCase() kf.kio.core: couldn't create worker: "Can not create a socket for launching a KIO worker for protocol 'file'." QWARN : KItemListControllerExpandTest::initTestCase() kf.kio.core: "Unable to create KIO worker. Can not create a socket for launching a KIO worker for protocol 'file'." FAIL! : KItemListControllerExpandTest::initTestCase() 'm_spyDirectoryLoadingCompleted->wait()' returned FALSE. () Loc: [/var/tmp/portage/kde-apps/dolphin-23.08.5-r1/work/dolphin-23.08.5/src/tests/kitemlistcontrollerexpandtest.cpp(77)] PASS : KItemListControllerExpandTest::cleanupTestCase() Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 5454ms ********* Finished testing of KItemListControllerExpandTest ********* <end of output> Test time = 5.48 sec ---------------------------------------------------------- Test Failed. "kitemlistcontrollerexpandtest" end time: Aug 18 02:40 UTC "kitemlistcontrollerexpandtest" time elapsed: 00:00:05 ---------------------------------------------------------- End testing: Aug 18 02:40 UTC ``` I've repeated emerging the package again under the high CPU load, now test time for the test was not 5.48s , but 10.66s, and it failed in the same way. Then I wrote a simple script to check how many times it fails and with what return code. Here's the bash script: ``` #!/bin/bash POSITIONAL_ARGS=() while [[ $# -gt 0 ]]; do case $1 in -c | --counter) HOW_MANY_TIMES_TO_TRY_THE_PROGRAM="$2" shift # past argument shift # past value ;; -e | --execute) EXECUTABLE_PATH="$2" shift # past argument shift # past value ;; --default) DEFAULT=YES shift # past argument ;; -* | --*) echo "Unknown option $1" exit 1 ;; *) POSITIONAL_ARGS+=("$1") # save positional arg shift # past argument ;; esac done set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters echo "HOW_MANY_TIMES_TO_TRY_THE_PROGRAM = ${HOW_MANY_TIMES_TO_TRY_THE_PROGRAM}" echo "EXECUTABLE_PATH = ${EXECUTABLE_PATH}" echo "DEFAULT = ${DEFAULT}" if [[ -n $1 ]]; then echo "Last line of file specified as non-opt/last argument:" tail -1 "$1" fi for time in $(seq 0 "${HOW_MANY_TIMES_TO_TRY_THE_PROGRAM}"); do ${EXECUTABLE_PATH} ((histogram[$?]++)) done echo "=================================================================================" echo "=================================================================================" echo "=================================================================================" echo "Simple histogram of return codes: ( format: code how_many_times)" for length in "${!histogram[@]}"; do printf "%-1s %s\n" "${length}" "${histogram[$length]}" done ``` The script is called in next way: ``` bash ./test.sh -c 100 -e /var/tmp/portage/kde-apps/dolphin-23.08.5-r1/work/dolphin-23.08.5_build/bin/kitemlistcontrollerexpandtest ``` When no CPU load: ``` Simple histogram of return codes: ( format: code how_many_times) 0 101 ``` When under `strees-ng -c $(nproc) --cpu-load 100`: ``` Simple histogram of return codes: ( format: code how_many_times) 0 78 1 23 ``` When under `strees-ng -c $(nproc) --cpu-load 100` and `stress-ng --fork 100` : ``` Simple histogram of return codes: ( format: code how_many_times) 0 3 1 98 ``` So, I guess Sam's theory seems to be true
Please test with 24.05.2, now that it is stable.
(In reply to Andreas Sturmlechner from comment #14) > Please test with 24.05.2, now that it is stable. I've got same test fail but with SIGSEGV : ``` 4/9 Testing: kitemlistcontrollerexpandtest 4/9 Test: kitemlistcontrollerexpandtest Command: "/var/tmp/portage/kde-apps/dolphin-24.05.2-r1/work/dolphin-24.05.2_build/bin/kitemlistcontrollerexpandtest" Directory: /var/tmp/portage/kde-apps/dolphin-24.05.2-r1/work/dolphin-24.05.2_build/src/tests "kitemlistcontrollerexpandtest" start time: Sep 04 18:28 UTC Output: ---------------------------------------------------------- ********* Start testing of KItemListControllerExpandTest ********* Config: Using QtTest library 6.7.2, Qt 6.7.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.3.1 20240614), gentoo 2.15 Received signal 11 (SIGSEGV), code 1, for address 0x0000000000000008 initTestCase function time: 61ms, total time: 61ms <end of output> Test time = 0.08 sec ---------------------------------------------------------- Test Failed. "kitemlistcontrollerexpandtest" end time: Sep 04 18:28 UTC "kitemlistcontrollerexpandtest" time elapsed: 00:00:00 ---------------------------------------------------------- ``` I'll check again later after full world update