Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2KWD-0005K3-KG for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Mar 2019 18:46:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h2KWC-0001QY-Cn for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Mar 2019 18:46:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2KWC-0001Pw-3L for pgsql-bugs@lists.postgresql.org; Fri, 08 Mar 2019 18:46:52 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2KW8-0007cg-F4 for pgsql-bugs@lists.postgresql.org; Fri, 08 Mar 2019 18:46:51 +0000 Received: by mail-wr1-x430.google.com with SMTP id d17so22438048wre.10 for ; Fri, 08 Mar 2019 10:46:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=ZPRdZD5w7MeUNh1kBC3EJPijSRgZ/XWP4B0f3qqhQVo=; b=uWy3gHaV5C49ehPQO4sLxVuMZbLmY0aNhlJOyDMoRr4tpoNZ4YmbQ2He/QvcrvACvl Qxh5CxK7DoR/nClbfapNjfsyN8xRq7jEQO6uUd8O63ZLzKaDWiJ+OG6XYsz4Bz1x1zxe pdKmMWElZXrdNuaofu/h3UlIlPXVPFpr2ji/gaQB00EsqSWGWAWCwhpt6u7wtlndmA9G XEPNa0LCI5o0KFMBhysHRSiiMaiT4flFQG/dlKawGcoyuuFTwTfuBIQMsNL0QkVb+j/P HGA0Mizu55+vDwZR/I0VHAxRoc4CD/S+abbbV9ZwihOf2iarY707OVcDXEU+UhMy+3ZP pBDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=ZPRdZD5w7MeUNh1kBC3EJPijSRgZ/XWP4B0f3qqhQVo=; b=VgMeELNXokRJzW2Kka9agycQhjOMffwQyJz6C35EIRKO+7bg4oHKoxlmCGKxxfZWtZ zLqA0NWso1/hz2PPqCGgaFsQtYaJq4yEE6D/hvlpu9gGG4vsupGsrY/AFh1cJGDTE4al rfEEe8ly0uUTjOFaotvlBBpJpadmMxoSFJvHxNWu/xcr9+9kUH/RjPRg5Cj3n6atS+cj ZNWTLhaVD1xaTA7RNnsLIkKH8/ijdhEE9x1s//Bj/jEfe1LS91aXH8F2jhIpGZe+lHR4 oQ+ZQ0s9VN+1iKG34DMHOo0RYeQL1OQRkJZIpzGM12yTBT3n0uErDZpg46pEVu9XjMTG mpVg== X-Gm-Message-State: APjAAAUsWnQjsbkp9M66zVrFk8XUPyB6g9H43gFpWLLGh0aKtQn+j5eE zHnE9dUbv230fB/2cVt4mhAEt6Fo X-Google-Smtp-Source: APXvYqwvx4iStnCdDqrZo9K7E8MNRWzhiYRRIG9Lr5y4rtib4464Yxzxf1Up8wuBhAEemN0YVfHHDQ== X-Received: by 2002:a5d:4ac6:: with SMTP id y6mr2375156wrs.84.1552070806743; Fri, 08 Mar 2019 10:46:46 -0800 (PST) Received: from [192.168.0.10] ([95.180.47.253]) by smtp.gmail.com with ESMTPSA id k6sm9524495wrq.82.2019.03.08.10.46.45 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Fri, 08 Mar 2019 10:46:46 -0800 (PST) From: =?UTF-8?Q?gmail_Vladimir_Kokovi=c4=87?= Subject: Re: BUG #15653: pg_detoast_datum_packed problem To: pgsql-bugs@lists.postgresql.org References: <15653-a9979a97bd11577d@postgresql.org> Message-ID: <9a06ae25-241a-b3b7-3262-38a015877e18@gmail.com> Date: Fri, 8 Mar 2019 19:46:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, GDB BACKTRACE ------------- GNU gdb (GDB) 8.2.1 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at:     . For help, type "help". Type "apropos word" to search for commands related to "word"... vk qt5printers vk wx5printers vk libpython sys.version_info(major=3, minor=7, micro=2, releaselevel='final', serial=0) Reading symbols from /mnt/sdd1/home/src/postgresql-devel/20190222/bin/postgres...done. [New LWP 4815] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Core was generated by `postgres: vlada ispp-pionir-test ::1(33336) SELECT                            '. Program terminated with signal SIGSEGV, Segmentation fault. #0  0x00007f8888d24f10 in __memcpy_ssse3 () from /usr/lib/libc.so.6 (gdb) bt #0  0x00007f8888d24f10 in __memcpy_ssse3 () from /usr/lib/libc.so.6 #1  0x00007f8889e615ce in pg_bvarchar (fcinfo=0x560c6689fa40) at vkBytea.c:137 #2  0x0000560c6503478c in ExecInterpExpr (state=0x560c6689f488, econtext=0x560c6689e910, isnull=0x7ffe0538847f)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/executor/execExprInterp.c:649 #3  0x0000560c6503672b in ExecInterpExprStillValid (state=0x560c6689f488, econtext=0x560c6689e910, isNull=0x7ffe0538847f)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/executor/execExprInterp.c:1769 #4  0x0000560c6504ccad in ExecEvalExprSwitchContext (state=0x560c6689f488, econtext=0x560c6689e910, isNull=0x7ffe0538847f)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/include/executor/executor.h:308 #5  0x0000560c6504cddd in ExecQual (state=0x560c6689f488, econtext=0x560c6689e910)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/include/executor/executor.h:377 #6  0x0000560c6504d0d2 in ExecScan (node=0x560c6689e7f8, accessMtd=0x560c65080e57 , recheckMtd=0x560c65080f20 )     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/executor/execScan.c:190 #7  0x0000560c65080f6e in ExecSeqScan (pstate=0x560c6689e7f8)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/executor/nodeSeqscan.c:129 #8  0x0000560c6504ad76 in ExecProcNodeFirst (node=0x560c6689e7f8)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/executor/execProcnode.c:445 #9  0x0000560c65082510 in ExecProcNode (node=0x560c6689e7f8)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/include/executor/executor.h:241 #10 0x0000560c65082656 in ExecSort (pstate=0x560c6689e5e0)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/executor/nodeSort.c:107 #11 0x0000560c6504ad76 in ExecProcNodeFirst (node=0x560c6689e5e0)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/executor/execProcnode.c:445 #12 0x0000560c6503f1f9 in ExecProcNode (node=0x560c6689e5e0)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/include/executor/executor.h:241 #13 0x0000560c65041be1 in ExecutePlan (estate=0x560c6689e388, planstate=0x560c6689e5e0, use_parallel_mode=false, operation=CMD_SELECT, sendTuples=true,     numberTuples=0, direction=ForwardScanDirection, dest=0x560c668ef3c8, execute_once=true)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/executor/execMain.c:1644 #14 0x0000560c6503f871 in standard_ExecutorRun (queryDesc=0x560c6693aab8, direction=ForwardScanDirection, count=0, execute_once=true)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/executor/execMain.c:362 #15 0x0000560c6503f695 in ExecutorRun (queryDesc=0x560c6693aab8, direction=ForwardScanDirection, count=0, execute_once=true)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/executor/execMain.c:306 #16 0x0000560c65256540 in PortalRunSelect (portal=0x560c66824048, forward=true, count=0, dest=0x560c668ef3c8)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/tcop/pquery.c:929 --Type for more, q to quit, c to continue without paging-- #17 0x0000560c6525615f in PortalRun (portal=0x560c66824048, count=9223372036854775807, isTopLevel=true, run_once=true, dest=0x560c668ef3c8,     altdest=0x560c668ef3c8, completionTag=0x7ffe05388950 "") at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/tcop/pquery.c:770 #18 0x0000560c6524f797 in exec_simple_query (     query_string=0x560c667b5528 "RELEASE _EXEC_SVP_0x4f3870;SAVEPOINT _EXEC_SVP_0x4f3870;select *,OID from ispp_wmpl where (bvarchar(key))>=(bvarchar('W '::varchar)) and (bvarchar(key))<=(bvarchar('W", '~' , "'::varchar))  order by key")     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/tcop/postgres.c:1215 #19 0x0000560c652541a6 in PostgresMain (argc=1, argv=0x560c667ae488, dbname=0x560c667e1e68 "ispp-pionir-test", username=0x560c667e4020 "vlada")     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/tcop/postgres.c:4256 #20 0x0000560c651a4be9 in BackendRun (port=0x560c667db6f0)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/postmaster/postmaster.c:4382 #21 0x0000560c651a42d1 in BackendStartup (port=0x560c667db6f0)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/postmaster/postmaster.c:4073 #22 0x0000560c651a020d in ServerLoop () at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/postmaster/postmaster.c:1703 #23 0x0000560c6519f999 in PostmasterMain (argc=3, argv=0x560c667ac3c0)     at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/postmaster/postmaster.c:1376 #24 0x0000560c650b941c in main (argc=3, argv=0x560c667ac3c0) at /mnt/sdd1/home/src/postgresql-devel/postgresql-git/postgresql/src/backend/main/main.c:228 (gdb) Vladimir Koković, DP senior(69) Belgrade, Mar. 1 2019 On 25.2.19. 17:37, gmail Vladimir Koković wrote: > The complete primer and source in tar.gz > > On 23.2.19. 21:43, PG Bug reporting form wrote: >> The following bug has been logged on the website: >> >> Bug reference:      15653 >> Logged by:          Vladimir Kokovic >> Email address:      vladimir.kokovic@gmail.com >> PostgreSQL version: Unsupported/Unknown >> Operating system:   linux manjaro >> Description: >> >> This bug I have to report only for sentimental reasons because vkBytea >> system exists since the version of PostgreSQL 7.4! >> vkBytea system serves to restore all elemental PostgreSQL types in bytea >> form. >> It survived all versions in the meantime so that current GIT HEAD would >> report SIGSEGV to the pg_bvarchar method. >> My impression is that the problem is in the method >> pg_detoast_datum_packed >> but i do not understand the reason why.  select * return all rows OK. >> >> The complete primer and source in tar.gz will be sent later. >> > >