pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Clang 3.3 findings and Illegal Shifts 3+ messages / 3 participants [nested] [flat]
* Clang 3.3 findings and Illegal Shifts @ 2013-11-13 00:58 Jeffrey Walton <noloader@gmail.com> 0 siblings, 1 reply; 3+ messages in thread From: Jeffrey Walton @ 2013-11-13 00:58 UTC (permalink / raw) To: pgsql-bugs Here are Clang 3.3 findings regarding illegal shifts. The code will be subject to removal by the compiler and optimizer (and linker if LTO is used). The recipe used to produce the findings is below. ***** $ /usr/local/bin/clang -v clang version 3.3 (tags/RELEASE_33/final) Target: x86_64-unknown-linux-gnu Thread model: posix ***** make distclean export CC=/usr/local/bin/clang export CXX=/usr/local/bin/clang++ export CFLAGS="-g3 -fsanitize=undefined" export CXXFLAGS="-g3 -fsanitize=undefined -fno-sanitize=vptr" ./configure make make check ***** ... creating directory /home/jwalton/Desktop/postgresql-9.3.1/src/test/regress/./tmp_check/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 128MB creating configuration files ... localtime.c:127:20: runtime error: left shift of negative value -1 ok creating template1 database in /home/jwalton/postgresql-9.3.1/src/test/regress/./tmp_check/data/base/1 ... localtime.c:127:20: runtime error: left shift of negative value -1 relmapper.c:670:2: runtime error: left shift of negative value -1 ok initializing pg_authid ... localtime.c:127:20: runtime error: left shift of negative value -1 ok initializing dependencies ... localtime.c:127:20: runtime error: left shift of negative value -1 ok creating system views ... localtime.c:127:20: runtime error: left shift of negative value -1 ok loading system objects' descriptions ... localtime.c:127:20: runtime error: left shift of negative value -1 ok creating collations ... localtime.c:127:20: runtime error: left shift of negative value -1 ok creating conversions ... localtime.c:127:20: runtime error: left shift of negative value -1 ok creating dictionaries ... localtime.c:127:20: runtime error: left shift of negative value -1 ok setting privileges on built-in objects ... localtime.c:127:20: runtime error: left shift of negative value -1 ok creating information schema ... localtime.c:127:20: runtime error: left shift of negative value -1 localtime.c:127:20: runtime error: left shift of negative value -1 ok loading PL/pgSQL server-side language ... localtime.c:127:20: runtime error: left shift of negative value -1 ok vacuuming database template1 ... localtime.c:127:20: runtime error: left shift of negative value -1 pg_lzcompress.c:601:5: runtime error: left shift of negative value -68 pg_lzcompress.c:601:5: runtime error: left shift of negative value -68 pg_lzcompress.c:385:16: runtime error: left shift of negative value -68 pg_lzcompress.c:615:4: runtime error: left shift of negative value -68 pg_lzcompress.c:385:16: runtime error: left shift of negative value -37 pg_lzcompress.c:615:4: runtime error: left shift of negative value -37 pg_lzcompress.c:385:16: runtime error: left shift of negative value -37 pg_lzcompress.c:615:4: runtime error: left shift of negative value -37 pg_lzcompress.c:601:5: runtime error: left shift of negative value -37 inval.c:524:39: runtime error: left shift of negative value -1 relmapper.c:670:2: runtime error: left shift of negative value -1 ok copying template1 to template0 ... localtime.c:127:20: runtime error: left shift of negative value -1 relmapper.c:670:2: runtime error: left shift of negative value -1 inval.c:524:39: runtime error: left shift of negative value -1 ok copying template1 to postgres ... localtime.c:127:20: runtime error: left shift of negative value -1 ok WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. Sync to disk skipped. The data directory might become corrupt if the operating system crashes. Success. You can now start the database server using: ... -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Clang 3.3 findings and Illegal Shifts @ 2013-11-13 07:35 Andres Freund <andres@2ndquadrant.com> parent: Jeffrey Walton <noloader@gmail.com> 0 siblings, 1 reply; 3+ messages in thread From: Andres Freund @ 2013-11-13 07:35 UTC (permalink / raw) To: Jeffrey Walton <noloader@gmail.com>; +Cc: pgsql-bugs On 2013-11-12 19:58:31 -0500, Jeffrey Walton wrote: > Here are Clang 3.3 findings regarding illegal shifts. The code will be > subject to removal by the compiler and optimizer (and linker if LTO is > used). > /home/jwalton/postgresql-9.3.1/src/test/regress/./tmp_check/data/base/1 > ... localtime.c:127:20: runtime error: left shift of negative value -1 Those all seem to be runtime errors, so they aren't likely to be removed by the compiler. That's not to say they shouldn't be looked at though. Greetings, Andres Freund -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Clang 3.3 findings and Illegal Shifts @ 2013-11-14 14:20 Kevin Grittner <kgrittn@ymail.com> parent: Andres Freund <andres@2ndquadrant.com> 0 siblings, 0 replies; 3+ messages in thread From: Kevin Grittner @ 2013-11-14 14:20 UTC (permalink / raw) To: Andres Freund <andres@2ndquadrant.com>; Jeffrey Walton <noloader@gmail.com>; +Cc: pgsql-bugs Andres Freund <andres@2ndquadrant.com> wrote: > On 2013-11-12 19:58:31 -0500, Jeffrey Walton wrote: >> Here are Clang 3.3 findings regarding illegal shifts. The code >> will be subject to removal by the compiler and optimizer (and >> linker if LTO is used). > Those all seem to be runtime errors, so they aren't likely to be > removed by the compiler. That's not to say they shouldn't be > looked at though. Attached are the runtime errors I got from using the clang 3.4 sanitizer with make check-world. I poked around some web search results and found that according to the C99 spec, these seemed to be flagging non-portable code. I doubt that the issue impacts any currently-supported platforms, which is why I set it aside until I saw this thread; but it might some day affect the ability to support some new platform. These runtime tests can't be considered complete because the sanitizer chose to crash things five times when it found things it didn't like. What it disliked was not immediately clear to me, but I'll attach those, too. Four of the five are identical for the first 20 lines in the stack trace, with similarities for a few lines past that. Also attached, FWIW. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company= -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs Attachments:clang-sanitizer-runtime-error.txt (text/plain, 8.6K) download
localtime.c:127:20: runtime error: left shift of negative value -1 postmaster.c:4038:45: runtime error: left shift of 697920 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 826380 by 12 places cannot be represented in type 'int' inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 postmaster.c:4038:45: runtime error: left shift of 540659 by 12 places cannot be represented in type 'int' inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 (/home/kgrittn/pg/master/src/test/regress/tmp_check/install/home/kgrittn/pg/master/Debug/bin/postgres+0x38f4207): runtime error: value 1e+71 is outside the range of representable values of type 'float' postmaster.c:4038:45: runtime error: left shift of 569611 by 12 places cannot be represented in type 'int' (/home/kgrittn/pg/master/src/test/regress/tmp_check/install/home/kgrittn/pg/master/Debug/bin/postgres+0x38f4207): runtime error: value -1e+71 is outside the range of representable values of type 'float' postmaster.c:4038:45: runtime error: left shift of 593178 by 12 places cannot be represented in type 'int' inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 postmaster.c:4038:45: runtime error: left shift of 676453 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 727867 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 736303 by 12 places cannot be represented in type 'int' inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 int.c:1258:2: runtime error: left shift of negative value -1 postmaster.c:4038:45: runtime error: left shift of 793570 by 12 places cannot be represented in type 'int' int.c:1320:2: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 (/home/kgrittn/pg/master/src/test/regress/tmp_check/install/home/kgrittn/pg/master/Debug/bin/postgres+0x3a6c6ac): runtime error: value 9.22337e+20 is outside the range of representable values of type 'long' int8.c:1211:2: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 postmaster.c:4038:45: runtime error: left shift of 644877 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 648165 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 660918 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 664250 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 667175 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 670053 by 12 places cannot be represented in type 'int' inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 postmaster.c:4038:45: runtime error: left shift of 989585 by 12 places cannot be represented in type 'int' inval.c:565:39: runtime error: left shift of negative value -1 postmaster.c:4038:45: runtime error: left shift of 615302 by 12 places cannot be represented in type 'int' inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 postmaster.c:4038:45: runtime error: left shift of 532428 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 534219 by 12 places cannot be represented in type 'int' inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 postmaster.c:4038:45: runtime error: left shift of 851491 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 853211 by 12 places cannot be represented in type 'int' inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 postmaster.c:4038:45: runtime error: left shift of 914380 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 916585 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 926203 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 929225 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 935422 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 938290 by 12 places cannot be represented in type 'int' inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 postmaster.c:4038:45: runtime error: left shift of 567226 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 568885 by 12 places cannot be represented in type 'int' inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 postmaster.c:4038:45: runtime error: left shift of 845581 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 857551 by 12 places cannot be represented in type 'int' postm:45: run:45: runtime error: left shift of 8695 p by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 893550 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 905561 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 922305 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 929598 by 12 places cannot be represented in type 'int' postmaster.c:4038:45: runtime error: left shift of 989578 by 12 places cannot be represented in type 'int' inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 inval.c:565:39: runtime error: left shift of negative value -1 postmaster.c:4038:45: runtime error: left shift of 640323 by 12 places cannot be represented in type 'int'clang-sanitizer-1.txt (text/plain, 5.7K) download
================================================================= ==20731==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fffdc1b4894 at pc 0xef3ad5 bp 0x7fffdc1afb90 sp 0x7fffdc1afb88 READ of size 1 at 0x7fffdc1b4894 thread T0 #0 0xef3ad4 in XLogInsert /home/kgrittn/pg/master/src/backend/access/transam/xlog.c:1040 #1 0xd57472 in doPickSplit /home/kgrittn/pg/master/src/backend/access/spgist/spgdoinsert.c:1391 #2 0xd116d1 in spgdoinsert /home/kgrittn/pg/master/src/backend/access/spgist/spgdoinsert.c:2008 #3 0xcbf1b1 in spginsert /home/kgrittn/pg/master/src/backend/access/spgist/spginsert.c:238 #4 0x46d8c23 in FunctionCall6Coll /home/kgrittn/pg/master/src/backend/utils/fmgr/fmgr.c:1436 #5 0xad80db in index_insert /home/kgrittn/pg/master/src/backend/access/index/indexam.c:223 #6 0x211c4fd in ExecInsertIndexTuples /home/kgrittn/pg/master/src/backend/executor/execUtils.c:1104 #7 0x227d66f in ExecInsert /home/kgrittn/pg/master/src/backend/executor/nodeModifyTable.c:274 #8 0x22790d8 in ExecModifyTable /home/kgrittn/pg/master/src/backend/executor/nodeModifyTable.c:1014 #9 0x2020033 in ExecProcNode /home/kgrittn/pg/master/src/backend/executor/execProcnode.c:377 #10 0x1fe8a64 in ExecutePlan /home/kgrittn/pg/master/src/backend/executor/execMain.c:1474 #11 0x1fe79b8 in standard_ExecutorRun /home/kgrittn/pg/master/src/backend/executor/execMain.c:308 #12 0x1fe5d19 in ExecutorRun /home/kgrittn/pg/master/src/backend/executor/execMain.c:256 #13 0x34d909b in ProcessQuery /home/kgrittn/pg/master/src/backend/tcop/pquery.c:185 #14 0x34d172a in PortalRunMulti /home/kgrittn/pg/master/src/backend/tcop/pquery.c:1279 #15 0x34ca68c in PortalRun /home/kgrittn/pg/master/src/backend/tcop/pquery.c:816 #16 0x349f211 in exec_simple_query /home/kgrittn/pg/master/src/backend/tcop/postgres.c:1048 #17 0x3499f10 in PostgresMain /home/kgrittn/pg/master/src/backend/tcop/postgres.c:3992 #18 0x2f087f5 in BackendRun /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:4085 #19 0x2f04700 in BackendStartup /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:3774 #20 0x2ee5b66 in ServerLoop /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:1585 #21 0x2eda2be in PostmasterMain /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:1240 #22 0x24cd113 in main /home/kgrittn/pg/master/src/backend/main/main.c:196 #23 0x2b8189ec376c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226 #24 0x4dc32c in _start ??:? Address 0x7fffdc1b4894 is located in stack of thread T0 at offset 2644 in frame #0 0xd2f2cf in doPickSplit /home/kgrittn/pg/master/src/backend/access/spgist/spgdoinsert.c:680 This frame has 57 object(s): [32, 40) '' [96, 104) '' [160, 168) '' [224, 232) '' [288, 296) '' [352, 356) '' [416, 417) '' [480, 481) '' [544, 545) 'insertedNew' [608, 632) 'in' [672, 720) 'out' [768, 776) 'procinfo' [832, 833) 'includeNew' [896, 900) 'i' [960, 964) 'max' [1024, 1028) 'n' [1088, 1096) 'innerTuple' [1152, 1160) 'node' [1216, 1224) 'nodes' [1280, 1284) 'newInnerBuffer' [1344, 1348) 'newLeafBuffer' [1408, 1416) 'heapPtrs' [1472, 1480) 'leafPageSelect' [1536, 1544) 'leafSizes' [1600, 1608) 'toDelete' [1664, 1672) 'toInsert' [1728, 1730) 'redirectTuplePos' [1792, 1796) 'startOffsets' [1856, 1864) 'newLeafs' [1920, 1924) 'spaceToDelete' [1984, 1988) 'currentFreeSpace' [2048, 2052) 'totalLeafSizes' [2112, 2113) 'allTheSame' [2176, 2496) 'rdata' [2528, 2532) 'nRdata' [2592, 2644) 'xlrec' <== Memory access at offset 2644 overflows this variable [2688, 2696) 'leafdata' [2752, 2760) 'leafptr' [2816, 2840) 'saveCurrent' [2880, 2884) 'nToDelete' [2944, 2948) 'nToInsert' [3008, 3012) 'maxToInclude' [3072, 3080) 'it' [3136, 3144) 'it1' [3200, 3208) 'label' [3264, 3265) 'labelisnull' [3328, 3336) 'nodePageSelect' [3392, 3396) 'curspace' [3456, 3460) 'newspace' [3520, 3524) 'nodeOfNewTuple' [3584, 3592) 'it2' [3648, 3652) 'leafBuffer' [3712, 3716) 'leafBlock' [3776, 3778) 'newoffset' [3840, 3848) 'recptr' [3904, 3912) 'page' [3968, 3976) 'page3' HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-buffer-overflow ??:0 ?? Shadow bytes around the buggy address: 0x10007b82e8c0: 04 f4 f4 f4 f2 f2 f2 f2 04 f4 f4 f4 f2 f2 f2 f2 0x10007b82e8d0: 01 f4 f4 f4 f2 f2 f2 f2 00 00 00 00 00 00 00 00 0x10007b82e8e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10007b82e8f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10007b82e900: f2 f2 f2 f2 04 f4 f4 f4 f2 f2 f2 f2 00 00 00 00 =>0x10007b82e910: 00 00[04]f4 f2 f2 f2 f2 00 f4 f4 f4 f2 f2 f2 f2 0x10007b82e920: 00 f4 f4 f4 f2 f2 f2 f2 00 00 00 f4 f2 f2 f2 f2 0x10007b82e930: 04 f4 f4 f4 f2 f2 f2 f2 04 f4 f4 f4 f2 f2 f2 f2 0x10007b82e940: 04 f4 f4 f4 f2 f2 f2 f2 00 f4 f4 f4 f2 f2 f2 f2 0x10007b82e950: 00 f4 f4 f4 f2 f2 f2 f2 00 f4 f4 f4 f2 f2 f2 f2 0x10007b82e960: 01 f4 f4 f4 f2 f2 f2 f2 00 f4 f4 f4 f2 f2 f2 f2 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Heap right redzone: fb Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 ASan internal: fe ==20731==ABORTINGclang-sanitizer-4.txt (text/plain, 5.9K) download
================================================================= ==21281==ERROR: AddressSanitizer: global-buffer-overflow on address 0x000004f3ed9f at pc 0x38d9bf1 bp 0x7fffdc19d090 sp 0x7fffdc19d088 READ of size 64 at 0x000004f3ed9f thread T0 #0 0x38d9bf0 in datumCopy /home/kgrittn/pg/master/src/backend/utils/adt/datum.c:132 #1 0x2cd2fee in eval_const_expressions_mutator /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2257 #2 0x251969f in expression_tree_mutator /home/kgrittn/pg/master/src/backend/nodes/nodeFuncs.c:2544 #3 0x2d03e3d in simplify_function /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:3636 #4 0x2cd8c07 in eval_const_expressions_mutator /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2387 #5 0x2d0917d in simplify_and_arguments /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:3465 #6 0x2cdebd2 in eval_const_expressions_mutator /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2571 #7 0x2ccfc4f in eval_const_expressions /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2181 #8 0x2b41721 in preprocess_expression /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:675 #9 0x2b42c68 in preprocess_qual_conditions /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:737 #10 0x2b3593f in subquery_planner /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:442 #11 0x2b2c195 in standard_planner /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:210 #12 0x2b29ff8 in planner /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:139 #13 0x348d509 in pg_plan_query /home/kgrittn/pg/master/src/backend/tcop/postgres.c:753 #14 0x348e124 in pg_plan_queries /home/kgrittn/pg/master/src/backend/tcop/postgres.c:812 #15 0x44f7d1d in BuildCachedPlan /home/kgrittn/pg/master/src/backend/utils/cache/plancache.c:907 #16 0x44eecc4 in GetCachedPlan /home/kgrittn/pg/master/src/backend/utils/cache/plancache.c:1166 #17 0x239689d in _SPI_execute_plan /home/kgrittn/pg/master/src/backend/executor/spi.c:2077 #18 0x239c140 in SPI_execute_plan /home/kgrittn/pg/master/src/backend/executor/spi.c:418 #19 0x3d526cf in pg_get_viewdef_worker /home/kgrittn/pg/master/src/backend/utils/adt/ruleutils.c:638 #20 0x3d51b4f in pg_get_viewdef /home/kgrittn/pg/master/src/backend/utils/adt/ruleutils.c:521 #21 0x20d2afd in ExecMakeFunctionResult /home/kgrittn/pg/master/src/backend/executor/execQual.c:1938 #22 0x2077d56 in ExecEvalFunc /home/kgrittn/pg/master/src/backend/executor/execQual.c:2377 #23 0x20c70ff in ExecTargetList /home/kgrittn/pg/master/src/backend/executor/execQual.c:5244 #24 0x20c5c1a in ExecProject /home/kgrittn/pg/master/src/backend/executor/execQual.c:5459 #25 0x21ed3a5 in ExecHashJoin /home/kgrittn/pg/master/src/backend/executor/nodeHashjoin.c:320 #26 0x20208a2 in ExecProcNode /home/kgrittn/pg/master/src/backend/executor/execProcnode.c:457 #27 0x22d233a in ExecSort /home/kgrittn/pg/master/src/backend/executor/nodeSort.c:103 #28 0x20209a0 in ExecProcNode /home/kgrittn/pg/master/src/backend/executor/execProcnode.c:468 #29 0x1fe8a64 in ExecutePlan /home/kgrittn/pg/master/src/backend/executor/execMain.c:1474 #30 0x1fe79b8 in standard_ExecutorRun /home/kgrittn/pg/master/src/backend/executor/execMain.c:308 #31 0x1fe5d19 in ExecutorRun /home/kgrittn/pg/master/src/backend/executor/execMain.c:256 #32 0x34cd5b1 in PortalRunSelect /home/kgrittn/pg/master/src/backend/tcop/pquery.c:946 #33 0x34c9c81 in PortalRun /home/kgrittn/pg/master/src/backend/tcop/pquery.c:790 #34 0x349f211 in exec_simple_query /home/kgrittn/pg/master/src/backend/tcop/postgres.c:1048 #35 0x3499f10 in PostgresMain /home/kgrittn/pg/master/src/backend/tcop/postgres.c:3992 #36 0x2f087f5 in BackendRun /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:4085 #37 0x2f04700 in BackendStartup /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:3774 #38 0x2ee5b66 in ServerLoop /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:1585 #39 0x2eda2be in PostmasterMain /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:1240 #40 0x24cd113 in main /home/kgrittn/pg/master/src/backend/main/main.c:196 #41 0x2b8189ec376c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226 #42 0x4dc32c in _start ??:? 0x000004f3ed9f is located 1 bytes to the left of global variable '' from 'ruleutils.c' (0x4f3eda0) of size 16 0x000004f3ed9f is located 55 bytes to the right of global variable '.str369' from 'ruleutils.c' (0x4f3ed60) of size 8 '.str369' is ascii string '_RETURN' SUMMARY: AddressSanitizer: global-buffer-overflow ??:0 ?? Shadow bytes around the buggy address: 0x0000809dfd60: f9 f9 f9 f9 00 00 00 06 f9 f9 f9 f9 00 00 04 f9 0x0000809dfd70: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 04 f9 f9 0x0000809dfd80: f9 f9 f9 f9 00 00 06 f9 f9 f9 f9 f9 00 00 03 f9 0x0000809dfd90: f9 f9 f9 f9 00 06 f9 f9 f9 f9 f9 f9 00 00 00 04 0x0000809dfda0: f9 f9 f9 f9 00 00 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 =>0x0000809dfdb0: f9 f9 f9[f9]00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 0x0000809dfdc0: 00 03 f9 f9 f9 f9 f9 f9 00 03 f9 f9 f9 f9 f9 f9 0x0000809dfdd0: 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 00 00 00 00 0x0000809dfde0: 00 00 02 f9 f9 f9 f9 f9 00 00 00 00 00 00 f9 f9 0x0000809dfdf0: f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 00 f9 f9 f9 0x0000809dfe00: f9 f9 f9 f9 00 01 f9 f9 f9 f9 f9 f9 00 03 f9 f9 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Heap right redzone: fb Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 ASan internal: fe ==21281==ABORTINGclang-sanitizer-3.txt (text/plain, 6.1K) download
================================================================= ==21225==ERROR: AddressSanitizer: global-buffer-overflow on address 0x000004f3ed9f at pc 0x38d9bf1 bp 0x7fffdc19c450 sp 0x7fffdc19c448 READ of size 64 at 0x000004f3ed9f thread T0 #0 0x38d9bf0 in datumCopy /home/kgrittn/pg/master/src/backend/utils/adt/datum.c:132 #1 0x2cd2fee in eval_const_expressions_mutator /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2257 #2 0x251969f in expression_tree_mutator /home/kgrittn/pg/master/src/backend/nodes/nodeFuncs.c:2544 #3 0x2d03e3d in simplify_function /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:3636 #4 0x2cd8c07 in eval_const_expressions_mutator /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2387 #5 0x2d0917d in simplify_and_arguments /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:3465 #6 0x2cdebd2 in eval_const_expressions_mutator /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2571 #7 0x2ccfc4f in eval_const_expressions /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2181 #8 0x2b41721 in preprocess_expression /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:675 #9 0x2b42c68 in preprocess_qual_conditions /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:737 #10 0x2b3593f in subquery_planner /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:442 #11 0x2b2c195 in standard_planner /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:210 #12 0x2b29ff8 in planner /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:139 #13 0x348d509 in pg_plan_query /home/kgrittn/pg/master/src/backend/tcop/postgres.c:753 #14 0x348e124 in pg_plan_queries /home/kgrittn/pg/master/src/backend/tcop/postgres.c:812 #15 0x44f7d1d in BuildCachedPlan /home/kgrittn/pg/master/src/backend/utils/cache/plancache.c:907 #16 0x44eecc4 in GetCachedPlan /home/kgrittn/pg/master/src/backend/utils/cache/plancache.c:1166 #17 0x239689d in _SPI_execute_plan /home/kgrittn/pg/master/src/backend/executor/spi.c:2077 #18 0x239c140 in SPI_execute_plan /home/kgrittn/pg/master/src/backend/executor/spi.c:418 #19 0x3d526cf in pg_get_viewdef_worker /home/kgrittn/pg/master/src/backend/utils/adt/ruleutils.c:638 #20 0x3d51b4f in pg_get_viewdef /home/kgrittn/pg/master/src/backend/utils/adt/ruleutils.c:521 #21 0x20d2afd in ExecMakeFunctionResult /home/kgrittn/pg/master/src/backend/executor/execQual.c:1938 #22 0x2077d56 in ExecEvalFunc /home/kgrittn/pg/master/src/backend/executor/execQual.c:2377 #23 0x209c8f4 in ExecEvalCase /home/kgrittn/pg/master/src/backend/executor/execQual.c:2933 #24 0x20bcdab in ExecEvalCoerceToDomain /home/kgrittn/pg/master/src/backend/executor/execQual.c:3878 #25 0x20c70ff in ExecTargetList /home/kgrittn/pg/master/src/backend/executor/execQual.c:5244 #26 0x20c5c1a in ExecProject /home/kgrittn/pg/master/src/backend/executor/execQual.c:5459 #27 0x229fba7 in ExecNestLoop /home/kgrittn/pg/master/src/backend/executor/nodeNestloop.c:267 #28 0x20207a4 in ExecProcNode /home/kgrittn/pg/master/src/backend/executor/execProcnode.c:449 #29 0x22d233a in ExecSort /home/kgrittn/pg/master/src/backend/executor/nodeSort.c:103 #30 0x20209a0 in ExecProcNode /home/kgrittn/pg/master/src/backend/executor/execProcnode.c:468 #31 0x1fe8a64 in ExecutePlan /home/kgrittn/pg/master/src/backend/executor/execMain.c:1474 #32 0x1fe79b8 in standard_ExecutorRun /home/kgrittn/pg/master/src/backend/executor/execMain.c:308 #33 0x1fe5d19 in ExecutorRun /home/kgrittn/pg/master/src/backend/executor/execMain.c:256 #34 0x34cd5b1 in PortalRunSelect /home/kgrittn/pg/master/src/backend/tcop/pquery.c:946 #35 0x34c9c81 in PortalRun /home/kgrittn/pg/master/src/backend/tcop/pquery.c:790 #36 0x349f211 in exec_simple_query /home/kgrittn/pg/master/src/backend/tcop/postgres.c:1048 #37 0x3499f10 in PostgresMain /home/kgrittn/pg/master/src/backend/tcop/postgres.c:3992 #38 0x2f087f5 in BackendRun /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:4085 #39 0x2f04700 in BackendStartup /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:3774 #40 0x2ee5b66 in ServerLoop /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:1585 #41 0x2eda2be in PostmasterMain /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:1240 #42 0x24cd113 in main /home/kgrittn/pg/master/src/backend/main/main.c:196 #43 0x2b8189ec376c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226 #44 0x4dc32c in _start ??:? 0x000004f3ed9f is located 1 bytes to the left of global variable '' from 'ruleutils.c' (0x4f3eda0) of size 16 0x000004f3ed9f is located 55 bytes to the right of global variable '.str369' from 'ruleutils.c' (0x4f3ed60) of size 8 '.str369' is ascii string '_RETURN' SUMMARY: AddressSanitizer: global-buffer-overflow ??:0 ?? Shadow bytes around the buggy address: 0x0000809dfd60: f9 f9 f9 f9 00 00 00 06 f9 f9 f9 f9 00 00 04 f9 0x0000809dfd70: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 04 f9 f9 0x0000809dfd80: f9 f9 f9 f9 00 00 06 f9 f9 f9 f9 f9 00 00 03 f9 0x0000809dfd90: f9 f9 f9 f9 00 06 f9 f9 f9 f9 f9 f9 00 00 00 04 0x0000809dfda0: f9 f9 f9 f9 00 00 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 =>0x0000809dfdb0: f9 f9 f9[f9]00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 0x0000809dfdc0: 00 03 f9 f9 f9 f9 f9 f9 00 03 f9 f9 f9 f9 f9 f9 0x0000809dfdd0: 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 00 00 00 00 0x0000809dfde0: 00 00 02 f9 f9 f9 f9 f9 00 00 00 00 00 00 f9 f9 0x0000809dfdf0: f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 00 f9 f9 f9 0x0000809dfe00: f9 f9 f9 f9 00 01 f9 f9 f9 f9 f9 f9 00 03 f9 f9 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Heap right redzone: fb Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 ASan internal: fe ==21225==ABORTINGclang-sanitizer-2.txt (text/plain, 5.7K) download
================================================================= ==20989==ERROR: AddressSanitizer: global-buffer-overflow on address 0x000004f3ed9f at pc 0x38d9bf1 bp 0x7fffdc19e150 sp 0x7fffdc19e148 READ of size 64 at 0x000004f3ed9f thread T0 #0 0x38d9bf0 in datumCopy /home/kgrittn/pg/master/src/backend/utils/adt/datum.c:132 #1 0x2cd2fee in eval_const_expressions_mutator /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2257 #2 0x251969f in expression_tree_mutator /home/kgrittn/pg/master/src/backend/nodes/nodeFuncs.c:2544 #3 0x2d03e3d in simplify_function /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:3636 #4 0x2cd8c07 in eval_const_expressions_mutator /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2387 #5 0x2d0917d in simplify_and_arguments /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:3465 #6 0x2cdebd2 in eval_const_expressions_mutator /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2571 #7 0x2ccfc4f in eval_const_expressions /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2181 #8 0x2b41721 in preprocess_expression /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:675 #9 0x2b42c68 in preprocess_qual_conditions /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:737 #10 0x2b3593f in subquery_planner /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:442 #11 0x2b2c195 in standard_planner /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:210 #12 0x2b29ff8 in planner /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:139 #13 0x348d509 in pg_plan_query /home/kgrittn/pg/master/src/backend/tcop/postgres.c:753 #14 0x348e124 in pg_plan_queries /home/kgrittn/pg/master/src/backend/tcop/postgres.c:812 #15 0x44f7d1d in BuildCachedPlan /home/kgrittn/pg/master/src/backend/utils/cache/plancache.c:907 #16 0x44eecc4 in GetCachedPlan /home/kgrittn/pg/master/src/backend/utils/cache/plancache.c:1166 #17 0x239689d in _SPI_execute_plan /home/kgrittn/pg/master/src/backend/executor/spi.c:2077 #18 0x239c140 in SPI_execute_plan /home/kgrittn/pg/master/src/backend/executor/spi.c:418 #19 0x3d526cf in pg_get_viewdef_worker /home/kgrittn/pg/master/src/backend/utils/adt/ruleutils.c:638 #20 0x3d53475 in pg_get_viewdef_ext /home/kgrittn/pg/master/src/backend/utils/adt/ruleutils.c:534 #21 0x20d2afd in ExecMakeFunctionResult /home/kgrittn/pg/master/src/backend/executor/execQual.c:1938 #22 0x2077d56 in ExecEvalFunc /home/kgrittn/pg/master/src/backend/executor/execQual.c:2377 #23 0x20c70ff in ExecTargetList /home/kgrittn/pg/master/src/backend/executor/execQual.c:5244 #24 0x20c5c1a in ExecProject /home/kgrittn/pg/master/src/backend/executor/execQual.c:5459 #25 0x22b8fb6 in ExecResult /home/kgrittn/pg/master/src/backend/executor/nodeResult.c:155 #26 0x201ffb4 in ExecProcNode /home/kgrittn/pg/master/src/backend/executor/execProcnode.c:373 #27 0x1fe8a64 in ExecutePlan /home/kgrittn/pg/master/src/backend/executor/execMain.c:1474 #28 0x1fe79b8 in standard_ExecutorRun /home/kgrittn/pg/master/src/backend/executor/execMain.c:308 #29 0x1fe5d19 in ExecutorRun /home/kgrittn/pg/master/src/backend/executor/execMain.c:256 #30 0x34cd5b1 in PortalRunSelect /home/kgrittn/pg/master/src/backend/tcop/pquery.c:946 #31 0x34c9c81 in PortalRun /home/kgrittn/pg/master/src/backend/tcop/pquery.c:790 #32 0x349f211 in exec_simple_query /home/kgrittn/pg/master/src/backend/tcop/postgres.c:1048 #33 0x3499f10 in PostgresMain /home/kgrittn/pg/master/src/backend/tcop/postgres.c:3992 #34 0x2f087f5 in BackendRun /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:4085 #35 0x2f04700 in BackendStartup /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:3774 #36 0x2ee5b66 in ServerLoop /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:1585 #37 0x2eda2be in PostmasterMain /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:1240 #38 0x24cd113 in main /home/kgrittn/pg/master/src/backend/main/main.c:196 #39 0x2b8189ec376c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226 #40 0x4dc32c in _start ??:? 0x000004f3ed9f is located 1 bytes to the left of global variable '' from 'ruleutils.c' (0x4f3eda0) of size 16 0x000004f3ed9f is located 55 bytes to the right of global variable '.str369' from 'ruleutils.c' (0x4f3ed60) of size 8 '.str369' is ascii string '_RETURN' SUMMARY: AddressSanitizer: global-buffer-overflow ??:0 ?? Shadow bytes around the buggy address: 0x0000809dfd60: f9 f9 f9 f9 00 00 00 06 f9 f9 f9 f9 00 00 04 f9 0x0000809dfd70: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 04 f9 f9 0x0000809dfd80: f9 f9 f9 f9 00 00 06 f9 f9 f9 f9 f9 00 00 03 f9 0x0000809dfd90: f9 f9 f9 f9 00 06 f9 f9 f9 f9 f9 f9 00 00 00 04 0x0000809dfda0: f9 f9 f9 f9 00 00 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 =>0x0000809dfdb0: f9 f9 f9[f9]00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 0x0000809dfdc0: 00 03 f9 f9 f9 f9 f9 f9 00 03 f9 f9 f9 f9 f9 f9 0x0000809dfdd0: 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 00 00 00 00 0x0000809dfde0: 00 00 02 f9 f9 f9 f9 f9 00 00 00 00 00 00 f9 f9 0x0000809dfdf0: f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 00 f9 f9 f9 0x0000809dfe00: f9 f9 f9 f9 00 01 f9 f9 f9 f9 f9 f9 00 03 f9 f9 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Heap right redzone: fb Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 ASan internal: fe ==20989==ABORTING^ permalink raw reply [nested|flat] 3+ messages in threadclang-sanitizer-5.txt (text/plain, 5.8K) download
================================================================= ==21433==ERROR: AddressSanitizer: global-buffer-overflow on address 0x000004f3ed9f at pc 0x38d9bf1 bp 0x7fffdc19dff0 sp 0x7fffdc19dfe8 READ of size 64 at 0x000004f3ed9f thread T0 #0 0x38d9bf0 in datumCopy /home/kgrittn/pg/master/src/backend/utils/adt/datum.c:132 #1 0x2cd2fee in eval_const_expressions_mutator /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2257 #2 0x251969f in expression_tree_mutator /home/kgrittn/pg/master/src/backend/nodes/nodeFuncs.c:2544 #3 0x2d03e3d in simplify_function /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:3636 #4 0x2cd8c07 in eval_const_expressions_mutator /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2387 #5 0x2d0917d in simplify_and_arguments /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:3465 #6 0x2cdebd2 in eval_const_expressions_mutator /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2571 #7 0x2ccfc4f in eval_const_expressions /home/kgrittn/pg/master/src/backend/optimizer/util/clauses.c:2181 #8 0x2b41721 in preprocess_expression /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:675 #9 0x2b42c68 in preprocess_qual_conditions /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:737 #10 0x2b3593f in subquery_planner /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:442 #11 0x2b2c195 in standard_planner /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:210 #12 0x2b29ff8 in planner /home/kgrittn/pg/master/src/backend/optimizer/plan/planner.c:139 #13 0x348d509 in pg_plan_query /home/kgrittn/pg/master/src/backend/tcop/postgres.c:753 #14 0x348e124 in pg_plan_queries /home/kgrittn/pg/master/src/backend/tcop/postgres.c:812 #15 0x44f7d1d in BuildCachedPlan /home/kgrittn/pg/master/src/backend/utils/cache/plancache.c:907 #16 0x44eecc4 in GetCachedPlan /home/kgrittn/pg/master/src/backend/utils/cache/plancache.c:1166 #17 0x239689d in _SPI_execute_plan /home/kgrittn/pg/master/src/backend/executor/spi.c:2077 #18 0x239c140 in SPI_execute_plan /home/kgrittn/pg/master/src/backend/executor/spi.c:418 #19 0x3d526cf in pg_get_viewdef_worker /home/kgrittn/pg/master/src/backend/utils/adt/ruleutils.c:638 #20 0x3d51b4f in pg_get_viewdef /home/kgrittn/pg/master/src/backend/utils/adt/ruleutils.c:521 #21 0x20d2afd in ExecMakeFunctionResult /home/kgrittn/pg/master/src/backend/executor/execQual.c:1938 #22 0x2077d56 in ExecEvalFunc /home/kgrittn/pg/master/src/backend/executor/execQual.c:2377 #23 0x20c70ff in ExecTargetList /home/kgrittn/pg/master/src/backend/executor/execQual.c:5244 #24 0x20c5c1a in ExecProject /home/kgrittn/pg/master/src/backend/executor/execQual.c:5459 #25 0x20e0d36 in ExecScan /home/kgrittn/pg/master/src/backend/executor/execScan.c:207 #26 0x2202606 in ExecIndexScan /home/kgrittn/pg/master/src/backend/executor/nodeIndexscan.c:150 #27 0x20202ae in ExecProcNode /home/kgrittn/pg/master/src/backend/executor/execProcnode.c:404 #28 0x1fe8a64 in ExecutePlan /home/kgrittn/pg/master/src/backend/executor/execMain.c:1474 #29 0x1fe79b8 in standard_ExecutorRun /home/kgrittn/pg/master/src/backend/executor/execMain.c:308 #30 0x1fe5d19 in ExecutorRun /home/kgrittn/pg/master/src/backend/executor/execMain.c:256 #31 0x34cd5b1 in PortalRunSelect /home/kgrittn/pg/master/src/backend/tcop/pquery.c:946 #32 0x34c9c81 in PortalRun /home/kgrittn/pg/master/src/backend/tcop/pquery.c:790 #33 0x349f211 in exec_simple_query /home/kgrittn/pg/master/src/backend/tcop/postgres.c:1048 #34 0x3499f10 in PostgresMain /home/kgrittn/pg/master/src/backend/tcop/postgres.c:3992 #35 0x2f087f5 in BackendRun /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:4085 #36 0x2f04700 in BackendStartup /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:3774 #37 0x2ee5b66 in ServerLoop /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:1585 #38 0x2eda2be in PostmasterMain /home/kgrittn/pg/master/src/backend/postmaster/postmaster.c:1240 #39 0x24cd113 in main /home/kgrittn/pg/master/src/backend/main/main.c:196 #40 0x2b8189ec376c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226 #41 0x4dc32c in _start ??:? 0x000004f3ed9f is located 1 bytes to the left of global variable '' from 'ruleutils.c' (0x4f3eda0) of size 16 0x000004f3ed9f is located 55 bytes to the right of global variable '.str369' from 'ruleutils.c' (0x4f3ed60) of size 8 '.str369' is ascii string '_RETURN' SUMMARY: AddressSanitizer: global-buffer-overflow ??:0 ?? Shadow bytes around the buggy address: 0x0000809dfd60: f9 f9 f9 f9 00 00 00 06 f9 f9 f9 f9 00 00 04 f9 0x0000809dfd70: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 04 f9 f9 0x0000809dfd80: f9 f9 f9 f9 00 00 06 f9 f9 f9 f9 f9 00 00 03 f9 0x0000809dfd90: f9 f9 f9 f9 00 06 f9 f9 f9 f9 f9 f9 00 00 00 04 0x0000809dfda0: f9 f9 f9 f9 00 00 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 =>0x0000809dfdb0: f9 f9 f9[f9]00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 0x0000809dfdc0: 00 03 f9 f9 f9 f9 f9 f9 00 03 f9 f9 f9 f9 f9 f9 0x0000809dfdd0: 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 00 00 00 00 0x0000809dfde0: 00 00 02 f9 f9 f9 f9 f9 00 00 00 00 00 00 f9 f9 0x0000809dfdf0: f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 00 f9 f9 f9 0x0000809dfe00: f9 f9 f9 f9 00 01 f9 f9 f9 f9 f9 f9 00 03 f9 f9 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Heap right redzone: fb Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 ASan internal: fe ==21433==ABORTING
end of thread, other threads:[~2013-11-14 14:20 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2013-11-13 00:58 Clang 3.3 findings and Illegal Shifts Jeffrey Walton <noloader@gmail.com> 2013-11-13 07:35 ` Andres Freund <andres@2ndquadrant.com> 2013-11-14 14:20 ` Kevin Grittner <kgrittn@ymail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox