This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [HP-UX] python with-threads core-dumps (PR#342)
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: fdrake, gvanrossum, harripasanen, jhylton, memaul, tim.peters
Priority: low Keywords:

Created on 2000-07-31 21:10 by anonymous, last changed 2022-04-10 16:02 by admin. This issue is now closed.

Messages (10)
msg246 - (view) Author: Nobody/Anonymous (nobody) Date: 2000-07-31 21:10
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
msg247 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2000-08-29 03:43
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.
msg248 - (view) Author: Michael Maul (memaul) Date: 2000-08-29 14:34
Goto link below for instructions and patches for building
python 152 with threads on hpux 10.20

http://memaul.tripod.com/index.html
msg249 - (view) Author: Jeremy Hylton (jhylton) (Python triager) Date: 2000-09-07 22:05
Please do triage on this bug.
msg250 - (view) Author: Harri Pasanen (harripasanen) Date: 2000-09-15 09:34
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
msg251 - (view) Author: Harri Pasanen (harripasanen) Date: 2000-09-15 11:55
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.
msg252 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2000-09-15 17:04
Noted that this is HP-UX specific in summary.
msg253 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2000-09-22 10:02
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!)
msg254 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2000-09-25 13:10
I'm hoping that this was fixed by recent changes. Sent an email to the original submittor to verify.
msg255 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2000-10-06 17:41
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.
History
Date User Action Args
2022-04-10 16:02:10adminsetgithub: 32721
2000-07-31 21:10:29anonymouscreate