gpu-dawn: Looks like ubsan catches an issue in dawn - crash in debug config (linux, vulkan) #221
Labels
No labels
CI
all
basisu
blog
bug
build
contributor-friendly
core
correctness
deferred
dev
direct3d-headers
docs
driver-os-issue
duplicate
dxcompiler
editor
examples
experiment
feature-idea
feedback
flac
freetype
gamemode
gkurve
glfw
gpu
gpu-dawn
harfbuzz
help welcome
in-progress
infrastructure
invalid
libmach
linux-audio-headers
long-term
mach
mach.gfx
mach.math
mach.physics
mach.testing
model3d
needs-triage
object
opengl-headers
opus
os/linux
os/macos
os/wasm
os/windows
package-manager
priority
proposal
proposal-accepted
question
roadmap
slipped
stability
sysaudio
sysgpu
sysjs
validating-fix
vulkan-zig-generated
wayland-headers
website
wontfix
wrench
www
x11-headers
xcode-frameworks
zig-update
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hexops/mach#221
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Works fine in release - I think we could consider disabling sanitizers when building dawn or spend some time debugging.
I can confirm that building dawn from source with sanitizers disabled (
-fno-sanitize=undefined) fixes the crash.github.com/michal-z/zig-gamedev@29d4f584acFound the issue in dawn. ubsan is complaining about memcpy being called with size 0.
The fix is to check
dynamicOffsetCountbefore callingSetDynamicOffsets.In
src/dawn/native/BindGroupTracker.hline 58:Current code:
Fixed code:
Can you file an issue on crbug.com/dawn ? :)
https://bugs.chromium.org/p/dawn/issues/detail?id=1371
See hexops/dawn#9
@slimsag Can you please merge above PR? This issue affects zig-gamedev project -- all Linux users get a crash in WebGPU imgui renderer. Thanks!
Should be able to merge+release the temporary patch in the next few days (a bit swamped right now due to holiday)
Will also make sure we send a CL upstream to Dawn for this change.
Sounds good, thanks! Do you also plan to fetch the latest code from Dawn and create another
generated-*branch?Yes
Should be fixed now (sorry for closing prematurely!) - fixed in
github.com/hexops/mach@c9ac61c1c4Feel free to file a new issue if you continue to run into issues.