Program received signal SIGSEGV, Segmentation fault. advance_transition_function (aggstate=aggstate@entry=0x2b5c5f0, peraggstate=peraggstate@entry=0x2b5efd0, pergroupstate=pergroupstate@entry=0x8) at nodeAgg.c:468 468 if (pergroupstate->noTransValue) (gdb) bt #0 advance_transition_function (aggstate=aggstate@entry=0x2b5c5f0, peraggstate=peraggstate@entry=0x2b5efd0, pergroupstate=pergroupstate@entry=0x8) at nodeAgg.c:468 #1 0x00000000005c3494 in advance_aggregates (aggstate=aggstate@entry=0x2b5c5f0, pergroup=pergroup@entry=0x8) at nodeAgg.c:624 #2 0x00000000005c3dc2 in agg_fill_hash_table (aggstate=0x2b5c5f0) at nodeAgg.c:1640 #3 ExecAgg (node=node@entry=0x2b5c5f0) at nodeAgg.c:1338 #4 0x00000000005b6c68 in ExecProcNode (node=node@entry=0x2b5c5f0) at execProcnode.c:486 #5 0x00000000005b3e90 in ExecutePlan (dest=0xbffa40 , direction=, numberTuples=0, sendTuples=1 '\001', operation=CMD_SELECT, planstate=0x2b5c5f0, estate=0x2b5c4d8) at execMain.c:1480 #6 standard_ExecutorRun (queryDesc=0x2b58d78, direction=, count=0) at execMain.c:308 #7 0x000000000056df73 in ExplainOnePlan (plannedstmt=plannedstmt@entry=0x2b58ce0, into=into@entry=0x0, es=es@entry=0x7fff6fa066c0, queryString=, params=0x0, planduration=planduration@entry=0x7fff6fa06650) at explain.c:487 #8 0x000000000056e22d in ExplainOneQuery (query=, into=0x0, es=0x7fff6fa066c0, queryString=0x2b0bf68 "explain analyze select a, count(*) from test_hash_agg where a < 100000 group by a;", params=0x0) at explain.c:341 #9 0x000000000056e670 in ExplainQuery (stmt=stmt@entry=0x2b0d248, queryString=0x2b0bf68 "explain analyze select a, count(*) from test_hash_agg where a < 100000 group by a;", params=params@entry=0x0, dest=0x2b1b490) at explain.c:232 #10 0x00000000006b5af6 in standard_ProcessUtility (parsetree=0x2b0d248, queryString=, context=, params=0x0, dest=, completionTag=0x7fff6fa067d0 "") at utility.c:648 #11 0x00000000006b2c61 in PortalRunUtility (portal=portal@entry=0x2b4c3b8, utilityStmt=0x2b0d248, isTopLevel=, dest=dest@entry=0x2b1b490, completionTag=completionTag@entry=0x7fff6fa067d0 "") at pquery.c:1187 #12 0x00000000006b3add in FillPortalStore (portal=portal@entry=0x2b4c3b8, isTopLevel=isTopLevel@entry=1 '\001') at pquery.c:1061 #13 0x00000000006b45cf in PortalRun (portal=portal@entry=0x2b4c3b8, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x2b3e828, altdest=altdest@entry=0x2b3e828, completionTag=completionTag@entry=0x7fff6fa06bd0 "") at pquery.c:785 #14 0x00000000006b1fe3 in exec_simple_query (query_string=0x2b0bf68 "explain analyze select a, count(*) from test_hash_agg where a < 100000 group by a;") at postgres.c:1045 #15 PostgresMain (argc=, argv=argv@entry=0x2aa5d20, dbname=0x2aa5b88 "test", username=) at postgres.c:4012 #16 0x000000000046278f in BackendRun (port=0x2ac5b10) at postmaster.c:4130 #17 BackendStartup (port=0x2ac5b10) at postmaster.c:3805 #18 ServerLoop () at postmaster.c:1573 #19 0x0000000000658156 in PostmasterMain (argc=argc@entry=3, argv=argv@entry=0x2aa4900) at postmaster.c:1220 #20 0x000000000046338b in main (argc=3, argv=0x2aa4900) at main.c:220 (gdb) print pergroupstate->noTransValue Cannot access memory at address 0x11 (gdb) print pergroupstate $1 = (AggStatePerGroup) 0x8