I.e. this can be closed.
OK it does fix the issue. I tested it! I report this to the Fedora bug, thank you.
Right you can add patch per comment. Well here's v2.
One remark. Now that I re-tested my patch I had to: -mbsync_CFLAGS = -fno-lto +CFLAGS += -fno-lto Otherwise: drv_proxy.c:458:10: fatal error: drv_proxy.inc: No such file or directory 458 | #include "drv_proxy.inc" | ^~~~~~~~~~~~~~~ I don't understand this causality so not updating patch yet.
For more information, see the discussion at https://bugzilla.redhat.com/show_bug.cgi?id=2302132 When LTO is on boxes array is literally truncated to a single element array. I do not think mbsync will have any particular benefit from LTO so it would really be pragmatic decision to plain disable it also to prevent any future issues happening.
For more information, see the discussion at https://bugzilla.redhat.com/show_bug.cgi?id=2302132 When LTO is on boxes array is literally truncated to a single element array.
For more information, see the discussion at https://bugzilla.redhat.com/show_bug.cgi?id=2302132
Fix Fedora 40 crash caused by LTO