New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ioctl has problems on 64 bit machines #41506
Comments
fcntly.ioctl takes an int as the second argument. If Traceback (most recent call last):
File "CommSecure-CVS/Operations/checkSpace.py", line
73, in ?
main(sys.argv[1:])
File "CommSecure-CVS/Operations/checkSpace.py", line
25, in main
os.path.walk(file, doDirectory, total)
File "/usr/lib64/python2.3/posixpath.py", line 282,
in walk
func(arg, top, names)
File "CommSecure-CVS/Operations/checkSpace.py", line
61, in doDirectory
flags = fcntl.ioctl(fd, EXT3_IOC_GETFLAGS, " ")
OverflowError: signed integer is greater than maximum My _guess_ here is that the code is checking against 32 Platform is Linux, Fedora Core 3 on AMD Opteron. |
Logged In: YES The problem seems to be that Python integers are "long int," My hackish workaround is to coerce the ioctl number to a op = struct.unpack('i', struct.pack('I', op))[0] Once it gets into the C code, the signed quantity is then Probably, the correct course of action here is to figure out |
Logged In: YES Should be fixed wrt patch 1231069. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: