[Python-bugs-list] [Bug #110650] [HP-UX] python with-threads core-dumps (PR#342)

noreply@sourceforge.net noreply@sourceforge.net
Fri, 6 Oct 2000 10:41:40 -0700


Bug #110650, was updated on 2000-Jul-31 14:10
Here is a current snapshot of the bug.

Project: Python
Category: Core
Status: Closed
Resolution: None
Bug Group: Platform-specific
Priority: 3
Summary: [HP-UX] python with-threads core-dumps (PR#342)

Details: Jitterbug-Id: 342
Submitted-By: michael.exner@mrz.uni-magdeburg.de
Date: Wed, 31 May 2000 09:43:38 -0400 (EDT)
Version: 1.5.2
OS: hpux-11.00


When I compile python with threads python core-dumps:
$ ./python
pthread_mutex_init: Invalid argument
Memory fault(coredump)
without thread-support everything works fine
I tried this with hpux-ansi-c and with gcc (2.95.2) but got the same result




====================================================================
Audit trail:
Tue Jul 11 08:25:57 2000	guido	moved from incoming to open

Follow-Ups:

Date: 2000-Aug-28 20:43
By: tim_one

Comment:
Note that the only call to pthread_mutex_init Python makes is in function PyThread_allocate_lock in file phread_pthread.h.  If Python compiled at all, it's extremely unlikely that the first argument is in error.  It's very likely that the second argument is in error, though:  there were many imcompatible revisions of the pthreads std, and pthread_mutexattr_default is a macro conditionally defined near the top of the file.  If this OS actually support pthreads, you have to figure out which *version* of pthreads it defines and arrange for config to define the *correct* one of the

PY_PTHREAD_D4
PY_PTHREAD_D7
PY_PTHREAD_STD
PY_PTHREAD_D6

symbols for your platform.  Else disable threads entirely.
-------------------------------------------------------

Date: 2000-Aug-29 07:34
By: memaul

Comment:
Goto link below for instructions and patches for building
python 152 with threads on hpux 10.20

http://memaul.tripod.com/index.html
-------------------------------------------------------

Date: 2000-Sep-07 15:05
By: jhylton

Comment:
Please do triage on this bug.
-------------------------------------------------------

Date: 2000-Sep-15 02:34
By: harripasanen

Comment:
I can verify that the bug exists not only in 1.5.2 but also in 1.6.

gcc 2.95.2
HPUX 11.00

I'll see if tim_one's suggestions help.

Regards,

Harri Pasanen
-------------------------------------------------------

Date: 2000-Sep-15 04:55
By: harripasanen

Comment:
The problems seems to be that configure gets the libraries wrong on HP-UX 11.0.   It links with -lcma, when it should link with -lpthread.

So a quick and dirty solution is to relink the python by hand, replacing -lcma with -lpthread.

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

Date: 2000-Sep-15 10:04
By: fdrake

Comment:
Noted that this is HP-UX specific in summary.
-------------------------------------------------------

Date: 2000-Sep-22 03:02
By: gvanrossum

Comment:
Assigned to myself because this is another one about thread configuration on HP-UX, which I plan to tackle. Note that Harri (hi, Harri!) contradicts what another HP-UX bug report (#110665) says -- Harri says you shouldn't link with -lcma, the other says you should. (Or does it? It's ambiguous!)
-------------------------------------------------------

Date: 2000-Sep-25 06:10
By: gvanrossum

Comment:
I'm hoping that this was fixed by recent changes. Sent an email to the original submittor to verify.
-------------------------------------------------------

Date: 2000-Oct-06 10:41
By: gvanrossum

Comment:
Haven't heard back from the original submittor after sending a reminder last week. Closing this -- there's still another HP-UX threads bug report open from a submitter who *did* write back and still has his particular problem.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=110650&group_id=5470