[Python-bugs-list] [ python-Bugs-230029 ] [HP-UX] Python chokes on pthread_mutex_init

noreply@sourceforge.net noreply@sourceforge.net
Tue, 07 Aug 2001 12:28:14 -0700


Bugs item #230029, was opened at 2001-01-25 02:55
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=230029&group_id=5470

Category: Threads
Group: Platform-specific
>Status: Closed
>Resolution: Later
Priority: 3
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Guido van Rossum (gvanrossum)
Summary: [HP-UX] Python chokes on pthread_mutex_init

Initial Comment:
On an HPUX 11.00:  During "make intstall":

./install-sh -c -m 644 ./Lib/curses/__init__.py /opt/tmp/Python/lib/python2.0/curses
./install-sh -c -m 644 ./Lib/curses/ascii.py /opt/tmp/Python/lib/python2.0/curses
./install-sh -c -m 644 ./Lib/curses/has_key.py /opt/tmp/Python/lib/python2.0/curses
./install-sh -c -m 644 ./Lib/curses/textpad.py /opt/tmp/Python/lib/python2.0/curses
./install-sh -c -m 644 ./Lib/curses/wrapper.py /opt/tmp/Python/lib/python2.0/curses
./install-sh -c -m 644 ./Lib/plat-hp-uxB/core /opt/tmp/Python/lib/python2.0/plat-hp-uxB
./install-sh -c -m 755 ./Lib/plat-hp-uxB/regen /opt/tmp/Python/lib/python2.0/plat-hp-uxB
        ./install-sh -c -m 644 ./LICENSE /opt/tmp/Python/lib/python2.0/LICENSE.txt
        PYTHONPATH=/opt/tmp/Python/lib/python2.0 \
                        ./python -tt /opt/tmp/Python/lib/python2.0/compileall.py /opt/tmp/Python/lib/python2.0
pthread_mutex_init: Invalid argument
sh: 6074 Memory fault(coredump)

----------------------------------------------------------
This fault can be reproduced:

export PYTHONPATH=/opt/tmp/Python/lib/python2.0

/opt/stephie/Python-2.0 > ./python -tt /opt/tmp/Python/lib/python2.0/compileall.py /opt/tmp/Python/lib/python2.0
pthread_mutex_init: Invalid argument
Memory fault(coredump)



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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-08-07 12:28

Message:
Logged In: YES 
user_id=6380

Closing this out of desperation.
There's been no movement for this in ages.

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

Comment By: Tim Peters (tim_one)
Date: 2001-04-04 13:07

Message:
Logged In: YES 
user_id=31435

Harri, there are always HP-UX thread bug reports open, and 
against every release of Python.  A few HP-UX users submit 
patches, other HP-UX users argue about them, Guido takes 
his best guess and checks one or more of the patches in.  
It never solves anything, though -- come the next release, 
we get a fresh batch of HP-UX thread complaints.

It appears that no Python developer uses HP-UX, so we're 
never going to solve this.  If you think you can, please 
submit a patch.  Note that 2.1 final is scheduled for 
release a week from Friday (13-Apr-2001), so there isn't 
much time for this.

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

Comment By: Harri Pasanen (harripasanen)
Date: 2001-04-04 07:16

Message:
Logged In: YES 
user_id=77088

This bug has been present a long time, I've reported it
myself sometime last year (maybe for Python 2.0 beta, and
for Python 1.6).  

Basically, autoconf gets wrong the required threading
library. For HP-UX 10.20 -lcma is the correct one I believe.

For HP-UX 11.x -lpthread should be used.

#210665 has a fairly long thread on this.  This item
(#230029) are just the symptoms the bug shows when present.

Well, as I have access both to HP-UX 11.00 and HP-UX 10.20
machines, I could help to put this problem to rest for
Python 2.1.

-Harri

PS. As I'm currently logged in I presume you'll get my
coordinates automatically?  Just in case, harri dot pasanen
at trema dot com.









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

Comment By: Todd Whiteman (toddw)
Date: 2001-02-26 20:13

Message:
Logged In: YES 
user_id=149041

This works for me on HPUX-11:

Open the Modules/Makefile and change the following line:
LIBS= -lnsl -ldld -lcma
to the following
LIBS= -lnsl -ldld -lpthread -lcl

rm Modules/threadmodule.o
make


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

Comment By: Tim Peters (tim_one)
Date: 2001-02-09 15:29

Message:
Assigned to our resident HP-UX fan <wink>.

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

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-02-01 12:10

Message:
This may be the same bug as #110650 (already closed, but not clear that this was ever actually fixed).

Too bad this was an anonymous report; we can't ask for more information without an email address.

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

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