[New-bugs-announce] [issue21796] tempfile.py", line 83, in <module> once_lock = _allocate_lock() thread.error: can't allocat lock

Shal report at bugs.python.org
Tue Jun 17 22:11:01 CEST 2014


New submission from Shal:

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()

----------
components: Extension Modules
files: tempfile.py
messages: 220873
nosy: pythonbug1shal
priority: normal
severity: normal
status: open
title: tempfile.py", line 83,	in <module> once_lock = _allocate_lock() thread.error: can't allocat lock
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file35675/tempfile.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21796>
_______________________________________


More information about the New-bugs-announce mailing list