forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2a8a006
committed
Fix explicit valgrind interaction in read_stream.c.
By calling wipe_mem() on per-buffer data memory that has been released,we are also telling Valgrind that the memory is "noaccess". We need toset it to "undefined" before giving it to the registered callback tofill in, when a slot is reused.As discovered by build farm animal skink when the VACUUM streamificationpatches landed (the first users of per-buffer data).Pushing to master only for now, to clear the error on skink. It's alsopossible that external code might discover the per-buffer data featurein v17, and reasonable to expect Valgrind not to produce spuriousmemcheck reports, but the back-patch is deferred until after theimminent minor release is out of the way.Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Tested-by: Melanie Plageman <melanieplageman@gmail.com>Discussion:https://postgr.es/m/CA%2BhUKG%2Bg6aXpi2FEHqeLOzE%2BxYw%3DOV%2B-N5jhOEnnV%2BF0USM9xA%40mail.gmail.com1 parentefdadeb commit2a8a006
1 file changed
+32
-6
lines changedLines changed: 32 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
193 | 193 |
| |
194 | 194 |
| |
195 | 195 |
| |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
196 | 206 |
| |
197 | 207 |
| |
198 | 208 |
| |
| 209 | + | |
199 | 210 |
| |
200 | 211 |
| |
201 | 212 |
| |
| |||
752 | 763 |
| |
753 | 764 |
| |
754 | 765 |
| |
755 |
| - | |
| 766 | + | |
756 | 767 |
| |
| 768 | + | |
| 769 | + | |
| 770 | + | |
757 | 771 |
| |
758 | 772 |
| |
759 | 773 |
| |
| |||
762 | 776 |
| |
763 | 777 |
| |
764 | 778 |
| |
765 |
| - | |
766 |
| - | |
767 |
| - | |
768 |
| - | |
769 |
| - | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
770 | 796 |
| |
771 | 797 |
| |
772 | 798 |
| |
|
0 commit comments
Comments
(0)