#15 test_int (__main__.Callbacks) fails on Mac OS X

closed-fixed
nobody
None
5
2005-06-23
2005-03-29
No

Hi,

I have installed ctypes from CVS (as of March, 29,
2005) on a Mac OS X (10.3.8) box with the stock Python
installation (2.3).

Compilation went fine, but then one of the unittests fails:
tiamat> python test_callbacks.py -v
test_byte (__main__.Callbacks) ... ok
test_char (__main__.Callbacks) ... ok
test_char_p (__main__.Callbacks) ... ok
test_double (__main__.Callbacks) ... ok
test_float (__main__.Callbacks) ... ok
test_int (__main__.Callbacks) ... Illegal instruction

Cheers
francesco

Discussion

  • francesco pierfederici

    Logged In: YES
    user_id=232595

    FYI, all other unittest work.

     
  • Thomas Heller

    Thomas Heller - 2005-03-30

    Logged In: YES
    user_id=11105

    I would need help to fix this. Windows is my primary
    development platform, and I'm not really up to speed with
    gdb on OS X.
    For me, the exact test that is failing depends on how I run
    the program - sometimes it crashes in test_char_p, or
    somewhere else.

    If I insert print statements somewhere in the C code, it
    doesn't crash anymore ;-).

    I guess it would help to build libffi with debug info, but
    currently I don't know how to do this.

     
  • Thomas Heller

    Thomas Heller - 2005-06-23

    Logged In: YES
    user_id=11105

    Should be fixed in CVS now, mainly by moving to a newer
    version of libffi (which is in ctypes CVS).

    BTW: If you want to build from CVS, you should check out the
    'branch_1_0' branch for the stable version.

     
  • Thomas Heller

    Thomas Heller - 2005-06-23
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks