1
Réseau / Segfault TcpSocket.receive (mac)
« le: Novembre 23, 2015, 06:03:22 pm »
Bonsoir !
Je rencontre un problème de segfault très étrange sous mac avec l méthode receive de TcpSocket.
Elle segfault :
lldb indique :
Le même code fonctionne bien sous linux.
Une idée ?
Merci beaucoup
Je rencontre un problème de segfault très étrange sous mac avec l méthode receive de TcpSocket.
Elle segfault :
char data[256];
size_t received;
m_socket.receive(data, 256, received)
size_t received;
m_socket.receive(data, 256, received)
lldb indique :
Process 1479 stopped
* thread #2: tid = 0x750c, 0x000000010010e974 libsfml-network.2.3.dylib`sf::Socket::getHandle() const + 4, stop reason = EXC_BAD_ACCESS (code=1, address=0xc)
frame #0: 0x000000010010e974 libsfml-network.2.3.dylib`sf::Socket::getHandle() const + 4
libsfml-network.2.3.dylib`sf::Socket::getHandle:
-> 0x10010e974 <+4>: movl 0xc(%rdi), %eax
0x10010e977 <+7>: popq %rbp
0x10010e978 <+8>: retq
0x10010e979 <+9>: nopl (%rax)
* thread #2: tid = 0x750c, 0x000000010010e974 libsfml-network.2.3.dylib`sf::Socket::getHandle() const + 4, stop reason = EXC_BAD_ACCESS (code=1, address=0xc)
frame #0: 0x000000010010e974 libsfml-network.2.3.dylib`sf::Socket::getHandle() const + 4
libsfml-network.2.3.dylib`sf::Socket::getHandle:
-> 0x10010e974 <+4>: movl 0xc(%rdi), %eax
0x10010e977 <+7>: popq %rbp
0x10010e978 <+8>: retq
0x10010e979 <+9>: nopl (%rax)
Le même code fonctionne bien sous linux.
Une idée ?
Merci beaucoup