This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author marcin.bachry
Recipients marcin.bachry, nikratio, theller
Date 2010-01-23.16:58:59
SpamBayes Score 3.21335e-07
Marked as misclassified No
Message-id <1264265941.92.0.826742797011.issue7760@psf.upfronthosting.co.za>
In-reply-to
Content
In the libc case you shouldn't give absolute path in CDLL: CDLL('libc.so.6') is better. You use "/lib/libc.so.6" path, but Python (and ctypes.so) actually uses something like "/lib/tls/i686/cmov/libc.so.6" - these are two separate libraries with separate "errno" variables, mapped to different memory regions. Your call to getxattr modifies errno in the former library, but ctypes get_errno() fetches value from the latter library.

If I fix CDLL() call, the test works ok for me.
History
Date User Action Args
2010-01-23 16:59:02marcin.bachrysetrecipients: + marcin.bachry, theller, nikratio
2010-01-23 16:59:01marcin.bachrysetmessageid: <1264265941.92.0.826742797011.issue7760@psf.upfronthosting.co.za>
2010-01-23 16:59:00marcin.bachrylinkissue7760 messages
2010-01-23 16:58:59marcin.bachrycreate