Skip to content

Remove defer unlock when goroutine change#228

Merged
wu-sheng merged 1 commit into
apache:mainfrom
mrproliu:remove-defer
Jul 18, 2025
Merged

Remove defer unlock when goroutine change#228
wu-sheng merged 1 commit into
apache:mainfrom
mrproliu:remove-defer

Conversation

@mrproliu

Copy link
Copy Markdown
Contributor

Since the Go agent adds a new goroutine to the tracing snapshot during new_proc1, it uses a defer statement to perform the unlock operation. However, because new_proc1 returns a new goroutine, it differs from the one executing the defer statement, which leads to a fatal error.

@mrproliu mrproliu added this to the 0.7.0 milestone Jul 18, 2025
@mrproliu mrproliu requested a review from wu-sheng July 18, 2025 04:00
@mrproliu mrproliu added the bug Something isn't working label Jul 18, 2025
@wu-sheng wu-sheng merged commit 654a593 into apache:main Jul 18, 2025
43 checks passed
@mrproliu mrproliu deleted the remove-defer branch July 18, 2025 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants