[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2009-09-22 Thread Ian Donaldson

Ian Donaldson  added the comment:

For those not desiring the use of the chgat function and wishing
to avoid all the fun suggested in the last post (like me), and just
get a _cursesmodule built on Solaris 9 or 10... I enclose a simple patch.

--
nosy: +iandekit
Added file: http://bugs.python.org/file14951/EKIT.PATCH1

___
Python tracker 
<http://bugs.python.org/issue3786>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3876] multiprocessing does not compile on systems which do not define sem_timedwait

2009-09-22 Thread Ian Donaldson

Ian Donaldson  added the comment:

Similarly, compile fails on Solaris 9 due to lack of sem_timedwait()
so here is a patch for that.  Solaris 10 was the first Solaris
to have this function so the patch adapts for that case.

--
nosy: +iandekit
Added file: http://bugs.python.org/file14952/EKIT.PATCH3

___
Python tracker 
<http://bugs.python.org/issue3876>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3876] multiprocessing does not compile on systems which do not define sem_timedwait

2009-09-22 Thread Ian Donaldson

Ian Donaldson  added the comment:

Similar to aix-patch, I enclose what I did for compilation
on Solaris 9, using macros from Solaris 10's headers.

These differ slightly to the aix ones, but I don't know if the
difference matters.  (alignment related)

--
Added file: http://bugs.python.org/file14953/EKIT.PATCH2

___
Python tracker 
<http://bugs.python.org/issue3876>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6974] test_posix getcwd test leaves tmp dir

2009-09-22 Thread Ian Donaldson

New submission from Ian Donaldson :

whilst debugging the getcwd test on Solaris 9 I noticed that
the rmtree() failed, as on Solaris rmdir(2) returns EINVAL
if cwd is the named directory.

Fix is to reorder the rmtree and chdir, see attached patch.

--
components: Tests
files: EKIT.PATCH4
messages: 93026
nosy: iandekit
severity: normal
status: open
title: test_posix getcwd test leaves tmp  dir
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file14954/EKIT.PATCH4

___
Python tracker 
<http://bugs.python.org/issue6974>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6976] getcwd hangs and leaks mem on Solaris <= 9 in very long file name case

2009-09-22 Thread Ian Donaldson

New submission from Ian Donaldson :

test_posix hung on Solaris 9 ... traced to getcwd test hanging.

This in turn was traced to the very long filename case...
It seems posixmodule was modified (since py2.4.3 at least) 
to retry getcwd with a bigger buffer if ERANGE occurs.  

However on Solaris 9 its not documented that ERANGE also
occurs if getcwd(3) can't cope with the path length, even
if the buffer is big enough.  This causes posix_getcwd() to
loop malloc'ing a bigger buffer, forever.

I enclose a patch that limits the damage, to 1Mbyte at least.
(not sure if more recent Solaris 9 patches than we have
provide another solution)

On Solaris 10, there is no problem as the getcwd() is implemented
as a system call.

--
components: Build
files: EKIT.PATCH5
messages: 93028
nosy: iandekit
severity: normal
status: open
title: getcwd hangs and leaks mem on Solaris <= 9 in very long file name case
type: resource usage
versions: Python 2.6
Added file: http://bugs.python.org/file14955/EKIT.PATCH5

___
Python tracker 
<http://bugs.python.org/issue6976>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5114] 2.5.4.3 and 2.6.2 / test_threading hangs

2009-09-23 Thread Ian Donaldson

Ian Donaldson  added the comment:

FWIW it hangs on Solaris 9 also (sparc + x86)

--
nosy: +iandekit

___
Python tracker 
<http://bugs.python.org/issue5114>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com