[Python-bugs-list] [ python-Bugs-821948 ] fcntl() not working on sparc (python 2.2.3)

SourceForge.net noreply at sourceforge.net
Sun Oct 12 13:41:59 EDT 2003


Bugs item #821948, was opened at 2003-10-12 00:08
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=821948&group_id=5470

Category: Extension Modules
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Alberto Bertogli (albertogli)
Assigned to: Nobody/Anonymous (nobody)
Summary: fcntl() not working on sparc (python 2.2.3)

Initial Comment:
In sparc, fcntl.fcntl() is not working properly under
Python 2.2.3;
a simple strace of:

import fcntl, sys
fcntl.fcntl(sys.stdin.fileno(), fcntl.F_SETFL,
os.O_NONBLOCK)

will reveal that on sparc there's no fcntl() syscall
done, while
under x86 it works as expected (ie. the syscall is there).

I have not tested yet with Python 2.3 but I'll let you
know when I do.

Thanks,
    Alberto


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-10-12 19:41

Message:
Logged In: YES 
user_id=21627

I cannot reproduce this. My binary of 2.2.1 does

read(3, "import fcntl, sys, os\nfcntl.fcnt"..., 8192) = 84
read(3, "", 8192)                       = 0
llseek(3, 0, SEEK_CUR)                  = 0
close(3)                                = 0
fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(24, 3),
...}) = 0
fcntl(0, F_SETFL, O_RDONLY|O_NONBLOCK)  = 0
sigaction(SIGINT, NULL, {0xff25ff24, ~[KILL STOP], 0}) = 0
sigaction(SIGINT, {SIG_DFL}, NULL)      = 0

Can you attach your strace output? Can you also try truss?
What Solaris version and patches, what compiler?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=821948&group_id=5470



More information about the Python-bugs-list mailing list