[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

strange behavior of executables



Hello All:

I have been coming across a strange behavior with a compiled FORTRAN
program.

I use g77 to compile it (version doesn't matter) and when I try to run the
executable on some machines it works fine.  On other machines, it stops
with a segfault immediately.  The two machines are both running the
woody/testing distribution and I can't see the difference between them.

I use the file and the ldd commands on the executables on both the
machines and I get the following:

working machine:

$ file feff828_g77O3
feff828_g77O3: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), not stripped

$ ldd feff828_g77O3
	libm.so.6 => /lib/libm.so.6 (0x40022000)
	libc.so.6 => /lib/libc.so.6 (0x40044000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


non-working machine:

$ file feff828_g77O3
feff828_g77O3: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), not stripped

$ ldd feff828_g77O3
ldd: /lib/ld-linux.so.2 exited with unknown exit code (139)


This is the same executable file on both machines but the problem occurs
even if I compile it directly on the non-working machine.  The compilation
works but the executable does not.

Any ideas?

Carlo


-- 
Carlo U. Segre -- Professor of Physics
Illinois Institute of Technology
Voice: 312.567.3498            Fax: 312.567.3494
Carlo.Segre@iit.edu    http://www.iit.edu/~segre




Reply to: