levW has asked for the wisdom of the Perl Monks concerning the following question:

get "format error: bad signature" when using an .exe created by a "pp".

Other .exe files work well - do not generate any errors.Just this .exe.

Using Srawbery 5.30.

Will appreciated any advise.

Thanks

  • Comment on get "format error: bad signature" when using an .exe created by a "pp"

Replies are listed 'Best First'.
Re: get "format error: bad signature" when using an .exe created by a "pp"
by LanX (Saint) on Mar 15, 2021 at 15:02 UTC
Re: get "format error: bad signature" when using an .exe created by a "pp"
by swl (Prior) on Mar 15, 2021 at 21:13 UTC

    Following up on the suggestion by LanX in 11129674 to search for the error, this old bug report comes up as looking relevant: https://rt.cpan.org/Public/Bug/Display.html?id=4633.

    What versions of PAR::Packer and Archive::Zip are you using?

    Also, are you able to provide code to replicate the issue? For example: What code are you packing? What is the pp command you are running? Are you packing files with special characters in the name?

    And can you open the zip file using some other utility such as 7zip?

      Thanks for the idea...resolved by force installing the latest Archive::Zip !

Re: get "format error: bad signature" when using an .exe created by a "pp"
by Anonymous Monk on Mar 15, 2021 at 09:21 UTC
    What is the complete message? Version info?

      format error: bad signature: 0x48a5e326 at offset 7509226 in file D:\DOcuments\myscripts\colorserver_upd\colorserver_upd.exe at -e line 595.

      format error: bad signature: 0x9488813b at offset 7509461 in file D:\DOcuments\myscripts\colorserver_upd\colorserver_upd.exe at -e line 595.

      format error: bad signature: 0x897956fa at offset 7510312 in file D:\DOcuments\myscripts\colorserver_upd\colorserver_upd.exe at -e line 595.

      format error: bad signature: 0xd0e1b387 at offset 7512810 in file D:\DOcuments\myscripts\colorserver_upd\colorserver_upd.exe at -e line 595.

      format error: bad signature: 0xe84ac642 at offset 7513461 in file D:\DOcuments\myscripts\colorserver_upd\colorserver_upd.exe at -e line 595.

      ====================================================

      This is perl 5, version 30, subversion 0 (v5.30.0) built for MSWin32-x86-multi-thread-64int

        Par pp versions?