Obscure bad file descriptor error on FreeBSD
Pekka Riikonen
priikone at iki.fi
Thu Jun 7 11:13:36 CEST 2007
Isn't the following the cause of the problem:
: 37529 s706 RET open 9
fd = open();
fd == 9
: 37529 s706 CALL fchdir(0x3)
: 37529 s706 RET fchdir 0
ret = fchdir(3);
ret == 0;
: 37529 s706 CALL open(0x804e5c6,0x104,0)
: 37529 s706 NAMI "server_key"
: 37529 s706 RET open -1 errno 2 No such file or directory
fd = open("server_key")
fd == -1
: 37529 s706 CALL fchdir(0x9)
: 37529 s706 RET fchdir 0
ret = fchdir(9);
ret == 0;
: 37529 s706 CALL close(0)
: 37529 s706 RET close 0
ret == close(0);
^^^^^^^^^^^^^^
ret == 0
shouldn't this read close(9) or close(3). I can't see you opening fd 0
anywhere but I see you closing it.
: 37529 s706 CALL write(0x2,0x80536c0,0x42)
: 37529 s706 GIO fd 2 wrote 66 bytes
: "warn: unknown server key 9D48B5CA79D3CFE4A99974E97BD1124C069D9650
: "
Pekka
________________________________________________________________________
Pekka Riikonen priikone at silcnet.org
Secure Internet Live Conferencing (SILC) http://silcnet.org/
More information about the silc-devel
mailing list