This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with execution of binary file


On to., 2011-11-03 at 08:21 -0500, Eliot Moss wrote:
> Someone more expert than I am may be able to say more
> (or correct me if I'm wrong), but it appears that bash
> opened the file, read 80 bytes, and didn't like what it
> saw. So: What does "file FLEXPART_GFORTRAN.exe" say
> about the file? Or maybe you could give us the first
> few lines from "od -b FLEXPART_GFORTRAN.exe". It's
> starting to look as if it is not properly built. Or,
> maybe it got messed with in the process of transfer
> from the other system.
> 
> Regards -- Eliot Moss

As corinna pointed out, the file is barely red before it's closed. The
file command gives "PE32 executable (console) Intel 80386, for MS
Windows"

Here is a few lines of "od -b" output from both the working and bad
binary, respectively.


"Good binary"

0000000 115 132 220 000 003 000 000 000 004 000 000 000 377 377 000 000
0000020 270 000 000 000 000 000 000 000 100 000 000 000 000 000 000 000
0000040 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
0000060 000 000 000 000 000 000 000 000 000 000 000 000 200 000 000 000
0000100 016 037 272 016 000 264 011 315 041 270 001 114 315 041 124 150
0000120 151 163 040 160 162 157 147 162 141 155 040 143 141 156 156 157
0000140 164 040 142 145 040 162 165 156 040 151 156 040 104 117 123 040
0000160 155 157 144 145 056 015 015 012 044 000 000 000 000 000 000 000
0000200 120 105 000 000 114 001 017 000 032 067 261 116 000 154 165 000
0000220 252 072 000 000 340 000 047 001 013 001 002 026 000 354 015 000
0000240 000 220 022 000 000 322 127 073 000 020 000 000 000 020 000 000
0000260 000 000 016 000 000 000 100 000 000 020 000 000 000 002 000 000
0000300 004 000 000 000 001 000 000 000 004 000 000 000 000 000 000 000
0000320 000 300 315 073 000 004 000 000 041 217 173 000 003 000 000 200
0000340 000 000 040 000 000 020 000 000 000 000 020 000 000 020 000 000
0000360 000 000 000 000 020 000 000 000 000 000 000 000 000 000 000 000
0000400 000 220 152 073 014 016 000 000 000 000 000 000 000 000 000 000
0000420 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
*
0000520 000 000 000 000 000 000 000 000 174 222 152 073 030 002 000 000
0000540 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
0000560 000 000 000 000 000 000 000 000 056 164 145 170 164 000 000 000
0000600 010 352 015 000 000 020 000 000 000 354 015 000 000 004 000 000
0000620 000 000 000 000 000 000 000 000 000 000 000 000 140 000 120 140


"Bad binary"

0000000 115 132 220 000 003 000 000 000 004 000 000 000 377 377 000 000
0000020 270 000 000 000 000 000 000 000 100 000 000 000 000 000 000 000
0000040 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
0000060 000 000 000 000 000 000 000 000 000 000 000 000 200 000 000 000
0000100 016 037 272 016 000 264 011 315 041 270 001 114 315 041 124 150
0000120 151 163 040 160 162 157 147 162 141 155 040 143 141 156 156 157
0000140 164 040 142 145 040 162 165 156 040 151 156 040 104 117 123 040
0000160 155 157 144 145 056 015 015 012 044 000 000 000 000 000 000 000
0000200 120 105 000 000 114 001 017 000 144 115 261 116 000 130 165 000
0000220 252 072 000 000 340 000 047 001 013 001 002 026 000 322 015 000
0000240 000 166 022 000 000 354 273 311 000 020 000 000 000 020 000 000
0000260 000 360 015 000 000 000 100 000 000 020 000 000 000 002 000 000
0000300 004 000 000 000 001 000 000 000 004 000 000 000 000 000 000 000
0000320 000 320 061 312 000 004 000 000 126 346 172 000 003 000 000 200
0000340 000 000 040 000 000 020 000 000 000 000 020 000 000 020 000 000
0000360 000 000 000 000 020 000 000 000 000 000 000 000 000 000 000 000
0000400 000 220 316 311 014 016 000 000 000 000 000 000 000 000 000 000
0000420 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
*
0000520 000 000 000 000 000 000 000 000 174 222 316 311 030 002 000 000
0000540 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
0000560 000 000 000 000 000 000 000 000 056 164 145 170 164 000 000 000
0000600 270 320 015 000 000 020 000 000 000 322 015 000 000 004 000 000
0000620 000 000 000 000 000 000 000 000 000 000 000 000 140 000 120 140
0000640 056 144 141 164 141 000 000 000 224 220 004 000 000 360 015 000

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]