Execute 32bit ELF on a 64bit ubuntu machine, getting segmentation fault

0

I am trying to run a 32bit ELF on a 64bit ubuntu(16.04) machine, but i am getting segmentation fault.

But same executable is running on different ubuntu(16.04) machine. It is just a normal helloWorld c++ program, cross-compiled to 32bit ELF using -m32 option.

warning: /home/zadmin/Aswin/Chromium_content_shell/src/tools/gdb/gdbinit: No such file or directory
Reading symbols from helloWorld322...done.
  (gdb) r
Starting program: /home/zadmin/Aswin/helloWorld322

Program received signal SIGSEGV, Segmentation fault.
0x00000005 in ?? ()
(gdb) bt
#0  0x00000005 in ?? ()
#1  0xf7cc0d4c in ?? () from /lib/i386-linux-gnu/libc.so.6
#2  0xf7ba7663 in ?? () from /lib/i386-linux-gnu/libc.so.6
#3  0xf7fe8421 in ?? () from /lib/ld-linux.so.2
    #4  0xf7fe858e in ?? () from /lib/ld-linux.so.2
    #5  0xf7fd9a5f in ?? () from /lib/ld-linux.so.2

c++
linux
cross-compiling
32-bit
asked on Stack Overflow Aug 14, 2020 by user3890334 • edited Aug 14, 2020 by d4rk4ng31

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0