==9680== Memcheck, a memory error detector ==9680== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. ==9680== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==9680== Command: /usr/local/pgsql/bin/postgres --single -j -D /usr/local/db test ==9680== Parent PID: 9678 ==9680== ==9680== Syscall param write(buf) points to uninitialised byte(s) ==9680== at 0x42A3A9E: __write_nocancel (in /lib/libc-2.15.so) ==9680== by 0x423FA90: _IO_file_write@@GLIBC_2.1 (in /lib/libc-2.15.so) ==9680== by 0x423F974: new_do_write (in /lib/libc-2.15.so) ==9680== by 0x4240B1D: _IO_do_write@@GLIBC_2.1 (in /lib/libc-2.15.so) ==9680== by 0x4240D89: _IO_file_overflow@@GLIBC_2.1 (in /lib/libc-2.15.so) ==9680== by 0x4240762: _IO_file_xsputn@@GLIBC_2.1 (in /lib/libc-2.15.so) ==9680== by 0x4235854: fwrite (in /lib/libc-2.15.so) ==9680== by 0x83E978D: write_item (relcache.c:4487) ==9680== by 0x83E9447: write_relcache_init_file (relcache.c:4369) ==9680== by 0x83E6901: RelationCacheInitializePhase3 (relcache.c:3085) ==9680== by 0x8401D96: InitPostgres (postinit.c:824) ==9680== by 0x82FFE86: PostgresMain (postgres.c:3682) ==9680== Address 0x404d4a2 is not stack'd, malloc'd or (recently) free'd ==9680== ==9680== Use of uninitialised value of size 4 ==9680== at 0x80D8912: XLogInsert (xlog.c:914) ==9680== by 0x80AE62E: heap_delete (heapam.c:2612) ==9680== by 0x80AE752: simple_heap_delete (heapam.c:2675) ==9680== by 0x81E673C: RemoveTypeById (typecmds.c:645) ==9680== by 0x811250C: doDeletion (dependency.c:1129) ==9680== by 0x81122AC: deleteOneObject (dependency.c:1022) ==9680== by 0x811145A: performMultipleDeletions (dependency.c:348) ==9680== by 0x81C4E2E: RemoveRelations (tablecmds.c:844) ==9680== by 0x8303869: standard_ProcessUtility (utility.c:644) ==9680== by 0x83030F1: ProcessUtility (utility.c:335) ==9680== by 0x830219C: PortalRunUtility (pquery.c:1185) ==9680== by 0x8302332: PortalRunMulti (pquery.c:1316) ==9680== ==9680== Use of uninitialised value of size 4 ==9680== at 0x80D8912: XLogInsert (xlog.c:914) ==9680== by 0x80AE62E: heap_delete (heapam.c:2612) ==9680== by 0x80AE752: simple_heap_delete (heapam.c:2675) ==9680== by 0x81123D0: deleteOneObject (dependency.c:1061) ==9680== by 0x811145A: performMultipleDeletions (dependency.c:348) ==9680== by 0x81C4E2E: RemoveRelations (tablecmds.c:844) ==9680== by 0x8303869: standard_ProcessUtility (utility.c:644) ==9680== by 0x83030F1: ProcessUtility (utility.c:335) ==9680== by 0x830219C: PortalRunUtility (pquery.c:1185) ==9680== by 0x8302332: PortalRunMulti (pquery.c:1316) ==9680== by 0x8301A4E: PortalRun (pquery.c:814) ==9680== by 0x82FC3E5: exec_simple_query (postgres.c:1046) ==9680== ==9680== Use of uninitialised value of size 4 ==9680== at 0x80D8912: XLogInsert (xlog.c:914) ==9680== by 0x80AE62E: heap_delete (heapam.c:2612) ==9680== by 0x80AE752: simple_heap_delete (heapam.c:2675) ==9680== by 0x811BEB6: index_drop (index.c:1553) ==9680== by 0x81124A9: doDeletion (dependency.c:1111) ==9680== by 0x81122AC: deleteOneObject (dependency.c:1022) ==9680== by 0x811145A: performMultipleDeletions (dependency.c:348) ==9680== by 0x81C4E2E: RemoveRelations (tablecmds.c:844) ==9680== by 0x8303869: standard_ProcessUtility (utility.c:644) ==9680== by 0x83030F1: ProcessUtility (utility.c:335) ==9680== by 0x830219C: PortalRunUtility (pquery.c:1185) ==9680== by 0x8302332: PortalRunMulti (pquery.c:1316) ==9680== ==9680== Use of uninitialised value of size 4 ==9680== at 0x80D8912: XLogInsert (xlog.c:914) ==9680== by 0x80AE62E: heap_delete (heapam.c:2612) ==9680== by 0x80AE752: simple_heap_delete (heapam.c:2675) ==9680== by 0x8117A59: DeleteAttributeTuples (heap.c:1435) ==9680== by 0x811BEF8: index_drop (index.c:1568) ==9680== by 0x81124A9: doDeletion (dependency.c:1111) ==9680== by 0x81122AC: deleteOneObject (dependency.c:1022) ==9680== by 0x811145A: performMultipleDeletions (dependency.c:348) ==9680== by 0x81C4E2E: RemoveRelations (tablecmds.c:844) ==9680== by 0x8303869: standard_ProcessUtility (utility.c:644) ==9680== by 0x83030F1: ProcessUtility (utility.c:335) ==9680== by 0x830219C: PortalRunUtility (pquery.c:1185) ==9680== ==9680== Use of uninitialised value of size 4 ==9680== at 0x80D8912: XLogInsert (xlog.c:914) ==9680== by 0x80AE62E: heap_delete (heapam.c:2612) ==9680== by 0x80AE752: simple_heap_delete (heapam.c:2675) ==9680== by 0x81179A6: DeleteRelationTuple (heap.c:1398) ==9680== by 0x811BF03: index_drop (index.c:1573) ==9680== by 0x81124A9: doDeletion (dependency.c:1111) ==9680== by 0x81122AC: deleteOneObject (dependency.c:1022) ==9680== by 0x811145A: performMultipleDeletions (dependency.c:348) ==9680== by 0x81C4E2E: RemoveRelations (tablecmds.c:844) ==9680== by 0x8303869: standard_ProcessUtility (utility.c:644) ==9680== by 0x83030F1: ProcessUtility (utility.c:335) ==9680== by 0x830219C: PortalRunUtility (pquery.c:1185) ==9680== ==9680== Use of uninitialised value of size 4 ==9680== at 0x80D8912: XLogInsert (xlog.c:914) ==9680== by 0x80AD843: heap_insert (heapam.c:2007) ==9680== by 0x80AE08E: simple_heap_insert (heapam.c:2347) ==9680== by 0x813BAF1: TypeCreate (pg_type.c:446) ==9680== by 0x8117082: AddNewRelationType (heap.c:917) ==9680== by 0x8117441: heap_create_with_catalog (heap.c:1155) ==9680== by 0x81C4946: DefineRelation (tablecmds.c:616) ==9680== by 0x8303621: standard_ProcessUtility (utility.c:529) ==9680== by 0x83030F1: ProcessUtility (utility.c:335) ==9680== by 0x830219C: PortalRunUtility (pquery.c:1185) ==9680== by 0x8302332: PortalRunMulti (pquery.c:1316) ==9680== by 0x8301A4E: PortalRun (pquery.c:814) ==9680== ==9680== Use of uninitialised value of size 4 ==9680== at 0x80D8912: XLogInsert (xlog.c:914) ==9680== by 0x80AD843: heap_insert (heapam.c:2007) ==9680== by 0x80AE08E: simple_heap_insert (heapam.c:2347) ==9680== by 0x813258F: recordMultipleDependencies (pg_depend.c:109) ==9680== by 0x813249E: recordDependencyOn (pg_depend.c:47) ==9680== by 0x813BE88: GenerateTypeDependencies (pg_type.c:628) ==9680== by 0x813BBB6: TypeCreate (pg_type.c:456) ==9680== by 0x8117082: AddNewRelationType (heap.c:917) ==9680== by 0x8117441: heap_create_with_catalog (heap.c:1155) ==9680== by 0x81C4946: DefineRelation (tablecmds.c:616) ==9680== by 0x8303621: standard_ProcessUtility (utility.c:529) ==9680== by 0x83030F1: ProcessUtility (utility.c:335) ==9680== ==9680== Use of uninitialised value of size 4 ==9680== at 0x80D8912: XLogInsert (xlog.c:914) ==9680== by 0x80AD843: heap_insert (heapam.c:2007) ==9680== by 0x80AE08E: simple_heap_insert (heapam.c:2347) ==9680== by 0x8116E45: InsertPgClassTuple (heap.c:810) ==9680== by 0x8116F7B: AddNewRelationTuple (heap.c:897) ==9680== by 0x81175A9: heap_create_with_catalog (heap.c:1214) ==9680== by 0x81C4946: DefineRelation (tablecmds.c:616) ==9680== by 0x8303621: standard_ProcessUtility (utility.c:529) ==9680== by 0x83030F1: ProcessUtility (utility.c:335) ==9680== by 0x830219C: PortalRunUtility (pquery.c:1185) ==9680== by 0x8302332: PortalRunMulti (pquery.c:1316) ==9680== by 0x8301A4E: PortalRun (pquery.c:814) ==9680== ==9680== Use of uninitialised value of size 4 ==9680== at 0x80D8912: XLogInsert (xlog.c:914) ==9680== by 0x80AD843: heap_insert (heapam.c:2007) ==9680== by 0x80AE08E: simple_heap_insert (heapam.c:2347) ==9680== by 0x81169CC: InsertPgAttributeTuple (heap.c:624) ==9680== by 0x8116AA1: AddNewAttributeTuples (heap.c:676) ==9680== by 0x81175D5: heap_create_with_catalog (heap.c:1227) ==9680== by 0x81C4946: DefineRelation (tablecmds.c:616) ==9680== by 0x8303621: standard_ProcessUtility (utility.c:529) ==9680== by 0x83030F1: ProcessUtility (utility.c:335) ==9680== by 0x830219C: PortalRunUtility (pquery.c:1185) ==9680== by 0x8302332: PortalRunMulti (pquery.c:1316) ==9680== by 0x8301A4E: PortalRun (pquery.c:814) ==9680== ==9680== Use of uninitialised value of size 4 ==9680== at 0x80D8912: XLogInsert (xlog.c:914) ==9680== by 0x80AD843: heap_insert (heapam.c:2007) ==9680== by 0x80AE08E: simple_heap_insert (heapam.c:2347) ==9680== by 0x811AD03: UpdateIndexRelation (index.c:630) ==9680== by 0x811B25B: index_create (index.c:878) ==9680== by 0x813D2F9: create_toast_table (toasting.c:277) ==9680== by 0x813CD0D: AlterTableCreateToastTable (toasting.c:70) ==9680== by 0x830368F: standard_ProcessUtility (utility.c:548) ==9680== by 0x83030F1: ProcessUtility (utility.c:335) ==9680== by 0x830219C: PortalRunUtility (pquery.c:1185) ==9680== by 0x8302332: PortalRunMulti (pquery.c:1316) ==9680== by 0x8301A4E: PortalRun (pquery.c:814) ==9680== ==9680== Use of uninitialised value of size 4 ==9680== at 0x80D8912: XLogInsert (xlog.c:914) ==9680== by 0x80B0F60: log_heap_update (heapam.c:4498) ==9680== by 0x80AF2C4: heap_update (heapam.c:3201) ==9680== by 0x80AFA01: simple_heap_update (heapam.c:3388) ==9680== by 0x813D3CF: create_toast_table (toasting.c:302) ==9680== by 0x813CD0D: AlterTableCreateToastTable (toasting.c:70) ==9680== by 0x830368F: standard_ProcessUtility (utility.c:548) ==9680== by 0x83030F1: ProcessUtility (utility.c:335) ==9680== by 0x830219C: PortalRunUtility (pquery.c:1185) ==9680== by 0x8302332: PortalRunMulti (pquery.c:1316) ==9680== by 0x8301A4E: PortalRun (pquery.c:814) ==9680== by 0x82FC3E5: exec_simple_query (postgres.c:1046) ==9680== ==9680== Use of uninitialised value of size 4 ==9680== at 0x80D8912: XLogInsert (xlog.c:914) ==9680== by 0x80AD843: heap_insert (heapam.c:2007) ==9680== by 0x8215BCA: ExecInsert (nodeModifyTable.c:241) ==9680== by 0x8216886: ExecModifyTable (nodeModifyTable.c:848) ==9680== by 0x81FB4F1: ExecProcNode (execProcnode.c:376) ==9680== by 0x81F9B09: ExecutePlan (execMain.c:1395) ==9680== by 0x81F8574: standard_ExecutorRun (execMain.c:303) ==9680== by 0x81F848F: ExecutorRun (execMain.c:251) ==9680== by 0x8300F29: ProcessQuery (pquery.c:185) ==9680== by 0x83022B0: PortalRunMulti (pquery.c:1277) ==9680== by 0x8301A4E: PortalRun (pquery.c:814) ==9680== by 0x82FC3E5: exec_simple_query (postgres.c:1046) ==9680== ==9680== Invalid read of size 4 ==9680== at 0x6AE94EE: compute_geography_stats (geography_estimate.c:1367) ==9680== by 0x8189B90: do_analyze_rel (analyze.c:525) ==9680== by 0x818934D: analyze_rel (analyze.c:265) ==9680== by 0x81F0B56: vacuum (vacuum.c:247) ==9680== by 0x8304108: standard_ProcessUtility (utility.c:1027) ==9680== by 0x83030F1: ProcessUtility (utility.c:335) ==9680== by 0x830219C: PortalRunUtility (pquery.c:1185) ==9680== by 0x8302332: PortalRunMulti (pquery.c:1316) ==9680== by 0x8301A4E: PortalRun (pquery.c:814) ==9680== by 0x82FC3E5: exec_simple_query (postgres.c:1046) ==9680== by 0x830021B: PostgresMain (postgres.c:3958) ==9680== by 0x8233145: main (main.c:197) ==9680== Address 0x67d33f0 is 3,216 bytes inside a block of size 10,328 free'd ==9680== at 0x4029C14: free (vg_replace_malloc.c:446) ==9680== by 0x8414499: AllocSetFree (aset.c:866) ==9680== by 0x8414EA2: pfree (mcxt.c:659) ==9680== by 0x80C1B84: btendscan (nbtree.c:554) ==9680== by 0x83F9A80: FunctionCall1Coll (fmgr.c:1300) ==9680== by 0x80BADCD: index_endscan (indexam.c:371) ==9680== by 0x80BA657: systable_endscan (genam.c:397) ==9680== by 0x83DF10E: SearchCatCache (catcache.c:1200) ==9680== by 0x83EB28E: SearchSysCache (syscache.c:859) ==9680== by 0x83EB372: GetSysCacheOid (syscache.c:937) ==9680== by 0x81171A5: heap_create_with_catalog (heap.c:1035) ==9680== by 0x813D136: create_toast_table (toasting.c:213) ==9680== ==9680== Invalid write of size 4 ==9680== at 0x6AE950B: compute_geography_stats (geography_estimate.c:1367) ==9680== by 0x8189B90: do_analyze_rel (analyze.c:525) ==9680== by 0x818934D: analyze_rel (analyze.c:265) ==9680== by 0x81F0B56: vacuum (vacuum.c:247) ==9680== by 0x8304108: standard_ProcessUtility (utility.c:1027) ==9680== by 0x83030F1: ProcessUtility (utility.c:335) ==9680== by 0x830219C: PortalRunUtility (pquery.c:1185) ==9680== by 0x8302332: PortalRunMulti (pquery.c:1316) ==9680== by 0x8301A4E: PortalRun (pquery.c:814) ==9680== by 0x82FC3E5: exec_simple_query (postgres.c:1046) ==9680== by 0x830021B: PostgresMain (postgres.c:3958) ==9680== by 0x8233145: main (main.c:197) ==9680== Address 0x67d33f0 is 3,216 bytes inside a block of size 10,328 free'd ==9680== at 0x4029C14: free (vg_replace_malloc.c:446) ==9680== by 0x8414499: AllocSetFree (aset.c:866) ==9680== by 0x8414EA2: pfree (mcxt.c:659) ==9680== by 0x80C1B84: btendscan (nbtree.c:554) ==9680== by 0x83F9A80: FunctionCall1Coll (fmgr.c:1300) ==9680== by 0x80BADCD: index_endscan (indexam.c:371) ==9680== by 0x80BA657: systable_endscan (genam.c:397) ==9680== by 0x83DF10E: SearchCatCache (catcache.c:1200) ==9680== by 0x83EB28E: SearchSysCache (syscache.c:859) ==9680== by 0x83EB372: GetSysCacheOid (syscache.c:937) ==9680== by 0x81171A5: heap_create_with_catalog (heap.c:1035) ==9680== by 0x813D136: create_toast_table (toasting.c:213) ==9680== ==9680== Use of uninitialised value of size 4 ==9680== at 0x80D8912: XLogInsert (xlog.c:914) ==9680== by 0x80AD843: heap_insert (heapam.c:2007) ==9680== by 0x80AE08E: simple_heap_insert (heapam.c:2347) ==9680== by 0x818BA52: update_attstats (analyze.c:1729) ==9680== by 0x8189CB0: do_analyze_rel (analyze.c:561) ==9680== by 0x818934D: analyze_rel (analyze.c:265) ==9680== by 0x81F0B56: vacuum (vacuum.c:247) ==9680== by 0x8304108: standard_ProcessUtility (utility.c:1027) ==9680== by 0x83030F1: ProcessUtility (utility.c:335) ==9680== by 0x830219C: PortalRunUtility (pquery.c:1185) ==9680== by 0x8302332: PortalRunMulti (pquery.c:1316) ==9680== by 0x8301A4E: PortalRun (pquery.c:814) ==9680== ==9680== Syscall param write(buf) points to uninitialised byte(s) ==9680== at 0x42A3A9E: __write_nocancel (in /lib/libc-2.15.so) ==9680== by 0x80DAC5C: XLogFlush (xlog.c:2201) ==9680== by 0x80CCB3A: RecordTransactionCommit (xact.c:1141) ==9680== by 0x80CD522: CommitTransaction (xact.c:1899) ==9680== by 0x80CDF37: CommitTransactionCommand (xact.c:2524) ==9680== by 0x82FE519: finish_xact_command (postgres.c:2409) ==9680== by 0x82FC428: exec_simple_query (postgres.c:1077) ==9680== by 0x830021B: PostgresMain (postgres.c:3958) ==9680== by 0x8233145: main (main.c:197) ==9680== Address 0x484344e is not stack'd, malloc'd or (recently) free'd ==9680== ==9680== ==9680== HEAP SUMMARY: ==9680== in use at exit: 1,067,987 bytes in 318 blocks ==9680== total heap usage: 3,420 allocs, 3,102 frees, 6,755,122 bytes allocated ==9680== ==9680== 34 bytes in 1 blocks are definitely lost in loss record 56 of 133 ==9680== at 0x402AC41: malloc (vg_replace_malloc.c:270) ==9680== by 0x424DFE0: strdup (in /lib/libc-2.15.so) ==9680== by 0x8232F61: main (main.c:101) ==9680== ==9680== 156 (36 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 66 of 133 ==9680== at 0x402AC41: malloc (vg_replace_malloc.c:270) ==9680== by 0x42C659A: nss_parse_service_list (in /lib/libc-2.15.so) ==9680== by 0x42C6A54: __nss_database_lookup (in /lib/libc-2.15.so) ==9680== by 0x4037318: ??? ==9680== by 0x4274FEE: getpwuid_r@@GLIBC_2.1.2 (in /lib/libc-2.15.so) ==9680== by 0x427494D: getpwuid (in /lib/libc-2.15.so) ==9680== by 0xBED05467: ??? ==9680== ==9680== 2,462 (92 direct, 2,370 indirect) bytes in 1 blocks are definitely lost in loss record 101 of 133 ==9680== at 0x402AC41: malloc (vg_replace_malloc.c:270) ==9680== by 0x8411DB8: save_ps_display_args (ps_status.c:164) ==9680== by 0x8232F49: main (main.c:82) ==9680== ==9680== LEAK SUMMARY: ==9680== definitely lost: 162 bytes in 3 blocks ==9680== indirectly lost: 2,490 bytes in 32 blocks ==9680== possibly lost: 0 bytes in 0 blocks ==9680== still reachable: 1,065,335 bytes in 283 blocks ==9680== suppressed: 0 bytes in 0 blocks ==9680== Reachable blocks (those to which a pointer was found) are not shown. ==9680== To see them, rerun with: --leak-check=full --show-reachable=yes ==9680== ==9680== For counts of detected and suppressed errors, rerun with: -v ==9680== Use --track-origins=yes to see where uninitialised values come from ==9680== ERROR SUMMARY: 166 errors from 20 contexts (suppressed: 0 from 0)