I'm testing a complex tainttracking query on linux-v6.0 (with allyesconfig ) database.
The same query has been tested on LGTM.com's standard linux database, which takes about 20 minutes to get results.
And then I wanna query it on the allyesconfig databsae, but it never terminates....
Here is my CLI cmd:
codeql database analyze --format=sarifv2.1.0 --output=$OUTPUT --max-paths=8 --threads=XX -- $DATABASE_PATH path:$QUERY_PATH
To find the reason, I checked logs at my_database/log/execute-queries-xxxx.log and fould this:
[2022-12-14 08:53:19] (4449s) Starting to evaluate predicate project#wrapper#0cebb359::isWrapperSpec#5#fffbf/3@517080lf
[2022-12-14 08:53:19] (4450s) >>> Created relation project#wrapper#0cebb359::isWrapperSpec#5#fffbf/3@517080lf with 1515034 rows.
[2022-12-14 08:53:19] (4450s) Starting to evaluate predicate project#wrapper#0cebb359::isWrapperSpec#5#fffbf_102#join_rhs/3@f6626c04
[2022-12-14 08:53:20] (4450s) >>> Created relation project#wrapper#0cebb359::isWrapperSpec#5#fffbf_102#join_rhs/3@f6626c04 with 1359358 rows.
[2022-12-14 08:53:20] (4450s) Starting to evaluate predicate m##DataFlowUtil#7572fbec::localFlowStep#2Plus#bf/1@caa8b1gl
[2022-12-14 08:53:58] (4488s) Pausing evaluation to evict 245.78MiB ARRAYS at sequence stamp o+475889330
[2022-12-14 08:53:58] (4488s) Unpausing evaluation: 455.47MiB forgotten: 455.47MiB UNREACHABLE (1876 items up to o+475889328)
[2022-12-14 08:54:46] (4537s) Pausing evaluation to evict 245.98MiB ARRAYS at sequence stamp o+475964519
[2022-12-14 08:54:46] (4537s) Unpausing evaluation: 452.69MiB forgotten: 452.69MiB UNREACHABLE (1969 items up to o+475964245)
[2022-12-14 08:55:37] (4587s) Pausing evaluation to evict 246.10MiB ARRAYS at sequence stamp o+476034009
[2022-12-14 08:55:37] (4587s) Unpausing evaluation: 450.14MiB forgotten: 450.14MiB UNREACHABLE (1963 items up to o+476034008)
[2022-12-14 08:56:27] (4638s) Pausing evaluation to evict 245.78MiB ARRAYS at sequence stamp o+476102026
[2022-12-14 08:56:27] (4638s) Unpausing evaluation: 454.03MiB forgotten: 454.03MiB UNREACHABLE (1981 items up to o+476102024)
[2022-12-14 08:57:17] (4687s) Pausing evaluation to evict 245.94MiB ARRAYS at sequence stamp o+476171343
[2022-12-14 08:57:17] (4687s) Unpausing evaluation: 448.84MiB forgotten: 448.84MiB UNREACHABLE (1958 items up to o+476171039)
[2022-12-14 08:58:00] (4730s) Pausing evaluation to evict 245.94MiB ARRAYS at sequence stamp o+476238995
[2022-12-14 08:58:00] (4730s) Unpausing evaluation: 448.53MiB forgotten: 448.53MiB UNREACHABLE (1956 items up to o+476238994)
[2022-12-14 08:58:41] (4771s) Pausing evaluation to evict 246.01MiB ARRAYS at sequence stamp o+476301895
[2022-12-14 08:58:41] (4771s) Unpausing evaluation: 447.84MiB forgotten: 447.84MiB UNREACHABLE (1953 items up to o+476301894)
[2022-12-14 08:59:29] (4819s) Pausing evaluation to evict 245.78MiB ARRAYS at sequence stamp o+476370551
[2022-12-14 08:59:29] (4819s) Unpausing evaluation: 447.61MiB forgotten: 447.61MiB UNREACHABLE (1952 items up to o+476370550)
[2022-12-14 09:00:16] (4867s) Pausing evaluation to evict 245.81MiB ARRAYS at sequence stamp o+476444164
[2022-12-14 09:00:16] (4867s) Unpausing evaluation: 449.71MiB forgotten: 449.71MiB UNREACHABLE (1956 items up to o+476443972)
[2022-12-14 09:01:03] (4913s) Pausing evaluation to evict 245.94MiB ARRAYS at sequence stamp o+476514265
[2022-12-14 09:01:03] (4913s) Unpausing evaluation: 450.90MiB forgotten: 450.90MiB UNREACHABLE (1967 items up to o+476514238)
[2022-12-14 09:01:47] (4957s) Pausing evaluation to evict 245.94MiB ARRAYS at sequence stamp o+476576269
After (4450s), the log just "repeats" over and over.
A similar query I ran before took more than 20 DAYs~ XD
I know exactly there are someing severely wrong in my query, but I dont know how to find/fix it, please help me T-T
I'm testing a complex tainttracking query on linux-v6.0 (with
allyesconfig) database.The same query has been tested on
LGTM.com's standard linux database, which takes about 20 minutes to get results.And then I wanna query it on the
allyesconfigdatabsae, but it never terminates....Here is my CLI cmd:
codeql database analyze --format=sarifv2.1.0 --output=$OUTPUT --max-paths=8 --threads=XX -- $DATABASE_PATH path:$QUERY_PATHTo find the reason, I checked logs at
my_database/log/execute-queries-xxxx.logand fould this:After
(4450s), the log just "repeats" over and over.A similar query I ran before took more than 20 DAYs~ XD
I know exactly there are someing severely wrong in my query, but I dont know how to find/fix it, please help me T-T