- Notifications
You must be signed in to change notification settings - Fork5
Commitd198171
committed
Clear MyProc and MyProcSignalState before they become invalid.
Evidence from buildfarm member crake suggests that the new test_shm_mqmodule is routinely crashing the server due to the arrival of a SIGUSR1after the shared memory segment has been unmapped. Although processesusing the new dynamic background worker facilities are more likely toreceive a SIGUSR1 around this time, the problem is also possible on olderbranches, so I'm back-patching the parts of this change that apply toolder branches as far as they apply.It's already generally the case that code checks whether these pointersare NULL before deferencing them, so the important thing is mostly tomake sure that they do get set to NULL before they become invalid. Butin master, there's one case in procsignal_sigusr1_handler that lacks aNULL guard, so add that.Patch by me; review by Tom Lane.1 parent637fab6 commitd198171
2 files changed
+33
-18
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
149 | 149 |
| |
150 | 150 |
| |
151 | 151 |
| |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
152 | 159 |
| |
153 | 160 |
| |
154 | 161 |
| |
| |||
285 | 292 |
| |
286 | 293 |
| |
287 | 294 |
| |
288 |
| - | |
| 295 | + | |
289 | 296 |
| |
290 | 297 |
| |
291 | 298 |
| |
|
Lines changed: 25 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
773 | 773 |
| |
774 | 774 |
| |
775 | 775 |
| |
| 776 | + | |
776 | 777 |
| |
777 | 778 |
| |
778 | 779 |
| |
| |||
797 | 798 |
| |
798 | 799 |
| |
799 | 800 |
| |
800 |
| - | |
801 |
| - | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
802 | 809 |
| |
803 | 810 |
| |
804 | 811 |
| |
805 | 812 |
| |
806 | 813 |
| |
807 | 814 |
| |
808 |
| - | |
809 |
| - | |
| 815 | + | |
| 816 | + | |
810 | 817 |
| |
811 | 818 |
| |
812 | 819 |
| |
813 |
| - | |
814 |
| - | |
| 820 | + | |
| 821 | + | |
815 | 822 |
| |
816 | 823 |
| |
817 | 824 |
| |
818 |
| - | |
819 |
| - | |
| 825 | + | |
| 826 | + | |
820 | 827 |
| |
821 | 828 |
| |
822 |
| - | |
823 |
| - | |
824 |
| - | |
825 | 829 |
| |
826 | 830 |
| |
827 | 831 |
| |
| |||
850 | 854 |
| |
851 | 855 |
| |
852 | 856 |
| |
| 857 | + | |
853 | 858 |
| |
854 | 859 |
| |
855 | 860 |
| |
| |||
860 | 865 |
| |
861 | 866 |
| |
862 | 867 |
| |
863 |
| - | |
864 |
| - | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
865 | 876 |
| |
866 | 877 |
| |
867 | 878 |
| |
868 | 879 |
| |
869 |
| - | |
870 |
| - | |
871 |
| - | |
872 |
| - | |
| 880 | + | |
873 | 881 |
| |
874 | 882 |
| |
875 | 883 |
| |
|
0 commit comments
Comments
(0)