godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.1k stars 20.2k forks source link

Crash when debugging with neovim from a use-after-free with List #95998

Open RadiantUwU opened 3 weeks ago

RadiantUwU commented 3 weeks ago

Tested versions

Reproducible in 4.4.dev master Reproducible in 4.3.stable Not reproducible in 4.2.2.stable

System information

Linux (I'm writing this on mobile)

Issue description

https://media.discordapp.net/attachments/669162571864997888/1276353485256003584/2024-08-23_03-30-07.mp4?ex=66c9e110&is=66c88f90&hm=907d27b127b0c4b40f176fb06384bb3dc19e90d2aeca98ecaa444890cce7c5c2& https://media.discordapp.net/attachments/669162571864997888/1276341929654747206/image.png?ex=66c9d64d&is=66c884cd&hm=c9f6683e881bed98685672f9e10bc375d2b668a2362dd3e1fafb653847ab0c72& image-114 https://media.discordapp.net/attachments/669162571864997888/1276341715594252390/image.png?ex=66c9d61a&is=66c8849a&hm=214b454c49b47884ebee0b95db7dce066bd256bcddfe8f3e151ff9d7b04c6a2c&

Steps to reproduce

https://media.discordapp.net/attachments/669162571864997888/1276341391143993344/Screencast_from_2024-08-22_22-27-33.webm?ex=66c9d5cc&is=66c8844c&hm=9021406895e2be6d5c18408aac89a0a4c0d3d47fac5493db2a0575c1c3436e67&

Minimal reproduction project (MRP)

N/A

RadiantUwU commented 3 weeks ago

Suspecting https://github.com/godotengine/godot/pull/90705

RadiantUwU commented 3 weeks ago

Shouldn't this be core/editor if the crash occurs inside List?

timothyqiu commented 3 weeks ago

The videos & images in OP are expired. You can upload them directly on GitHub or provide a text description of the steps to reproduce.

RadiantUwU commented 3 weeks ago

Video's too big. Crash occurs inside update_breakpoints debugger_adapter_protocol.cpp:831 Crash occurs from removing breakpoints and adding them constantly from the neovim side. It occurs when removing a breakpoint.

RadiantUwU commented 2 weeks ago

image image DAP setup

RadiantUwU commented 2 weeks ago

image The other comment was wrong, this was the actual setup.

RadiantUwU commented 2 weeks ago

Godot is connected using remote debug to the DAP of nvim. https://github.com/nvim-lua/kickstart.nvim https://github.com/mfussenegger/nvim-dap These are the repos used.