Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKfyI-0007Q7-QQ for pgsql-bugs@arkaria.postgresql.org; Mon, 30 Aug 2021 12:01:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mKfyF-000286-DU for pgsql-bugs@arkaria.postgresql.org; Mon, 30 Aug 2021 12:00:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKfyF-00027x-0O for pgsql-bugs@lists.postgresql.org; Mon, 30 Aug 2021 12:00:59 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mKfyC-0007aC-0P for pgsql-bugs@lists.postgresql.org; Mon, 30 Aug 2021 12:00:57 +0000 Received: by mail-lj1-x233.google.com with SMTP id d16so25441826ljq.4 for ; Mon, 30 Aug 2021 05:00:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=aBSQCo0DSagf712N9xvnfWysv4pTKz3n9KZkL6YnhNM=; b=VeR7ltlDYfPiRxtG8pTNoUhG62zr5WhZD1Hpg71001jZkY9knmuxnZ0UVl1LtZafz5 YxFHP9zi2N4QFXYWniJWO0QrhmR23cjkG78hl1ReDrWdiMGXz5II8upSQqngnh5jXAja igj1x5FvBpJrCVsWjdmzSDu2HM2rd5FoVGODWtNVq9OtJvduntJKIo8+caZqdrPVA6OJ vXdB91afA7+kv1ysfen27hw2zWylQJ9zU/T/yiavYMccn4rGmSGfDQTCtmYQkb/MOU2f SHSsL57gP+83tqIQyA8OI3WIQP9iMLIv/wWoOk35vBhvHQSwbTqB9dt+mlfVM8XKF+jO Y57g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=aBSQCo0DSagf712N9xvnfWysv4pTKz3n9KZkL6YnhNM=; b=h/GG4ekMJ0k2h4+iGjWp3rJ+hS7Ddo0fRckcGW9IUX+Vb5a0F8cUaymeqLkfC13c77 yi84+MA+W/QS4tYB3ZBRLlEvE9KVLzYv8iNjx7I9KoBxclRtJ8LaUDNPXNr6Q5Z0bwzF TzGvCmpMyahaogytD6/wrHDGtI9cHgBZMu7oVaMLPb3HGihOJ1oXcwjO5ZyfX1wC/6aU qDlajwxVpb8vaNWwc0+0z1WAaeoS4fF1Z2Aj2Mwfxd0Ch+e6aqHimvXk0phC901wwAt1 gikKbjP5Y6MMbc0IlzelVZ3JcmWoxdfWETHUx2qMWrnRblwyr7OKpEckudWmozxqui9c wCxg== X-Gm-Message-State: AOAM532NleCXKfnywxB/5gL6w/qhghYnJQJ5i+xWE5FENJnUuZ8GoaQe mg2Z3hBTYCy2QmeJrV6l3PQ= X-Google-Smtp-Source: ABdhPJwzusZZb/KdHGuSMh1PcXUo6esT4ZR1t6dyZWN6YqULjJQGHOY3it3vNr0yJ5DZCNjUkiLfeg== X-Received: by 2002:a2e:9a03:: with SMTP id o3mr20652856lji.75.1630324854287; Mon, 30 Aug 2021 05:00:54 -0700 (PDT) Received: from [1.0.0.7] ([178.155.6.221]) by smtp.gmail.com with ESMTPSA id m1sm712090lfc.144.2021.08.30.05.00.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Aug 2021 05:00:53 -0700 (PDT) Subject: Re: BUG #17167: UndefinedBehaviorSanitizer: invalid-shift-exponent while running int4shr/int4shl To: ssubhrajyoti@google.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form References: <17167-028026e4ca333817@postgresql.org> From: Alexander Lakhin Message-ID: Date: Mon, 30 Aug 2021 15:00:51 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <17167-028026e4ca333817@postgresql.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Subhrajyoti, 30.08.2021 12:02, PG Bug reporting form wrote: > Bug reference: 17167 > > When executing in an asan instrumented build, > ``` > postgres=> SELECT int4shr(10, -1); > ``` > throws an error `runtime error: shift exponent 32 is too large for 32-bit > type 'int32' (aka 'int')` This seems like a duplicate of #16790: https://www.postgresql.org/message-id/flat/16790-c2a81c92a8776c5b%40postgresql.org Best regards, Alexander