Laurent Vivier
2007-06-10 13:09:20 UTC
Hi,
I'm trying to debug my application syncefs.
the problem is as following :
in my application, sizeof(CE_FIND_DATA) = 552 but in librapi2, in
_CeFindAllFiles it seems to be 560 :
src/rapi/file_management.c
71: CE_FIND_DATA* array = calloc(count, sizeof
(CE_FIND_DATA));
0xb7f78c31 <_CeFindAllFiles+200>: mov 0xffffffec(%ebp),%eax
0xb7f78c34 <_CeFindAllFiles+203>: movl $0x230,0x4(%esp)
0xb7f78c3c <_CeFindAllFiles+211>: mov %eax,(%esp)
0xb7f78c3f <_CeFindAllFiles+214>: call 0xb7f71398 <***@plt>
If I compile librapi2 and pls on my system all is working fine, if I
use librapi2 (0.9.3) from Debian etch and I compile pls on my system,
when I run pls I have same issue.
An idea why size of is different between librapi2 and my application ?
I use gcc 4.1 but I have same behaviour with gcc-3.4.
Regards,
Laurent
---------------------- Laurent Vivier ----------------------
"Imagination is more important than knowledge."
I'm trying to debug my application syncefs.
the problem is as following :
in my application, sizeof(CE_FIND_DATA) = 552 but in librapi2, in
_CeFindAllFiles it seems to be 560 :
src/rapi/file_management.c
71: CE_FIND_DATA* array = calloc(count, sizeof
(CE_FIND_DATA));
0xb7f78c31 <_CeFindAllFiles+200>: mov 0xffffffec(%ebp),%eax
0xb7f78c34 <_CeFindAllFiles+203>: movl $0x230,0x4(%esp)
0xb7f78c3c <_CeFindAllFiles+211>: mov %eax,(%esp)
0xb7f78c3f <_CeFindAllFiles+214>: call 0xb7f71398 <***@plt>
If I compile librapi2 and pls on my system all is working fine, if I
use librapi2 (0.9.3) from Debian etch and I compile pls on my system,
when I run pls I have same issue.
An idea why size of is different between librapi2 and my application ?
I use gcc 4.1 but I have same behaviour with gcc-3.4.
Regards,
Laurent
---------------------- Laurent Vivier ----------------------
"Imagination is more important than knowledge."