7.55 -> 7.56(a) kills PsionFS

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Hansl
Junior Member
Junior Member
Posts: 65
Joined: 2006-02-09, 21:15 UTC

7.55 -> 7.56(a) kills PsionFS

Post by *Hansl »

Help! The update from 7.55 to 7.56(a) kills my PsionFS wfx plugin !

I still use and need that old and seemingly orphaned plugin http://en.totalcmd.pl/download/wfx/ext/Psion_FS . After this update PsionFS now crashes when attempting to transfer files (diroectory listing is still working. This forces me to go back to 7.55.
The error message follows below. Please help!

Thanks, Hans

---------------------------
Total Commander 7.56a
---------------------------
Exception in PsionFS.wfx:FsGetFile!
Access violation at address 00000000. Write of address 00000000
Windows XP SP3 5.1 (Build 2600)

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Windows exception: C0000005
Stack trace:
00000000
6590AE 659BA1 >647726 5335D3 5588BE 549962
445A9F 443011 444F62 422CC0 444523 422CC0
42838C 428424 6C53C9
Raw:
5C0057 444523 422CC0 645479 6590AE 659BA1
422CC0 444491 6C30D6 461E00 4452DB 443011
445231 4348C2 4445E5 645310 41C865 41C879
4183F8 418410 402E36 443011 445231 42499C
4445E5 444F62 444F85 422CC0 444523 422CC0
6C2174 647726 6C2174 4E7443 416071 4E5337
6C2174 6893EB 5B1A60 6C1D4A 5B1B6C 422CC0
41DB27 41DB35 643076 6430AD 5335D3 67D6D3
416492 4164DA 68861A 688637 4013DD 401502
401DE5 401E4D 4023B3 4023DB 6C1D4A 688BE4

Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Ja Nein
---------------------------
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3291
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

Hoecker sie sind raus!
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Maybe plugin's author may fix this bug?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Exception in PsionFS.wfx:FsGetFile!
Access violation at address 00000000. Write of address 00000000
Strange, this error means that the plugin tried to call a function which it couldn't find (address 0). I guess that the plugin tries to load the dll in an insecure way. Try putting both the plugin and its dlls in the same directory as TC.

If this doesn't help, you can turn off the secure loading of dlls, but I really cannot recommend this - only if it doesn't work in any other way (try my suggestion first).
Author of Total Commander
https://www.ghisler.com
Hansl
Junior Member
Junior Member
Posts: 65
Joined: 2006-02-09, 21:15 UTC

Post by *Hansl »

Hmm... this plugin brought no dlls, just its own wfx. Copying this and all referenced system dlls to TC's directory didn't help.

This plugin uses a temporary directory c:\Programme\totalcmd\plugins\wfx\PsionFS\temp\ I needed to create to get it running (see http://www.ghisler.ch/board/viewtopic.php?t=20433 last post ).

Now, when I acknowledge the crash message, continue execution (of TC) and try again viewing a file, it doesn't crash again but simply says "Fehler beim Herunterladen E:\Temp\Temp\_tc\Test.txt" (E:\Temp being my %tmp%) while the file was successfully downloaded to c:\Programme\totalcmd\plugins\wfx\PsionFS\temp\Text.txt , as before with 7.55! See screenshot http://www.pictureshack.net/images/3992PsionFS_Bug.png

Has there maybe been any change from 7.55 in TC's handling of its temp directory?
Hansl
Junior Member
Junior Member
Posts: 65
Joined: 2006-02-09, 21:15 UTC

Post by *Hansl »

Unfortunately, the plugin's author Max Tomin is not reachable anymore, his email address invalid.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I still think it's a DLL loading problem. You can turn off the new secure dll loading like this:

In file wincmd.ini under [Configuration] add line
DllLoad=1
Author of Total Commander
https://www.ghisler.com
Hansl
Junior Member
Junior Member
Posts: 65
Joined: 2006-02-09, 21:15 UTC

Post by *Hansl »

In file wincmd.ini under [Configuration] add line DllLoad=1
This does it - old PsionFS works again. What might be the risk / what are the benefits of the new secure dll loading? Introduced in 7.56?

---

Without that, replacing the directory C:\Programme\totalcmd\plugins\wfx\PsionFS\temp\ with a NTFS junction to E:\Temp\Temp\_tc\ (E:\Temp\Temp being my %tmp%) and viewing a Psion file still brings up the error "Fehler beim Herunterladen E:\Temp\Temp\_tc\Test.txt" but after acknowledging it the viewer now starts up fine. Copying files still does not work.

Thank you! Hans
Hansl
Junior Member
Junior Member
Posts: 65
Joined: 2006-02-09, 21:15 UTC

Post by *Hansl »

Hansl wrote:What might be the risk / what are the benefits of the new secure dll loading? Introduced in 7.56?
Well, I found now some enlightening in the last post (from Karlchen at 2010-12-28 ) in http://ghisler.ch/board/viewtopic.php?t=28139 .

Just for curiosity, inside PsionFS.wfx I saw references only to ole32.dll kernel32.dll advapi32.dll user32.dll oleaut32.dll (all Windows standards in \system32) but no pathname. So I'm unsure what might be the cwd for PsionFS in that moment and why the author should code so... seems sloppy.

Thank you! Hans
Post Reply