
the actual problem is that calling a varargs function results in corrupting the caller's stack so in this case, it's not callback and indirect call stuff, it's that i need to fix the varargs passthroughs in mingw and/or ensure gcc is doing this in the same style as windows. one of the few places where calling conventions is more complicated _between_ modules, as windows was always supposed to support dlls and exes written in separate environments.