On Wednesday 16 March 2005 14:41, Tiago Jorge wrote:
01d00244 add $0xc,%esp 01d00247 push $0x0 01d00249 push $0x2 01d0024b push $0x2 01d0024d call 0x1d01300 <socket> 01d00252 add $0x10,%esp 01d00255 test %eax,%eax 01d00257 mov %eax,(%ebx) <--- ERROR HERE!!!!!! 01d00259 js 0x1d00344 /home/tiago/l4/pkg/failuredetector/server/src/FailureDetector.cc:38
That means that the return value of the socket() call is stored somewhere (in sock_fd). What ist sock_fd -- an object variable, a local variable or a global variable?
thats true. sock_fd is an object variable. the definition of the class is the following:
Where is the related object initialized? Add a printf()-statement to the constructor of FailureDetector and see if the output of that statement occurs _before_ the error.
Frank