https://bugs.winehq.org/show_bug.cgi?id=55818
--- Comment #28 from Tom M tmwine@pertho.net --- I've done more testing..
The memory leak occurs in 6.15, 6.10, (6.0-6.9 I could not compile due to an error in math.h. Undefined reference to `sincos'.
So I backtracked even further, memory leak occurs in 5.15, and 5.10. I attempted to compile 5.4 and then 5.0 but I run into linker problems I'm not sure how to fix.
It got me thinking.. what if it's the vulkan loaders? Is it possible to run WINE without them? Use whatever the original was? (I think it's OpenGL)
The common thread across the compilation I saw was 'vkd3d' and Vulkan loaders. My vague memory of when I was patching WINE to run DAOC back 5 or 6 years ago there were no vulkan loaders and the game ran for hours without memory leaks. I wonder if it could possibly be that?
How would I go about not using vulkan loaders as a test?
The error I get when compiling WINE 5.0 (--without-ldap in ./configure) is:
./../tools/winegcc/winegcc -o crypt32.dll.so --wine-objdir ../.. -fno-PIC -fasynchronous-unwind-tables -shared \ crypt32.spec base64.o cert.o chain.o collectionstore.o context.o crl.o ctl.o decode.o encode.o \ filestore.o main.o message.o msg.o object.o oid.o pfx.o proplist.o protectdata.o provstore.o \ regstore.o rootstore.o serialize.o sip.o store.o str.o crypt32.res -lcryptnet -luser32 -ladvapi32 \ -lbcrypt ../../libs/port/libwine_port.a -Wl,-delayload,cryptnet.dll -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -lresolv -lm /usr/bin/ld: chain.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: collectionstore.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: context.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: crl.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: ctl.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: decode.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: encode.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: filestore.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: main.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: msg.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: object.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: oid.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: proplist.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: provstore.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: regstore.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: rootstore.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: serialize.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: sip.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: store.o:(.bss+0x18): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here /usr/bin/ld: str.o:(.bss+0x0): multiple definition of `hInstance'; cert.o:(.bss+0x0): first defined here winebuild: /usr/bin/ld failed with status 1 winegcc: ../../tools/winebuild/winebuild failed