Problem with frozen app: compatibility between Unixware and SCO Unix

Mike Kent mkent at webmd.net
Tue Dec 30 13:10:29 EST 2003


Upon further intense investigation, here's what I now know.

os.stat() is the culprit.  A very simple test program frozen under
Unixware 7.1 which does more more than stat '/tmp' will return proper
results under Unixware, but return totally bogus results when that
frozen test program is run on an OpenServer 5 machine.  Bogus in the
sense that the tuple of values returned by os.stat() contain values
that are so far off, it is apparent that the structure returned by the
OS's 'stat' system call is not being unpacked properly.

The docs for the Unixware UDK state that the 'stat' system call is
fully compatible across the two platforms.  This was verified by
writing a short 'C' language program, compiling it under Unixware, and
running it on both Unixware and OpenServer.  In both cases, it
returned proper results.

The problem appears to be something in Python's wrapper around 'stat'
in posixmodule.c

Any ideas on how I can proceed?




More information about the Python-list mailing list