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: tempfile.py", line 83, in once_lock = _allocate_lock() thread.error: can't allocat lock
Type: behavior Stage: resolved
Components: Extension Modules Versions: Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: pythonbug1shal, serhiy.storchaka
Priority: normal Keywords:

Created on 2014-06-17 20:11 by pythonbug1shal, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
tempfile.py pythonbug1shal, 2014-06-17 20:10
cgi.py pythonbug1shal, 2014-06-17 20:12
mimetools.py pythonbug1shal, 2014-06-17 20:13
Messages (2)
msg220873 - (view) Author: Shal (pythonbug1shal) Date: 2014-06-17 20:10
The following error is with using python 2.7.3 on HP-UX 11.11
Very occasionally get following error. The error occurs once every 20 - 30 days. OS HP-UX 11.11

applicationCode.py is invoked via  a cgi wrapper by apache httpd .

############### ERROR LISTNG #############################

sem_init: Device busy
Traceback (most recent call last):
  File "applicationCode.py", line 4, in <module>
      import cgi

        File "local/lib/python2.7/cgi.py", line 51, in <module>
        import mimetools

        File "local/lib/python2.7/SECURITY WARNING!!
        import tempfile

        File "local/lib/python2.7/tempfile.py", line 83, in <module>
        once_lock = _allocate_lock()

        thread.error: can't allocate lock

##### END OF ERROR LISTING ##################



applicationCode.py

has line of

form = cgi.FieldStorage()
msg370470 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2020-05-31 14:44
Python 2.7 is no longer supported.
History
Date User Action Args
2022-04-11 14:58:05adminsetgithub: 65995
2020-05-31 14:44:01serhiy.storchakasetstatus: open -> closed

nosy: + serhiy.storchaka
messages: + msg370470

resolution: out of date
stage: resolved
2014-06-17 20:13:17pythonbug1shalsetfiles: + mimetools.py
2014-06-17 20:12:54pythonbug1shalsetfiles: - cgi.py
2014-06-17 20:12:39pythonbug1shalsetfiles: + cgi.py
2014-06-17 20:12:11pythonbug1shalsetfiles: + cgi.py
2014-06-17 20:11:01pythonbug1shalcreate