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

#2445 revive old LLERROR_CRASH implementation #2447

Merged

Conversation

brad-linden
Copy link
Collaborator

@brad-linden brad-linden commented Aug 28, 2024

this removes the indirect crashdriver() method of crashing in LL_ERRS and restores the old method of dereferencing a bad pointer except using 0xDEADBEEFDEADBEEF instead of NULL, which by experience seems better supported by modern compilers for the time being

should fix #2445

@brad-linden
Copy link
Collaborator Author

brad-linden commented Aug 28, 2024

if this stops working at some point in the future due to even better Undefined Behavior detection, then it is probably worth looking at replacing this with inline assembly or compiler specific intrinsics (__builtin_trap() etc) to force the crash.

@brad-linden brad-linden merged commit f152280 into release/2024.08-DeltaFPS Aug 28, 2024
11 checks passed
@brad-linden brad-linden deleted the brad/2445-llerrs-stack-location branch August 28, 2024 23:20
@github-actions github-actions bot locked and limited conversation to collaborators Aug 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Force an Error callstacks should show an accurate source location in bugsplat
3 participants