pabs
1st March 2007 08:43 UTC
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:
http://bugs.debian.org/412285
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
kichik
1st March 2007 20:21 UTC
Haven't heard of anything like this before. I can debug a bit if you attach an example.
pabs
2nd March 2007 03:56 UTC
ignore this thread
Turns out it was a custom plugin not being compiled with the right alignment (-Wl,--file-alignment,512 fixed it):
http://bugs.debian.org/cgi-bin/bugre...5;msg=34;att=0
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
5th March 2007 14:56 UTC
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
7th March 2007 07:52 UTC
Why are the built-in plugins compiled with the file alignment flag then?
Anyway, it did fix the crash on Win98 and WinNT.
kichik
7th March 2007 18:57 UTC
The file alignment size setting saves on file sizes. If it fixes the problem, it's probably only by masking the real problem.