Re: ubsan
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@postgresql.org
Date: 2022-11-21T23:45:42Z
Lists: pgsql-hackers
Hi, On November 21, 2022 3:42:38 PM PST, Justin Pryzby <pryzby@telsasoft.com> wrote: >On Mon, Nov 21, 2022 at 03:15:03PM -0800, Andres Freund wrote: >> Hi, >> >> On 2022-09-29 18:17:55 -0700, Andres Freund wrote: >> > Attached is a rebased version of this patch. Hopefully with a reasonable >> > amount of comments? I kind of wanted to add a comment to reached_main, but it >> > just seems to end up restating the variable name... >> >> I've now pushed a version of this with a few cleanups, mostly in > >Thanks. I'd meant to ask if there's a reason why you didn't use >meson -D sanitize ? > >I recall seeing a bug which affected linking .. maybe that's why ... Doesn't allow enabling multiple sanitizers (the PR for that might recently have been merged, but that doesn't help us yet). We also need to add the no-recover flag anyway. So there doesn't seem to be much point. Andres -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Commits
-
Avoid possible crash within libsanitizer.
- d4baa327a1c9 19 (unreleased) landed
- c775bf048abd 16.11 landed
- a9515f294de1 17.7 landed
- 6d8acb777715 18.1 landed
-
ci: Use -fsanitize=undefined,alignment,address in linux tasks
- bd82928625e7 16.0 landed
-
Add workaround to make ubsan and ps_status.c compatible
- f686ae82f2d7 16.0 landed
-
Don't try to translate NULL in GetConfigOptionByNum().
- 81045e1e1c33 14.3 landed
- c0f99bb520da 13.7 landed
- 61a007feed52 12.11 landed
- 3ac7d024122f 15.0 landed
-
Don't call fwrite() with len == 0 when writing out relcache init file.
- 5f4615b9def5 10.21 landed
- 2121d58091a3 11.16 landed
- c5b60a68cc08 12.11 landed
- 8014c61ebda1 13.7 landed
- 89a94c24aadd 14.3 landed
- 1c6bb380e5ab 15.0 landed
-
configure: check for dlsym instead of dlopen.
- e52e9bd57f33 14.3 landed
- 7c163aa93fe6 13.7 landed
- 6a767bc2e712 12.11 landed
- a77dddb42e09 11.16 landed
- 2a919372655d 10.21 landed
- e71c76fcab8d 15.0 landed
-
Clean up assorted failures under clang's -fsanitize=undefined checks.
- 46ab07ffda9d 15.0 cited