Become a leader in the IoT community!
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
I’m working on a network server application in assembly language so I can understand low level networking concepts.
So I’ve implemented a socket server using assembly language system calls, but I’m encountering a segmentation fault during execution.
I have complied the binary on an `Intel Core i7 12700K processor` running `Ubuntu 22.04` and the `NASM assembler` .
I wander what is causing the **segmentation fault** ?
$ nasm -f elf32 socket.asm ; ld -m elf_i386 -o socket socket.o
$ ./socket
Segmentation fault (core dumped)
CONTRIBUTE TO THIS THREAD