btree_gist macaddr valgrind woes

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: btree_gist macaddr valgrind woes
Date: 2014-05-16 10:28:53
Message-ID: 20140516102853.GA28158@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

After Heikki has fixed the bit btree_gist bugs my valgrind run shows a
bug in macaddr.

Presumably it's because the type is a fixed width type with a length of
6. I guess it's allocating stuff sizeof(macaddr) but then passes the
result around as a Datum which doesn't work well.

==14219== Invalid read of size 8
==14219== at 0x4C2BB50: memcpy@@GLIBC_2.14 (mc_replace_strmem.c:882)
==14219== by 0x45FA01: heap_fill_tuple (heaptuple.c:248)
==14219== by 0x4629A7: index_form_tuple (indextuple.c:132)
==14219== by 0x48ED05: gistFormTuple (gistutil.c:611)
==14219== by 0x499801: gistBuildCallback (gistbuild.c:476)
==14219== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14219== by 0x4991D4: gistbuild (gistbuild.c:209)
==14219== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14219== by 0x52F816: index_build (index.c:1962)
==14219== by 0x52E79D: index_create (index.c:1083)
==14219== by 0x5E9253: DefineIndex (indexcmds.c:600)
==14219== by 0x7A4DED: ProcessUtilitySlow (utility.c:1149)
==14219== Address 0x67d37a0 is 8 bytes inside a block of size 12 client-defined
==14219== at 0x8FB83A: palloc0 (mcxt.c:698)
==14219== by 0x6B6C3C4: gbt_num_compress (btree_utils_num.c:31)
==14219== by 0x6B74BF1: gbt_macad_compress (btree_macaddr.c:113)
==14219== by 0x8D73E2: FunctionCall1Coll (fmgr.c:1298)
==14219== by 0x48EB39: gistcentryinit (gistutil.c:576)
==14219== by 0x48ECA1: gistFormTuple (gistutil.c:603)
==14219== by 0x499801: gistBuildCallback (gistbuild.c:476)
==14219== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14219== by 0x4991D4: gistbuild (gistbuild.c:209)
==14219== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14219== by 0x52F816: index_build (index.c:1962)
==14219== by 0x52E79D: index_create (index.c:1083)
==14219==
==14219== Invalid read of size 8
==14219== at 0x4C2BA70: memcpy@@GLIBC_2.14 (mc_replace_strmem.c:882)
==14219== by 0x45FA01: heap_fill_tuple (heaptuple.c:248)
==14219== by 0x4629A7: index_form_tuple (indextuple.c:132)
==14219== by 0x48ED05: gistFormTuple (gistutil.c:611)
==14219== by 0x48C755: gistSplit (gist.c:1314)
==14219== by 0x488ED4: gistplacetopage (gist.c:242)
==14219== by 0x48C025: gistinserttuples (gist.c:1134)
==14219== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14219== by 0x48AC56: gistdoinsert (gist.c:750)
==14219== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14219== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14219== by 0x4991D4: gistbuild (gistbuild.c:209)
==14219== Address 0x67dba58 is 8 bytes inside a block of size 12 client-defined
==14219== at 0x8FB6D2: palloc (mcxt.c:678)
==14219== by 0x6B74D04: gbt_macad_union (btree_macaddr.c:145)
==14219== by 0x8D74D0: FunctionCall2Coll (fmgr.c:1324)
==14219== by 0x48D7C8: gistMakeUnionItVec (gistutil.c:198)
==14219== by 0x496E8E: gistunionsubkeyvec (gistsplit.c:64)
==14219== by 0x496F05: gistunionsubkey (gistsplit.c:91)
==14219== by 0x498981: gistSplitByKey (gistsplit.c:689)
==14219== by 0x48C423: gistSplit (gist.c:1270)
==14219== by 0x488ED4: gistplacetopage (gist.c:242)
==14219== by 0x48C025: gistinserttuples (gist.c:1134)
==14219== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14219== by 0x48AC56: gistdoinsert (gist.c:750)
==14219==
==14250== Uninitialised byte(s) found during client check request
==14250== at 0x794E9F: PageAddItem (bufpage.c:314)
==14250== by 0x48CC95: gistfillbuffer (gistutil.c:42)
==14250== by 0x489CBC: gistplacetopage (gist.c:451)
==14250== by 0x48C025: gistinserttuples (gist.c:1134)
==14250== by 0x48C31C: gistfinishsplit (gist.c:1240)
==14250== by 0x48C0F5: gistinserttuples (gist.c:1159)
==14250== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14250== by 0x48AC56: gistdoinsert (gist.c:750)
==14250== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14250== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14250== by 0x4991D4: gistbuild (gistbuild.c:209)
==14250== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14250== Address 0x6efbcfb is 19 bytes inside a block of size 40 client-defined
==14250== at 0x8FB83A: palloc0 (mcxt.c:698)
==14250== by 0x462954: index_form_tuple (indextuple.c:129)
==14250== by 0x48ED05: gistFormTuple (gistutil.c:611)
==14250== by 0x48C618: gistSplit (gist.c:1292)
==14250== by 0x488ED4: gistplacetopage (gist.c:242)
==14250== by 0x48C025: gistinserttuples (gist.c:1134)
==14250== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14250== by 0x48AC56: gistdoinsert (gist.c:750)
==14250== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14250== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14250== by 0x4991D4: gistbuild (gistbuild.c:209)
==14250== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14250== Uninitialised value was created by a heap allocation
==14250== at 0x8FB6D2: palloc (mcxt.c:678)
==14250== by 0x6B6CFCE: gbt_var_key_copy (btree_utils_var.c:82)
==14250== by 0x6B6D4F1: gbt_var_bin_union (btree_utils_var.c:256)
==14250== by 0x6B6DF47: gbt_var_picksplit (btree_utils_var.c:502)
==14250== by 0x6B75C45: gbt_text_picksplit (btree_text.c:215)
==14250== by 0x8D74D0: FunctionCall2Coll (fmgr.c:1324)
==14250== by 0x497C38: gistUserPicksplit (gistsplit.c:433)
==14250== by 0x4989C8: gistSplitByKey (gistsplit.c:697)
==14250== by 0x48C423: gistSplit (gist.c:1270)
==14250== by 0x488ED4: gistplacetopage (gist.c:242)
==14250== by 0x48C025: gistinserttuples (gist.c:1134)
==14250== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14250==
==14259== Uninitialised byte(s) found during client check request
==14259== at 0x794E9F: PageAddItem (bufpage.c:314)
==14259== by 0x48CC95: gistfillbuffer (gistutil.c:42)
==14259== by 0x489CBC: gistplacetopage (gist.c:451)
==14259== by 0x48C025: gistinserttuples (gist.c:1134)
==14259== by 0x48C31C: gistfinishsplit (gist.c:1240)
==14259== by 0x48C0F5: gistinserttuples (gist.c:1159)
==14259== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14259== by 0x48AC56: gistdoinsert (gist.c:750)
==14259== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14259== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14259== by 0x4991D4: gistbuild (gistbuild.c:209)
==14259== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14259== Address 0x69928c3 is 19 bytes inside a block of size 40 client-defined
==14259== at 0x8FB83A: palloc0 (mcxt.c:698)
==14259== by 0x462954: index_form_tuple (indextuple.c:129)
==14259== by 0x48ED05: gistFormTuple (gistutil.c:611)
==14259== by 0x48C618: gistSplit (gist.c:1292)
==14259== by 0x488ED4: gistplacetopage (gist.c:242)
==14259== by 0x48C025: gistinserttuples (gist.c:1134)
==14259== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14259== by 0x48AC56: gistdoinsert (gist.c:750)
==14259== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14259== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14259== by 0x4991D4: gistbuild (gistbuild.c:209)
==14259== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14259== Uninitialised value was created by a heap allocation
==14259== at 0x8FB6D2: palloc (mcxt.c:678)
==14259== by 0x6B6CFCE: gbt_var_key_copy (btree_utils_var.c:82)
==14259== by 0x6B6D4F1: gbt_var_bin_union (btree_utils_var.c:256)
==14259== by 0x6B6DF47: gbt_var_picksplit (btree_utils_var.c:502)
==14259== by 0x6B75C45: gbt_text_picksplit (btree_text.c:215)
==14259== by 0x8D74D0: FunctionCall2Coll (fmgr.c:1324)
==14259== by 0x497C38: gistUserPicksplit (gistsplit.c:433)
==14259== by 0x4989C8: gistSplitByKey (gistsplit.c:697)
==14259== by 0x48C423: gistSplit (gist.c:1270)
==14259== by 0x488ED4: gistplacetopage (gist.c:242)
==14259== by 0x48C025: gistinserttuples (gist.c:1134)
==14259== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14259==
==14269== Uninitialised byte(s) found during client check request
==14269== at 0x794E9F: PageAddItem (bufpage.c:314)
==14269== by 0x48CC95: gistfillbuffer (gistutil.c:42)
==14269== by 0x489CBC: gistplacetopage (gist.c:451)
==14269== by 0x48C025: gistinserttuples (gist.c:1134)
==14269== by 0x48C31C: gistfinishsplit (gist.c:1240)
==14269== by 0x48C0F5: gistinserttuples (gist.c:1159)
==14269== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14269== by 0x48AC56: gistdoinsert (gist.c:750)
==14269== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14269== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14269== by 0x4991D4: gistbuild (gistbuild.c:209)
==14269== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14269== Address 0x6866163 is 19 bytes inside a block of size 40 client-defined
==14269== at 0x8FB83A: palloc0 (mcxt.c:698)
==14269== by 0x462954: index_form_tuple (indextuple.c:129)
==14269== by 0x48ED05: gistFormTuple (gistutil.c:611)
==14269== by 0x48C618: gistSplit (gist.c:1292)
==14269== by 0x488ED4: gistplacetopage (gist.c:242)
==14269== by 0x48C025: gistinserttuples (gist.c:1134)
==14269== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14269== by 0x48AC56: gistdoinsert (gist.c:750)
==14269== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14269== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14269== by 0x4991D4: gistbuild (gistbuild.c:209)
==14269== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14269== Uninitialised value was created by a heap allocation
==14269== at 0x8FB6D2: palloc (mcxt.c:678)
==14269== by 0x6B6CFCE: gbt_var_key_copy (btree_utils_var.c:82)
==14269== by 0x6B6D4F1: gbt_var_bin_union (btree_utils_var.c:256)
==14269== by 0x6B6DF47: gbt_var_picksplit (btree_utils_var.c:502)
==14269== by 0x6B75C45: gbt_text_picksplit (btree_text.c:215)
==14269== by 0x8D74D0: FunctionCall2Coll (fmgr.c:1324)
==14269== by 0x497C38: gistUserPicksplit (gistsplit.c:433)
==14269== by 0x4989C8: gistSplitByKey (gistsplit.c:697)
==14269== by 0x48C423: gistSplit (gist.c:1270)
==14269== by 0x488ED4: gistplacetopage (gist.c:242)
==14269== by 0x48C025: gistinserttuples (gist.c:1134)
==14269== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14269==
==14280== Uninitialised byte(s) found during client check request
==14280== at 0x794E9F: PageAddItem (bufpage.c:314)
==14280== by 0x48CC95: gistfillbuffer (gistutil.c:42)
==14280== by 0x489CBC: gistplacetopage (gist.c:451)
==14280== by 0x48C025: gistinserttuples (gist.c:1134)
==14280== by 0x48C31C: gistfinishsplit (gist.c:1240)
==14280== by 0x48C0F5: gistinserttuples (gist.c:1159)
==14280== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14280== by 0x48AC56: gistdoinsert (gist.c:750)
==14280== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14280== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14280== by 0x4991D4: gistbuild (gistbuild.c:209)
==14280== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14280== Address 0x695d36f is 15 bytes inside a block of size 24 client-defined
==14280== at 0x8FB83A: palloc0 (mcxt.c:698)
==14280== by 0x462954: index_form_tuple (indextuple.c:129)
==14280== by 0x48ED05: gistFormTuple (gistutil.c:611)
==14280== by 0x48C618: gistSplit (gist.c:1292)
==14280== by 0x488ED4: gistplacetopage (gist.c:242)
==14280== by 0x48C025: gistinserttuples (gist.c:1134)
==14280== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14280== by 0x48AC56: gistdoinsert (gist.c:750)
==14280== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14280== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14280== by 0x4991D4: gistbuild (gistbuild.c:209)
==14280== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14280== Uninitialised value was created by a heap allocation
==14280== at 0x8FB6D2: palloc (mcxt.c:678)
==14280== by 0x6B6D344: gbt_var_node_truncate (btree_utils_var.c:204)
==14280== by 0x6B6E04B: gbt_var_picksplit (btree_utils_var.c:520)
==14280== by 0x6B76063: gbt_bytea_picksplit (btree_bytea.c:143)
==14280== by 0x8D74D0: FunctionCall2Coll (fmgr.c:1324)
==14280== by 0x497C38: gistUserPicksplit (gistsplit.c:433)
==14280== by 0x4989C8: gistSplitByKey (gistsplit.c:697)
==14280== by 0x48C423: gistSplit (gist.c:1270)
==14280== by 0x488ED4: gistplacetopage (gist.c:242)
==14280== by 0x48C025: gistinserttuples (gist.c:1134)
==14280== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14280== by 0x48AC56: gistdoinsert (gist.c:750)
==14280==
==14292== Uninitialised byte(s) found during client check request
==14292== at 0x794E9F: PageAddItem (bufpage.c:314)
==14292== by 0x48966C: gistplacetopage (gist.c:357)
==14292== by 0x48C025: gistinserttuples (gist.c:1134)
==14292== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14292== by 0x48AC56: gistdoinsert (gist.c:750)
==14292== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14292== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14292== by 0x4991D4: gistbuild (gistbuild.c:209)
==14292== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14292== by 0x52F816: index_build (index.c:1962)
==14292== by 0x52E79D: index_create (index.c:1083)
==14292== by 0x5E9253: DefineIndex (indexcmds.c:600)
==14292== Address 0x67e408f is 15 bytes inside a block of size 40 client-defined
==14292== at 0x8FB6D2: palloc (mcxt.c:678)
==14292== by 0x48D0D3: gistfillitupvec (gistutil.c:133)
==14292== by 0x489569: gistplacetopage (gist.c:325)
==14292== by 0x48C025: gistinserttuples (gist.c:1134)
==14292== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14292== by 0x48AC56: gistdoinsert (gist.c:750)
==14292== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14292== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14292== by 0x4991D4: gistbuild (gistbuild.c:209)
==14292== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14292== by 0x52F816: index_build (index.c:1962)
==14292== by 0x52E79D: index_create (index.c:1083)
==14292== Uninitialised value was created by a heap allocation
==14292== at 0x8FB6D2: palloc (mcxt.c:678)
==14292== by 0x6B6D344: gbt_var_node_truncate (btree_utils_var.c:204)
==14292== by 0x6B6D6DA: gbt_var_union (btree_utils_var.c:325)
==14292== by 0x6B76591: gbt_bit_union (btree_bit.c:173)
==14292== by 0x8D74D0: FunctionCall2Coll (fmgr.c:1324)
==14292== by 0x48D7C8: gistMakeUnionItVec (gistutil.c:198)
==14292== by 0x496E8E: gistunionsubkeyvec (gistsplit.c:64)
==14292== by 0x496F05: gistunionsubkey (gistsplit.c:91)
==14292== by 0x498981: gistSplitByKey (gistsplit.c:689)
==14292== by 0x48C423: gistSplit (gist.c:1270)
==14292== by 0x488ED4: gistplacetopage (gist.c:242)
==14292== by 0x48C025: gistinserttuples (gist.c:1134)
==14292==
==14292== Uninitialised byte(s) found during client check request
==14292== at 0x794E9F: PageAddItem (bufpage.c:314)
==14292== by 0x48CC95: gistfillbuffer (gistutil.c:42)
==14292== by 0x489CBC: gistplacetopage (gist.c:451)
==14292== by 0x48C025: gistinserttuples (gist.c:1134)
==14292== by 0x48C31C: gistfinishsplit (gist.c:1240)
==14292== by 0x48C0F5: gistinserttuples (gist.c:1159)
==14292== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14292== by 0x48AC56: gistdoinsert (gist.c:750)
==14292== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14292== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14292== by 0x4991D4: gistbuild (gistbuild.c:209)
==14292== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14292== Address 0x6801e57 is 15 bytes inside a block of size 24 client-defined
==14292== at 0x8FB83A: palloc0 (mcxt.c:698)
==14292== by 0x462954: index_form_tuple (indextuple.c:129)
==14292== by 0x48ED05: gistFormTuple (gistutil.c:611)
==14292== by 0x48C755: gistSplit (gist.c:1314)
==14292== by 0x488ED4: gistplacetopage (gist.c:242)
==14292== by 0x48C025: gistinserttuples (gist.c:1134)
==14292== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14292== by 0x48AC56: gistdoinsert (gist.c:750)
==14292== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14292== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14292== by 0x4991D4: gistbuild (gistbuild.c:209)
==14292== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14292== Uninitialised value was created by a heap allocation
==14292== at 0x8FB6D2: palloc (mcxt.c:678)
==14292== by 0x6B6D344: gbt_var_node_truncate (btree_utils_var.c:204)
==14292== by 0x6B6E028: gbt_var_picksplit (btree_utils_var.c:519)
==14292== by 0x6B765D5: gbt_bit_picksplit (btree_bit.c:184)
==14292== by 0x8D74D0: FunctionCall2Coll (fmgr.c:1324)
==14292== by 0x497C38: gistUserPicksplit (gistsplit.c:433)
==14292== by 0x4989C8: gistSplitByKey (gistsplit.c:697)
==14292== by 0x48C423: gistSplit (gist.c:1270)
==14292== by 0x488ED4: gistplacetopage (gist.c:242)
==14292== by 0x48C025: gistinserttuples (gist.c:1134)
==14292== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14292== by 0x48AC56: gistdoinsert (gist.c:750)
==14292==
==14299== Uninitialised byte(s) found during client check request
==14299== at 0x794E9F: PageAddItem (bufpage.c:314)
==14299== by 0x48966C: gistplacetopage (gist.c:357)
==14299== by 0x48C025: gistinserttuples (gist.c:1134)
==14299== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14299== by 0x48AC56: gistdoinsert (gist.c:750)
==14299== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14299== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14299== by 0x4991D4: gistbuild (gistbuild.c:209)
==14299== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14299== by 0x52F816: index_build (index.c:1962)
==14299== by 0x52E79D: index_create (index.c:1083)
==14299== by 0x5E9253: DefineIndex (indexcmds.c:600)
==14299== Address 0x6877827 is 15 bytes inside a block of size 40 client-defined
==14299== at 0x8FB6D2: palloc (mcxt.c:678)
==14299== by 0x48D0D3: gistfillitupvec (gistutil.c:133)
==14299== by 0x489569: gistplacetopage (gist.c:325)
==14299== by 0x48C025: gistinserttuples (gist.c:1134)
==14299== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14299== by 0x48AC56: gistdoinsert (gist.c:750)
==14299== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14299== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14299== by 0x4991D4: gistbuild (gistbuild.c:209)
==14299== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14299== by 0x52F816: index_build (index.c:1962)
==14299== by 0x52E79D: index_create (index.c:1083)
==14299== Uninitialised value was created by a heap allocation
==14299== at 0x8FB6D2: palloc (mcxt.c:678)
==14299== by 0x6B6D344: gbt_var_node_truncate (btree_utils_var.c:204)
==14299== by 0x6B6D6DA: gbt_var_union (btree_utils_var.c:325)
==14299== by 0x6B76591: gbt_bit_union (btree_bit.c:173)
==14299== by 0x8D74D0: FunctionCall2Coll (fmgr.c:1324)
==14299== by 0x48D7C8: gistMakeUnionItVec (gistutil.c:198)
==14299== by 0x496E8E: gistunionsubkeyvec (gistsplit.c:64)
==14299== by 0x496F05: gistunionsubkey (gistsplit.c:91)
==14299== by 0x498981: gistSplitByKey (gistsplit.c:689)
==14299== by 0x48C423: gistSplit (gist.c:1270)
==14299== by 0x488ED4: gistplacetopage (gist.c:242)
==14299== by 0x48C025: gistinserttuples (gist.c:1134)
==14299==
==14299== Uninitialised byte(s) found during client check request
==14299== at 0x794E9F: PageAddItem (bufpage.c:314)
==14299== by 0x48CC95: gistfillbuffer (gistutil.c:42)
==14299== by 0x489CBC: gistplacetopage (gist.c:451)
==14299== by 0x48C025: gistinserttuples (gist.c:1134)
==14299== by 0x48C31C: gistfinishsplit (gist.c:1240)
==14299== by 0x48C0F5: gistinserttuples (gist.c:1159)
==14299== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14299== by 0x48AC56: gistdoinsert (gist.c:750)
==14299== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14299== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14299== by 0x4991D4: gistbuild (gistbuild.c:209)
==14299== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14299== Address 0x6891bf7 is 15 bytes inside a block of size 24 client-defined
==14299== at 0x8FB83A: palloc0 (mcxt.c:698)
==14299== by 0x462954: index_form_tuple (indextuple.c:129)
==14299== by 0x48ED05: gistFormTuple (gistutil.c:611)
==14299== by 0x48C755: gistSplit (gist.c:1314)
==14299== by 0x488ED4: gistplacetopage (gist.c:242)
==14299== by 0x48C025: gistinserttuples (gist.c:1134)
==14299== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14299== by 0x48AC56: gistdoinsert (gist.c:750)
==14299== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14299== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14299== by 0x4991D4: gistbuild (gistbuild.c:209)
==14299== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14299== Uninitialised value was created by a heap allocation
==14299== at 0x8FB6D2: palloc (mcxt.c:678)
==14299== by 0x6B6D344: gbt_var_node_truncate (btree_utils_var.c:204)
==14299== by 0x6B6E028: gbt_var_picksplit (btree_utils_var.c:519)
==14299== by 0x6B765D5: gbt_bit_picksplit (btree_bit.c:184)
==14299== by 0x8D74D0: FunctionCall2Coll (fmgr.c:1324)
==14299== by 0x497C38: gistUserPicksplit (gistsplit.c:433)
==14299== by 0x4989C8: gistSplitByKey (gistsplit.c:697)
==14299== by 0x48C423: gistSplit (gist.c:1270)
==14299== by 0x488ED4: gistplacetopage (gist.c:242)
==14299== by 0x48C025: gistinserttuples (gist.c:1134)
==14299== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14299== by 0x48AC56: gistdoinsert (gist.c:750)
==14299==
==14310== Uninitialised byte(s) found during client check request
==14310== at 0x794E9F: PageAddItem (bufpage.c:314)
==14310== by 0x48CC95: gistfillbuffer (gistutil.c:42)
==14310== by 0x489CBC: gistplacetopage (gist.c:451)
==14310== by 0x48C025: gistinserttuples (gist.c:1134)
==14310== by 0x48C31C: gistfinishsplit (gist.c:1240)
==14310== by 0x48C0F5: gistinserttuples (gist.c:1159)
==14310== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14310== by 0x48AC56: gistdoinsert (gist.c:750)
==14310== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14310== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14310== by 0x4991D4: gistbuild (gistbuild.c:209)
==14310== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14310== Address 0x6ab666f is 23 bytes inside a block of size 48 client-defined
==14310== at 0x8FB83A: palloc0 (mcxt.c:698)
==14310== by 0x462954: index_form_tuple (indextuple.c:129)
==14310== by 0x48ED05: gistFormTuple (gistutil.c:611)
==14310== by 0x48C618: gistSplit (gist.c:1292)
==14310== by 0x488ED4: gistplacetopage (gist.c:242)
==14310== by 0x48C025: gistinserttuples (gist.c:1134)
==14310== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14310== by 0x48AC56: gistdoinsert (gist.c:750)
==14310== by 0x49985B: gistBuildCallback (gistbuild.c:490)
==14310== by 0x530412: IndexBuildHeapScan (index.c:2460)
==14310== by 0x4991D4: gistbuild (gistbuild.c:209)
==14310== by 0x8D813B: OidFunctionCall3Coll (fmgr.c:1650)
==14310== Uninitialised value was created by a heap allocation
==14310== at 0x8FB6D2: palloc (mcxt.c:678)
==14310== by 0x6B6CFCE: gbt_var_key_copy (btree_utils_var.c:82)
==14310== by 0x6B6D4F1: gbt_var_bin_union (btree_utils_var.c:256)
==14310== by 0x6B6DF47: gbt_var_picksplit (btree_utils_var.c:502)
==14310== by 0x6B76D27: gbt_numeric_picksplit (btree_numeric.c:235)
==14310== by 0x8D74D0: FunctionCall2Coll (fmgr.c:1324)
==14310== by 0x497C38: gistUserPicksplit (gistsplit.c:433)
==14310== by 0x4989C8: gistSplitByKey (gistsplit.c:697)
==14310== by 0x48C423: gistSplit (gist.c:1270)
==14310== by 0x488ED4: gistplacetopage (gist.c:242)
==14310== by 0x48C025: gistinserttuples (gist.c:1134)
==14310== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14310==
==14325== Uninitialised byte(s) found during client check request
==14325== at 0x794E9F: PageAddItem (bufpage.c:314)
==14325== by 0x48966C: gistplacetopage (gist.c:357)
==14325== by 0x48C025: gistinserttuples (gist.c:1134)
==14325== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14325== by 0x48AC56: gistdoinsert (gist.c:750)
==14325== by 0x488B81: gistinsert (gist.c:132)
==14325== by 0x8D7964: FunctionCall6Coll (fmgr.c:1437)
==14325== by 0x4C3EB8: index_insert (indexam.c:226)
==14325== by 0x647F8B: ExecInsertIndexTuples (execUtils.c:1103)
==14325== by 0x65BC55: ExecInsert (nodeModifyTable.c:274)
==14325== by 0x65CE33: ExecModifyTable (nodeModifyTable.c:1025)
==14325== by 0x639EC2: ExecProcNode (execProcnode.c:377)
==14325== Address 0x6df3d6b is 35 bytes inside a block of size 96 client-defined
==14325== at 0x8FB6D2: palloc (mcxt.c:678)
==14325== by 0x48D0D3: gistfillitupvec (gistutil.c:133)
==14325== by 0x489569: gistplacetopage (gist.c:325)
==14325== by 0x48C025: gistinserttuples (gist.c:1134)
==14325== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14325== by 0x48AC56: gistdoinsert (gist.c:750)
==14325== by 0x488B81: gistinsert (gist.c:132)
==14325== by 0x8D7964: FunctionCall6Coll (fmgr.c:1437)
==14325== by 0x4C3EB8: index_insert (indexam.c:226)
==14325== by 0x647F8B: ExecInsertIndexTuples (execUtils.c:1103)
==14325== by 0x65BC55: ExecInsert (nodeModifyTable.c:274)
==14325== by 0x65CE33: ExecModifyTable (nodeModifyTable.c:1025)
==14325== Uninitialised value was created by a heap allocation
==14325== at 0x8FB6D2: palloc (mcxt.c:678)
==14325== by 0x6B6CFCE: gbt_var_key_copy (btree_utils_var.c:82)
==14325== by 0x6B6D64F: gbt_var_union (btree_utils_var.c:309)
==14325== by 0x6B769AF: gbt_numeric_union (btree_numeric.c:137)
==14325== by 0x8D74D0: FunctionCall2Coll (fmgr.c:1324)
==14325== by 0x48D7C8: gistMakeUnionItVec (gistutil.c:198)
==14325== by 0x496E8E: gistunionsubkeyvec (gistsplit.c:64)
==14325== by 0x496F05: gistunionsubkey (gistsplit.c:91)
==14325== by 0x498DB5: gistSplitByKey (gistsplit.c:777)
==14325== by 0x48C423: gistSplit (gist.c:1270)
==14325== by 0x488ED4: gistplacetopage (gist.c:242)
==14325== by 0x48C025: gistinserttuples (gist.c:1134)
==14325==
==14325== Uninitialised byte(s) found during client check request
==14325== at 0x794E9F: PageAddItem (bufpage.c:314)
==14325== by 0x48CC95: gistfillbuffer (gistutil.c:42)
==14325== by 0x489CBC: gistplacetopage (gist.c:451)
==14325== by 0x48C025: gistinserttuples (gist.c:1134)
==14325== by 0x48C31C: gistfinishsplit (gist.c:1240)
==14325== by 0x48C0F5: gistinserttuples (gist.c:1159)
==14325== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14325== by 0x48AC56: gistdoinsert (gist.c:750)
==14325== by 0x488B81: gistinsert (gist.c:132)
==14325== by 0x8D7964: FunctionCall6Coll (fmgr.c:1437)
==14325== by 0x4C3EB8: index_insert (indexam.c:226)
==14325== by 0x647F8B: ExecInsertIndexTuples (execUtils.c:1103)
==14325== Address 0x7134203 is 35 bytes inside a block of size 48 client-defined
==14325== at 0x8FB83A: palloc0 (mcxt.c:698)
==14325== by 0x462954: index_form_tuple (indextuple.c:129)
==14325== by 0x48ED05: gistFormTuple (gistutil.c:611)
==14325== by 0x48C755: gistSplit (gist.c:1314)
==14325== by 0x488ED4: gistplacetopage (gist.c:242)
==14325== by 0x48C025: gistinserttuples (gist.c:1134)
==14325== by 0x48BFAA: gistinserttuple (gist.c:1093)
==14325== by 0x48AC56: gistdoinsert (gist.c:750)
==14325== by 0x488B81: gistinsert (gist.c:132)
==14325== by 0x8D7964: FunctionCall6Coll (fmgr.c:1437)
==14325== by 0x4C3EB8: index_insert (indexam.c:226)
==14325== by 0x647F8B: ExecInsertIndexTuples (execUtils.c:1103)
==14325== Uninitialised value was created by a heap allocation
==14325== at 0x8FB6D2: palloc (mcxt.c:678)
==14325== by 0x6B6CFCE: gbt_var_key_copy (btree_utils_var.c:82)
==14325== by 0x6B6D64F: gbt_var_union (btree_utils_var.c:309)
==14325== by 0x6B769AF: gbt_numeric_union (btree_numeric.c:137)
==14325== by 0x8D74D0: FunctionCall2Coll (fmgr.c:1324)
==14325== by 0x48D7C8: gistMakeUnionItVec (gistutil.c:198)
==14325== by 0x496E8E: gistunionsubkeyvec (gistsplit.c:64)
==14325== by 0x496F05: gistunionsubkey (gistsplit.c:91)
==14325== by 0x498DB5: gistSplitByKey (gistsplit.c:777)
==14325== by 0x48C423: gistSplit (gist.c:1270)
==14325== by 0x488ED4: gistplacetopage (gist.c:242)
==14325== by 0x48C025: gistinserttuples (gist.c:1134)
==14325==

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sameer Thakur 2014-05-16 10:29:01 Re: Priority table or Cache table
Previous Message Blagoj Petrushev 2014-05-16 10:00:50 Re: Trigger concurrent execution