Hi! I try to create socket, code compiles without problems, but when i run program, i receive "Segmentation fault".
Code is following: int result = socket(AF_INET, SOCK_STREAM, 0); int result = socket(AF_INET, SOCK_STREAM, 6); int result = socket(AF_INET, SOCK_DGRAM, 17); All of it gives segmentation fault. Maybe, i need to call some initialization function like in Windows Sockets? Maybe i need to link my program with additinal sockets library? Now, i link it with "-lpthread" only, and clang gives no errors/warnings during compiling/linking. It's OpenBSD 6.3 amd64 - stable from iso, i did not update nothing. Call to bind(2) does not give segmentation fault.
dmesg.boot
Description: Binary data
dmesg (1).boot
Description: Binary data
