[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in NSPortCoder
From: |
Enrico Sersale |
Subject: |
bug in NSPortCoder |
Date: |
Fri, 11 Apr 2003 17:50:15 +0300 (EEST) |
With the last cvs DO doesn't work anymore.
I'm not able to find exactly where the bug is but it must be in
NSPortCoder.m because changing only this file with a copy taken from the
yesterday cvs all is working again.
I don't know if this can help, but, in the ChangeLog there is:
* Headers/gnustep/base/NSPortCoder.h: Add array for pointers
but NSPortCoder.h is identical to the old one.
This is the output of nsconnection_client in Testing:
Testing data sending
Boolean:
sending 1 got 0 ...ok
sending ptr to 1 got 1 *** ERROR ***
error is ok (due to incorrect encoding by gcc)
UChar:
sending 23 got 70 ...ok
sending ptr to 24 got 24 *** ERROR ***
error is ok (due to incorrect encoding by gcc)
Char:
sending 23 got 70 ...ok
sending ptr to 24 got 24 *** ERROR ***
error is ok (due to incorrect encoding by gcc)
Short:
sending 23 got 70 ...ok
sending ptr to 24 got 71 ...ok
Int:
sending 23 got 70 ...ok
sending ptr to 24 got 71 ...ok
Long:
sending 23 got 70 ...ok
sending ptr to 24 got 71 ...ok
Float:
sending 23.200001 got 70.199997 ...ok
sending ptr to 24.200001 got 71.199997 ...ok
Double:
sending 23.2 got 70.2 ...ok
sending ptr to 24.2 got 71.2 ...ok
sending double 3.141593, float 2.718000
String:
sending (My String 1) got (Ny String 1)
sending ptr to (My String 3) got (Ny String 3)
Small Struct:
sending ptr to c got 3b
Struct:
Segmentation fault (core dumped)
and the output of nsconnection_server
>>This is a message from the client. Starting Tests!<<
(sendBoolean:) got 1, returning 0
(getBoolean:) got 1, returning 0
(sendUChar:) got 23, returning 70
(getUChar:) got 24, returning 71
(sendChar:) got 23, returning 70
(getChar:) got 24, returning 71
(sendShort:) got 23, returning 70
(getShort:) got 24, returning 71
(sendInt:) got 23, returning 70
(getInt:) got 24, returning 71
(sendLong:) got 23, returning 70
(getLong:) got 24, returning 71
(sendFloat:) got 23.200001, returning 70.199997
(getFloat:) got 24.200001, returning 71.199997
(sendDouble:) got 23.2, returning 70.2
(getDouble:) got 24.2, returning 71.2
(sendDouble:andFloat:) got double 3.141593, float 2.718000
(sendString:) got string (My String 1) returning (Ny String 1)
(getString:) got string (My String 3) returning (Ny String 3)
(getSmallStruct:) got 12, returning 59
- bug in NSPortCoder,
Enrico Sersale <=