query, report https://gist.github.com/alesapin/c91d9ffd65471c4d8b595219a26a601a.
Full report
https://clickhouse-test-reports.s3.yandex.net/19412/cc2788af881c96701076b366259bc99525d926b1/fuzzer_asan/report.html#fail1
{
        return toRelativeWeekNum(toDayNum(t));
    }
    
    inline unsigned toISOYear(DayNum d) const
    {
        
        return toYear(DayNum(d + 4 - toDayOfWeek(d)));
    }
    inline unsigned toISOYear(time_t t) const
    {
        return toISOYear(toDayNum(t));
    }
    
    
    
    inline DayNum toFirstDayNumOfISOYear(DayNum d) const
    {
        auto iso_year = toISOYear(d);
        DayNum first_day_of_year = years_lut[iso_year - DATE_LUT_MIN_YEAR];
        auto first_day_of_week_of_year = lut[first_day_of_year].day_of_week;
        return DayNum(first_day_of_week_of_year <= 4
            ? first_day_of_year + 1 - first_day_of_week_of_year
            : first_day_of_year + 8 - first_day_of_week_of_year);
    }
    inline DayNum toFirstDayNumOfISOYear(time_t t) const
    {
        return toFirstDayNumOfISOYear(toDayNum(t));
    }
    inline time_t toFirstDayOfISOYear(time_t t) const