Skip to content
⌘ NSIS Forum Archive

weird NSISdl crash on Win98 using newish mingw

6 posts

pabs#

weird NSISdl crash on Win98 using newish mingw

When building nsis with newish mingw packages, NSISdl crashes on Win98 before any code in NSISdl::download is called (verified by inserting MessageBox calls).

Just wondering if this has come up before? If not, gonna have to do a binary search thru the mingw/gcc svn repository to find the offending version, which does not sound like fun.

The script is the debian win32-loader (aka goodbye-microsof.com).

This is the debian bug:



Anything newer than these versions is borked:

mingw32-binutils 2.16.91-20050827.1-2
mingw32-runtime 3.8-1
mingw32 3.4.4.20050522.1-2
pabs#
ignore this thread

Turns out it was a custom plugin not being compiled with the right alignment (-Wl,--file-alignment,512 fixed it):



This does remind me that an example plugin needs to be installed, along with exdll.h and an example Makefile or a README or something so people use the correct flags when building their plugins.
kichik#
I don't see how file alignment can cause this. There are no correct flags for plug-ins. As long as it's a DLL with an exported function, just as in exdll.c, it's good to go.
pabs#
Why are the built-in plugins compiled with the file alignment flag then?

Anyway, it did fix the crash on Win98 and WinNT.
kichik#
The file alignment size setting saves on file sizes. If it fixes the problem, it's probably only by masking the real problem.