WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > IMPORTANT: Bug with CopyFiles in latest CVS
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
psyke
Member

Registered: Mar 2003
From:

Exclamation IMPORTANT: Bug with CopyFiles in latest CVS

Hello, I am quite confident that I have found some kind of problem with CopyFiles in the latest development snapshot.

The bug can be experienced with Examples\bigtest.nsi. Essentially the installer crashes when it hits the CopyFiles instruction on line 192.

To reproduce bug:
1. get latest NSIS version from sourceforge
2. compile ${NSISDIR}\Examples\bigtest.ini
3. run bigtest.exe (you can disable all sections except for 'Test CopyFiles' since that's what we're interested in )
4. CRASH!!

This is happening on XP Pro no service packs.

To verify that it is the CopyFiles instruction, I commented out line 192 and went through steps 2 - 4. No crash.

I hope this can be resolved without too much difficulty, I don't have a copy of the April 14th snapshot handy so I can't go ahead with my installer unless CopyFiles works.

Oh, I'm attaching a screenshot that is in chronological order from top to bottom showing exactly what happens.

Cheers.

Salaam/Peace

Attachment: copyfiles_crash.gif
This has been downloaded 599 time(s).

Quick Link | Report this post to a moderator | IP: Logged

psyke is offline Old Post 04-16-2003 05:18 PM
Click Here to See the Profile for psyke Click here to Send psyke a Private Message Find more posts by psyke Add psyke to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Israel

I have uploaded a recompiled version of makensis.exe. It solves the problem. Last time we got rid of this problem by simply updating the Platform SDK, and as far as I know Joost (who uploaded the last makensis.exe) has the latest Platform SDK. If he really did have it then I intend to go a little deeper this time and find out the cause for this beyond the Platform SDK.

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Quick Link | Report this post to a moderator | IP: Logged

kichik is offline Old Post 04-16-2003 06:51 PM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
psyke
Member

Registered: Mar 2003
From:

Thanks Kichik.

I'll head over and grab that new makenisis then. Hope it was just a platform SDK issue so you don't have to spend any more time on this.

Salaam/Peace.

Quick Link | Report this post to a moderator | IP: Logged

psyke is offline Old Post 04-16-2003 06:56 PM
Click Here to See the Profile for psyke Click here to Send psyke a Private Message Find more posts by psyke Add psyke to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Israel

From a first glimpse over this it seems something with the import table is seriously defected with whatever is causing this. The numbers are off by a set number for every imported DLL. As I have focused more on the resource section of the PE format when I learned about it (for the full color icons, etc.) I don't yet fully understand the import table structure so I'll have to go learn some more

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Quick Link | Report this post to a moderator | IP: Logged

kichik is offline Old Post 04-16-2003 07:06 PM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Israel

He forgot to install the latest Platform SDK on his new computer. Phew!

From what I have read up until now I have discovered that the hint number that helps Windows search for the export was wrong for almost all of the imported functions. I don't understand why it disrupted SHFileOperation and nothing else, I guess we'll never know... A corporate secret or something like that

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Quick Link | Report this post to a moderator | IP: Logged

kichik is offline Old Post 04-16-2003 07:45 PM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
psyke
Member

Registered: Mar 2003
From:

lol - i guess so, they've got plenty of secrets.

I'm glad it was just a matter of needing the latest PSDK.

Thanks for your help.

Salaam/Peace.

Quick Link | Report this post to a moderator | IP: Logged

psyke is offline Old Post 04-16-2003 08:13 PM
Click Here to See the Profile for psyke Click here to Send psyke a Private Message Find more posts by psyke Add psyke to your buddy list Edit/Delete Message Reply w/Quote
Sunjammer
Major Dude

Registered: Jun 2002
From: Swindon, UK

It may be that all of the other functions were being looked up by name and for some reason SHFileOperation was being looked up by ordinal which would from what you've said be wrong.

Quick Link | Report this post to a moderator | IP: Logged

Sunjammer is offline Old Post 04-17-2003 08:01 AM
Click Here to See the Profile for Sunjammer Click here to Send Sunjammer a Private Message Click Here to Email Sunjammer Visit Sunjammer's homepage! Find more posts by Sunjammer Add Sunjammer to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Israel

Nope, it was looked by name too

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Quick Link | Report this post to a moderator | IP: Logged

kichik is offline Old Post 04-17-2003 10:17 AM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 09:40 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > IMPORTANT: Bug with CopyFiles in latest CVS
Show Printable Version
 | 
Email this Page
 | 
Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is off
vB code is ON
Smilies are ON
[IMG] code is ON