69,371
社区成员
发帖
与我相关
我的任务
分享
Disassembly of section .text:
00000000004004f0 <_start>:
4004f0: 31 ed xor %ebp,%ebp
4004f2: 49 89 d1 mov %rdx,%r9
4004f5: 5e pop %rsi
4004f6: 48 89 e2 mov %rsp,%rdx
4004f9: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
4004fd: 50 push %rax
4004fe: 54 push %rsp
4004ff: 49 c7 c0 50 07 40 00 mov $0x400750,%r8
400506: 48 c7 c1 60 07 40 00 mov $0x400760,%rcx
40050d: 48 c7 c7 d9 06 40 00 mov $0x4006d9,%rdi
400514: e8 8f ff ff ff callq 4004a8 <__libc_start_main@plt>
400519: f4 hlt
40051a: 90 nop
40051b: 90 nop
[root@localhost stack]# gcc -o fun fun.c
[root@localhost stack]# ./fun
stack 0: ./fun [0x40063b]
stack 1: /lib64/libc.so.6 [0x38e3c300a0]
stack 2: ./fun [0x4006b5]
stack 3: ./fun [0x4006d7]
stack 4: ./fun [0x40073f]
stack 5: /lib64/libc.so.6(__libc_start_main+0xf4) [0x38e3c1d8a4]
stack 6: ./fun [0x400519]
Segmentation fault
应该是
call 8048344 <_Z3funi>
函数里的问题
你可以检查下这个函数,或则把它去了看看