Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Crash with di_search_thread. #363

Closed
mistymntncop opened this issue Nov 18, 2024 · 9 comments
Closed

[Bug] Crash with di_search_thread. #363

mistymntncop opened this issue Nov 18, 2024 · 9 comments
Labels
Bug A report of unintended or broken behavior. Debugger Pertains to the debugger.

Comments

@mistymntncop
Copy link

[Window Title]
Fatal Exception

[Content]
A fatal exception (code 0xc0000005) occurred. The process is terminating.

Press Ctrl+C to copy this text to clipboard, then create a new issue at
https://github.com/EpicGamesExt/raddebugger/issues

Call stack:
1. [0x7ff62a9e6200] arena_push +32, base_arena.c line 85
2. [0x7ff62aa4d37b] di_search_thread__entry_point +2059, dbgi.c line 1427
3. [0x7ff62aa009ba] os_w32_thread_entry_point +90, os_core_win32.c line 151
4. [0x7ffc0dc07374] KERNEL32
5. [0x7ffc0ea5cc91] ntdll

Version: 0.9.14 [b99e1022]

[Close]

I am encountering this bug sometimes when I enter variables in the watch window. I don't know if this matters but I am doing multi-process debugging. It seems for some reason the key is not being found. Still trying to get more information.

@foxblock
Copy link

I am having a similar issue, which might be related:

[Window Title]
Fatal Exception

[Content]
A fatal exception (code 0xc0000005) occurred. The process is terminating.

Press Ctrl+C to copy this text to clipboard, then create a new issue at
https://github.com/EpicGamesExt/raddebugger/issues

Call stack:
1. [0x7ff7be7b653e] arena_release +14, base_arena.c line 73
2. [0x7ff7be81e1c3] di_search_evictor_thread__entry_point +883, dbgi.c line 1530
3. [0x7ff7be7d0e9a] os_w32_thread_entry_point +90, os_core_win32.c line 151
4. [0x7ffd6447259d] KERNEL32
5. [0x7ffd6624af38] ntdll

Version: 0.9.14 [b99e1022]

[Schließen]

I can reliably cause this crash to happen by just starting the application and switching between tabs in one of the panels. After 2-4 tab switches the crash occurs.
It only happens on 0.9.14, 0.9.13 (f792da5) is working fine.
If it helps, I can try to narrow it down with a git bisect - just ask for it.

OS is Windows 11 Pro 23H2 (build 22631.4460)

@ryanfleury
Copy link
Collaborator

Sorry about that. Looks like I screwed up the synchronization of the new search stuff, and didn't see it happen on my development workstation. I'll thoroughly investigate this and fix it ASAP.

@ryanfleury
Copy link
Collaborator

Okay, I ended up reproducing at least one of the bugs here (the crash in arena_push), and I believe I have solved the root cause of at least one of them, and I have written a plausible fix for the other one (the crash in arena_clear). Would you both mind giving the top of dev or master a try and letting me know if you still see the issue?

@mistymntncop
Copy link
Author

I tried it and am no longer experiencing the crash :)

@ryanfleury
Copy link
Collaborator

Sounds good - I believe I've fixed the other one too, so I will close this, but just let me know if you hit the issue again @foxblock and I'll reopen & investigate further.

@foxblock
Copy link

Unfortunately I am still getting the error with the same steps to reproduce:

[Window Title]
Fatal Exception

[Content]
A fatal exception (code 0xc0000005) occurred. The process is terminating.

Press Ctrl+C to copy this text to clipboard, then create a new issue at
https://github.com/EpicGamesExt/raddebugger/issues

Call stack:
1. [0x7ff78d34653e] arena_release +14, base_arena.c line 73
2. [0x7ff78d3ae3b3] di_search_evictor_thread__entry_point +883, dbgi.c line 1539
3. [0x7ff78d36103a] os_w32_thread_entry_point +90, os_core_win32.c line 151
4. [0x7ffd6447259d] KERNEL32
5. [0x7ffd6624af38] ntdll

Version: 0.9.14 [9eb482b1]

[Schließen]

@ryanfleury ryanfleury reopened this Nov 19, 2024
@ryanfleury
Copy link
Collaborator

ryanfleury commented Nov 19, 2024

Can you pull and try again @foxblock? I have pushed another plausible fix. I reproduced a crash using the same steps, although the spot at which my exception was thrown was different (although it was an invalid access of the same data structure that yours is crashing at, and I have reason to believe that the same bug was causing both).

@ryanfleury ryanfleury added Bug A report of unintended or broken behavior. Debugger Pertains to the debugger. labels Nov 19, 2024
@foxblock
Copy link

Hi @ryanfleury,
that latest commit seems to have done the trick. At least I could not reproduce the error anymore.
Thanks for the quick fix!

@ryanfleury
Copy link
Collaborator

Sounds good, closing this now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A report of unintended or broken behavior. Debugger Pertains to the debugger.
Projects
None yet
Development

No branches or pull requests

3 participants