Skip to content

Crash on version 20.1 with distributed aggregation and argMax with tuple arguments. #11413

@alexey-milovidov

Description

@alexey-milovidov
clickhouse-benchmark <<< "SELECT 1 FROM remote('127.0.0.{1,2}', numbers(99)) GROUP BY materialize(1) HAVING count() > 0 AND argMax(1, tuple(0))"

The crash is reproducing in version 20.1.
It does not reproduce in 20.3, 20.4 or master.

It also depends on experimental_use_processors setting:

19.14 - by default, experimental_use_processors = 0, the crash does not reproduce regardless to the setting value.
20.1 - by default, experimental_use_processors = 0, the crash is reproducing regardless to the setting value.
20.3 - by default, experimental_use_processors = 1, the crash is reproducing only if you change the setting to 0 manually.
20.4 - by default, experimental_use_processors = 1, the crash is reproducing only if you change the setting to 0 manually.
20.5 - by default, experimental_use_processors = 1, the setting is obsolete and does nothing, the crash does not reproduce.

It means that the bug is already fixed by enabling "processors" in 20.3 and by removing old code in 20.5. But we did not backport the fix.

Currently we have the following releases in support:

20.4 stable
20.3 lts
20.1 stable
19.14 lts

We have to find out the root cause and backport the fix to supported releases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashCrash / segfault / abort

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions