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
fcntl() not working on sparc/linux (python 2.2.3) #39396
Comments
In sparc, fcntl.fcntl() is not working properly under import fcntl, sys
fcntl.fcntl(sys.stdin.fileno(), fcntl.F_SETFL,
os.O_NONBLOCK) will reveal that on sparc there's no fcntl() syscall I have not tested yet with Python 2.3 but I'll let you Thanks, |
Logged In: YES I cannot reproduce this. My binary of 2.2.1 does read(3, "import fcntl, sys, os\nfcntl.fcnt"..., 8192) = 84 Can you attach your strace output? Can you also try truss? |
Logged In: YES I'm sorry I didn't specify earlier, this is a box running Linux Linux Kernel 2.4.20 The fragment of the strace output is the following, it's write(1, "\n", 1) = 1 On x86 the fcntl64() syscall happens right before the write(). I don't think the bug is present in earlier versions of Let me know if you need additional info or want me to do |
Logged In: YES It would be good if you could attach preprocessor output and Also, are you using a 32-bit or a 64-bit compiler? |
Logged In: YES I'm attaching both, tar.bz2 compressed, about 45k, without any Linux on Sparc userspace is always 32 bit, but the kernel In this case, userspace is 32 bit and kernel 64 bit. |
Logged In: YES I can't see anything strange in the assembler code. Also, Can you run this in a debugger, setting a break-point on |
Anyone interested in keeping this one open? |
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: