pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Add valgrind suppressions for wcsrtombs optimizations 6+ messages / 1 participants [nested] [flat]
* pgsql: Add valgrind suppressions for wcsrtombs optimizations @ 2018-11-17 23:07 Tomas Vondra <tomas.vondra@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Tomas Vondra @ 2018-11-17 23:07 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add valgrind suppressions for wcsrtombs optimizations wcsrtombs (called through wchar2char from common functions like lower, upper, etc.) uses various optimizations that may look like access to uninitialized data, triggering valgrind reports. For example AVX2 instructions load data in 256-bit chunks, and gconv does something similar with 32-bit chunks. This is faster than accessing the bytes one by one, and the uninitialized part of the buffer is not actually used. So suppress the bogus reports. The exact stack depends on possible optimizations - it might be AVX, SSE (as in the report by Aleksander Alekseev) or something else. Hence the last frame is wildcarded, to deal with this. Backpatch all the way back to 9.4. Author: Tomas Vondra Discussion: https://www.postgresql.org/message-id/flat/90ac0452-e907-e7a4-b3c8-15bd33780e62%402ndquadrant.com Discussion: https://www.postgresql.org/message-id/20180220150838.GD18315@e733.localdomain Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d3bbc4b96a5b4d055cf636596c6865913a099929 Modified Files -------------- src/tools/valgrind.supp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Add valgrind suppressions for wcsrtombs optimizations @ 2018-11-17 23:08 Tomas Vondra <tomas.vondra@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Tomas Vondra @ 2018-11-17 23:08 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add valgrind suppressions for wcsrtombs optimizations wcsrtombs (called through wchar2char from common functions like lower, upper, etc.) uses various optimizations that may look like access to uninitialized data, triggering valgrind reports. For example AVX2 instructions load data in 256-bit chunks, and gconv does something similar with 32-bit chunks. This is faster than accessing the bytes one by one, and the uninitialized part of the buffer is not actually used. So suppress the bogus reports. The exact stack depends on possible optimizations - it might be AVX, SSE (as in the report by Aleksander Alekseev) or something else. Hence the last frame is wildcarded, to deal with this. Backpatch all the way back to 9.4. Author: Tomas Vondra Discussion: https://www.postgresql.org/message-id/flat/90ac0452-e907-e7a4-b3c8-15bd33780e62%402ndquadrant.com Discussion: https://www.postgresql.org/message-id/20180220150838.GD18315@e733.localdomain Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/bf070ce09e05943d6484de0ec17c7b02f2690a6d Modified Files -------------- src/tools/valgrind.supp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Add valgrind suppressions for wcsrtombs optimizations @ 2018-11-17 23:08 Tomas Vondra <tomas.vondra@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Tomas Vondra @ 2018-11-17 23:08 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add valgrind suppressions for wcsrtombs optimizations wcsrtombs (called through wchar2char from common functions like lower, upper, etc.) uses various optimizations that may look like access to uninitialized data, triggering valgrind reports. For example AVX2 instructions load data in 256-bit chunks, and gconv does something similar with 32-bit chunks. This is faster than accessing the bytes one by one, and the uninitialized part of the buffer is not actually used. So suppress the bogus reports. The exact stack depends on possible optimizations - it might be AVX, SSE (as in the report by Aleksander Alekseev) or something else. Hence the last frame is wildcarded, to deal with this. Backpatch all the way back to 9.4. Author: Tomas Vondra Discussion: https://www.postgresql.org/message-id/flat/90ac0452-e907-e7a4-b3c8-15bd33780e62%402ndquadrant.com Discussion: https://www.postgresql.org/message-id/20180220150838.GD18315@e733.localdomain Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5b16a353543ecec36ffda68269defb7b1b002f60 Modified Files -------------- src/tools/valgrind.supp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Add valgrind suppressions for wcsrtombs optimizations @ 2018-11-17 23:09 Tomas Vondra <tomas.vondra@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Tomas Vondra @ 2018-11-17 23:09 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add valgrind suppressions for wcsrtombs optimizations wcsrtombs (called through wchar2char from common functions like lower, upper, etc.) uses various optimizations that may look like access to uninitialized data, triggering valgrind reports. For example AVX2 instructions load data in 256-bit chunks, and gconv does something similar with 32-bit chunks. This is faster than accessing the bytes one by one, and the uninitialized part of the buffer is not actually used. So suppress the bogus reports. The exact stack depends on possible optimizations - it might be AVX, SSE (as in the report by Aleksander Alekseev) or something else. Hence the last frame is wildcarded, to deal with this. Backpatch all the way back to 9.4. Author: Tomas Vondra Discussion: https://www.postgresql.org/message-id/flat/90ac0452-e907-e7a4-b3c8-15bd33780e62%402ndquadrant.com Discussion: https://www.postgresql.org/message-id/20180220150838.GD18315@e733.localdomain Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/71b2951ccc433a6dd799efedff9f5927c32440f6 Modified Files -------------- src/tools/valgrind.supp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Add valgrind suppressions for wcsrtombs optimizations @ 2018-11-17 23:09 Tomas Vondra <tomas.vondra@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Tomas Vondra @ 2018-11-17 23:09 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add valgrind suppressions for wcsrtombs optimizations wcsrtombs (called through wchar2char from common functions like lower, upper, etc.) uses various optimizations that may look like access to uninitialized data, triggering valgrind reports. For example AVX2 instructions load data in 256-bit chunks, and gconv does something similar with 32-bit chunks. This is faster than accessing the bytes one by one, and the uninitialized part of the buffer is not actually used. So suppress the bogus reports. The exact stack depends on possible optimizations - it might be AVX, SSE (as in the report by Aleksander Alekseev) or something else. Hence the last frame is wildcarded, to deal with this. Backpatch all the way back to 9.4. Author: Tomas Vondra Discussion: https://www.postgresql.org/message-id/flat/90ac0452-e907-e7a4-b3c8-15bd33780e62%402ndquadrant.com Discussion: https://www.postgresql.org/message-id/20180220150838.GD18315@e733.localdomain Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f57b94d9d0bbf42a18690d820f884dc0fc6bf79e Modified Files -------------- src/tools/valgrind.supp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Add valgrind suppressions for wcsrtombs optimizations @ 2018-11-17 23:10 Tomas Vondra <tomas.vondra@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Tomas Vondra @ 2018-11-17 23:10 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add valgrind suppressions for wcsrtombs optimizations wcsrtombs (called through wchar2char from common functions like lower, upper, etc.) uses various optimizations that may look like access to uninitialized data, triggering valgrind reports. For example AVX2 instructions load data in 256-bit chunks, and gconv does something similar with 32-bit chunks. This is faster than accessing the bytes one by one, and the uninitialized part of the buffer is not actually used. So suppress the bogus reports. The exact stack depends on possible optimizations - it might be AVX, SSE (as in the report by Aleksander Alekseev) or something else. Hence the last frame is wildcarded, to deal with this. Backpatch all the way back to 9.4. Author: Tomas Vondra Discussion: https://www.postgresql.org/message-id/flat/90ac0452-e907-e7a4-b3c8-15bd33780e62%402ndquadrant.com Discussion: https://www.postgresql.org/message-id/20180220150838.GD18315@e733.localdomain Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/41344896364c4bf2229ec590c95cf23a6bec928e Modified Files -------------- src/tools/valgrind.supp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-11-17 23:10 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-11-17 23:07 pgsql: Add valgrind suppressions for wcsrtombs optimizations Tomas Vondra <tomas.vondra@postgresql.org> 2018-11-17 23:08 pgsql: Add valgrind suppressions for wcsrtombs optimizations Tomas Vondra <tomas.vondra@postgresql.org> 2018-11-17 23:08 pgsql: Add valgrind suppressions for wcsrtombs optimizations Tomas Vondra <tomas.vondra@postgresql.org> 2018-11-17 23:09 pgsql: Add valgrind suppressions for wcsrtombs optimizations Tomas Vondra <tomas.vondra@postgresql.org> 2018-11-17 23:09 pgsql: Add valgrind suppressions for wcsrtombs optimizations Tomas Vondra <tomas.vondra@postgresql.org> 2018-11-17 23:10 pgsql: Add valgrind suppressions for wcsrtombs optimizations Tomas Vondra <tomas.vondra@postgresql.org>
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