I tried to call exit() by int 0x80 in the following assembly program:
.section .text
.globl _start
_start:
xorq %rdi, %rdi
xorq %rax, %rax
movb $0x3c, %al
int $0x80
but segmentation fault (core dumped) occured. Then I debugged it by gdb and got that the program doesn't stop after calling the exit() and execute the next instruction(which is 00000000). I wonder how to deal with it.