Mailing List Archive

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems
New submission from Andreas Kupries <andreask@activestate.com>:

The 'test_posix' of Python's 2.5.4.3 testsuite fails on HPUX. This has
happened on parisc and ia64 systems. On the parisc system failure occurs
for both parisc1.1 and parisc2.0w builds. The HPUX versions are 11.00
(parisc) and 11.22 (ia64).

The attached file contains the output of executing

./apy/bin/python2.5 ./apy/lib/python2.5/test/regrtest.py -v test_posix

----------
components: Tests
files: bug-test_posix-hpux.log
messages: 80835
nosy: andreask
severity: normal
status: open
title: 2.5.4.3 / test_posix failing on HPUX systems
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file12897/bug-test_posix-hpux.log

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue5113>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue5113] 2.5.4.3 / test_posix failing on HPUX systems [ In reply to ]
Antoine Pitrou <pitrou@free.fr> added the comment:

If you try "chown root foobar", with <foobar> being a valid file you
own, does it succeed?

----------
nosy: +pitrou

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue5113>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue5113] 2.5.4.3 / test_posix failing on HPUX systems [ In reply to ]
Andreas Kupries <andreask@activestate.com> added the comment:

Yes.

Session log:

andreask@bertha:~/tmp/x> ll
total 0

andreask@bertha:~/tmp/x> touch foobar
andreask@bertha:~/tmp/x> ll
total 0
-rw-rw-r-- 1 andreask DomainUsers 0 Feb 2 10:17 foobar

andreask@bertha:~/tmp/x> chown root foobar
andreask@bertha:~/tmp/x> ll
total 0
-rw-rw-r-- 1 root DomainUsers 0 Feb 2 10:17 foobar

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue5113>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue5113] 2.5.4.3 / test_posix failing on HPUX systems [ In reply to ]
Antoine Pitrou <pitrou@free.fr> added the comment:

That explains what the test fails then. The test expects that you can't
chown a file to root as a normal user, and it verifies that an exception
is raised in that case.
Do you know if this behaviour is standard under HP-UX? If so, what do
sys.platform and platform.system() return?

(this won't be fixed in 2.5 by the way: 2.5 only receives security
fixes. 2.6 is the current stable branch and 2.7 is the in-development
version)

----------
versions: +Python 2.6, Python 2.7 -Python 2.5

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue5113>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue5113] 2.5.4.3 / test_posix failing on HPUX systems [ In reply to ]
Andreas Kupries <andreask@activestate.com> added the comment:

I do not know if this is standard for hpux or not.

I can say that right now we have six different HPUX machines which
behave in this manner, i.e. do not throw an error for the 'chown root
foobar' command for an ordinary (non-root) user.

Regarding the platform codes, here are the results.

andreask@bertha:~/tmp/autotest> ./apy/bin/python2.5
ActivePython 2.5.4.3 (ActiveState Software Inc.) based on
Python 2.5.4 (r254:67916, Jan 20 2009, 14:48:58) [C] on hp-ux11
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, platform
>>> sys.platform
'hp-ux11'
>>> platform.system()
'HP-UX'
>>> quit()

The six machines I mentioned are

bertha - HP-UX 11.00 (PA-RISC)
bigsur03 - HP-UX 11.22 (Itanium)
hpa180 - HP-UX 11.00 (PA-RISC)
bigsur03 - HP-UX 11.22 (Itanium)
hpl3000 - HP-UX 11.23 (PA-RISC)
bigsur05 - HP-UX 11.32 (Itanium)

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue5113>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue5113] 2.5.4.3 / test_posix failing on HPUX systems [ In reply to ]
Antoine Pitrou <pitrou@free.fr> added the comment:

Ok, and when you try to chown back to yourself the root-owned foobar,
does it fail?

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue5113>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue5113] 2.5.4.3 / test_posix failing on HPUX systems [ In reply to ]
Andreas Kupries <andreask@activestate.com> added the comment:

Yes, that does fail with error 'not owner'.

andreask@bertha:~/tmp> mkdir x
andreask@bertha:~/tmp> cd x
andreask@bertha:~/tmp/x> touch foobar
andreask@bertha:~/tmp/x> ll
total 0
-rw-rw-r-- 1 andreask DomainUsers 0 Feb 2 15:06 foobar
andreask@bertha:~/tmp/x> chown root foobar
andreask@bertha:~/tmp/x> ll
total 0
-rw-rw-r-- 1 root DomainUsers 0 Feb 2 15:06 foobar
andreask@bertha:~/tmp/x> chown andreask foobar
foobar: Not owner
andreask@bertha:~/tmp/x>

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue5113>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com