See https://forums.wxwidgets.org/viewtopic.php?p=229882#p229882
This is a simplified version of the patch from the topic above. @Brickmaster1 does this work for you?
https://github.com/wxWidgets/wxWidgets/pull/25912
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Thanks for integrating the patch! I meant to get around to doing this myself, but I kind of forgot about it!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I am booting my other computer with Windows to test it right now.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Sorry, I didn't read the entire forum thread, but is there some explanation for this? I.e. does it work around a bug in our code correctly flagged by UBSAN (in which case I'd, of course, prefer to fix it) or is it really a bug in UBSAN (in which case I guess we don't have much choice, but it would be worth reporting it to UBSAN then)?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I'm honestly not too sure which side causes the problem, I just knew that my patch was able to avoid it by disabling the UBSAN for the instruction.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I really don't feel well about disabling UBSAN for this function, this shouldn't be necessary if it's compiled correctly. Rereading the forum thread, it looks like the real error is
thread 349144 panic: member access within null pointer of type 'TTTOOLINFOW' (aka 'tagTOOLINFOW')
at the assignment to cbSize in wxToolInfo ctor which seems to be impossible.
It looks like a problem with zig UBSAN implementation, if you can reproduce the problem with a simple struct inheriting from TOOLINFO (and I think you should be able to), you should submit this as bug to zig team and hopefully they can fix it, but it seems wrong to work around it in wx code.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Maarten, unless you'd really like to merge this, I'd rather leave this out for the reasons explained above.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #25912.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
No problem, I'll close this PR then.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()