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

nobody nobody@sourceforge.net
Mon, 26 Feb 2001 20:13:18 -0800


Artifact #230029, was updated on 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: Open
Priority: 5
Submitted By: Nobody/Anonymous
Assigned to: Guido van Rossum
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: Todd Whiteman
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
Date: 2001-02-09 15:29

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

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

Comment By: Fred L. Drake, Jr.
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