Commit 9d24c11
committed
Fix thread_profile_frames crashing due to uninitialized PC
ZJIT leaves cfp->pc uninitialized in many instances, and the conditions
in thread_profile_frames() was outdated, leading sampling profilers to
crash.
Make sure to always pass a valid PC.1 parent 5b5b5b3 commit 9d24c11
1 file changed
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1729 | 1729 | | |
1730 | 1730 | | |
1731 | 1731 | | |
1732 | | - | |
1733 | 1732 | | |
1734 | 1733 | | |
1735 | 1734 | | |
| |||
1761 | 1760 | | |
1762 | 1761 | | |
1763 | 1762 | | |
1764 | | - | |
1765 | | - | |
1766 | | - | |
1767 | | - | |
1768 | | - | |
1769 | | - | |
1770 | | - | |
1771 | | - | |
1772 | | - | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
1773 | 1768 | | |
| 1769 | + | |
1774 | 1770 | | |
1775 | 1771 | | |
1776 | 1772 | | |
| |||
0 commit comments