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 1kNjIq-00021j-UL for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Sep 2020 21:06:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kNjIo-0001n9-S1 for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Sep 2020 21:06:18 +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 1kNjIo-0001n1-H0 for pgsql-bugs@lists.postgresql.org; Wed, 30 Sep 2020 21:06:18 +0000 Received: from lahtoruutu.iki.fi ([185.185.170.37]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNjIk-00066C-0N for pgsql-bugs@postgresql.org; Wed, 30 Sep 2020 21:06:17 +0000 Received: from [192.168.1.113] (dsl-hkibng22-54faa4-119.dhcp.inet.fi [84.250.164.119]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 19BC81B0032A for ; Thu, 1 Oct 2020 00:06:10 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1601499970; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QAZptmV5XkVZ/FVzFVNqC4WC9Xgq3ZQKqZLgg34ENL8=; b=WM1UBB5GNs+UvFFYtjKyswjGY58npYggkaowjQDFYzcx7ULSLhHutqv+3cWTo0xatgHW3S 4xwvZILH/4ZEwKSVRq/8XWD2bMI9Zjxxq9gVI4UC9GA3ZYrhitMyUA1ixZ5as8jgjdezxH LKazAkne5M3yRDwOFy5keyHrqCw2NLqFGnzkY+8WmRkpo+7q82yWmdJ5UVlHMvOLBtpDpE tGkoxfVK47UQruENtWwkkhv6E7hOe151VdGWgNOi3HIMzcgONAsnbBaPFonv4TJGLE7JiQ kC3H9pL14JvglWKCuvRftE/wweRGoJZ8leNIDYr0yzopxhNYcS4/zlJx7hoo+g== From: Heikki Linnakangas Subject: Assertion failure with 6-dimensional array in PL/python To: Pg Bugs Message-ID: <61647b8e-961c-0362-d5d3-c8a18f4a7ec6@iki.fi> Date: Thu, 1 Oct 2020 00:06:07 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1601499970; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QAZptmV5XkVZ/FVzFVNqC4WC9Xgq3ZQKqZLgg34ENL8=; b=p8kK8yFux+J39/z3zTj3JteQJI4szX41J9WpPgtmBLTvevK+scDTNU9BiUdxQSL4rnQJeP iMWsnNOMfietuUGcHVURRTvHIOsx6p7Yy/APlPsMoaNATiPBtWffRqzhxGjyi40uUO5H2Y 7qkLjLIH+xHohLgTOe6ZWSyzXABGQvdJ+tAiNTaO4V4AxUL7a8eFQz6cJKLS8Z0Xrph3yG BtoaL0lTRhoK7cBAGCMyjP2NmjEEgG+BBYq+fmGK+la4oHFzDKPjybkMg5DX5Gvr6HYQM/ Heq+09wettC9fJrORWJ/dXDeH+Cqx2Vg73W0XO/eZJaDTsQ6qHoIsEmK8UWOyw== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1601499970; a=rsa-sha256; cv=none; b=OXq7zQhaFnD6Q9GqiSrB1ZuB+zKnzk7q7byVoGvjFZEJiaujoCn6X3hMJQaLcMA4mUqwiW 7qQ16Wf75gh8n2KVkJmiBEYALETzMOQJILqzFGhVEKAtGxpTip484GjNx4Qd68Sa5Csz2c XdLqp9UKZpzF8zbSq5X51gaoIQjETmzLLuoUxa3sYg01JGwro0RAu4yMrEpMe2H0h9OLH2 9bvmqO8XO+7QLs6fb9T3lYDamR9kPOouFfQO0aTZo3IVHBDoEIXxeEzFpUjgWOAGiTAB4/ cOg/paWCJH3HYqbw7E22qD1Qjqfr71Sk1n0TRRWS84Or2bSn/lYhuoZC3PdtoQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk create extension plpythonu; -- from 'plpython_types' regression test CREATE FUNCTION test_type_conversion_array_int4(x int4[]) RETURNS int4[] AS $$ plpy.info(x, type(x)) return x $$ LANGUAGE plpythonu; postgres=# SELECT * FROM test_type_conversion_array_int4(ARRAY [[[[[[ 1 ]]]]]]); server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server was lost. Attempting reset: Failed. !?> TRAP: FailedAssertion("!(ndim < 6)", File: "plpy_typeio.c", Line: 686) The assertion looks like this: if (ARR_NDIM(array) == 0) return PyList_New(0); /* Array dimensions and left bounds */ ndim = ARR_NDIM(array); dims = ARR_DIMS(array); Assert(ndim < MAXDIM); <----- I believe that's wrong, it should be "ndim <= MAXDIM". Looks like I introduced this in commit 94aceed317, in v10. I'll go fix that... - Heikki