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.

Author eryksun
Recipients eryksun, wevsty
Date 2016-08-13.05:34:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471066464.1.0.224435338101.issue27749@psf.upfronthosting.co.za>
In-reply-to
Content
To diagnose the access violation, it may help if you install the debug binaries and try to reproduce the crash using python_d.exe. Attach the dump file to this issue.

Regarding the multiprocessing question, if its a separate issue you need to file it on its own and nosy davin. At first glance, I don't see why the handle is None in the lock's __exit__ method. After you acquire the lock, try logging the connection information. For example:

    import multiprocessing as mp
    import multiprocessing.util

    def test(lock):
        with lock:
            mp.util.info('test:lock:token: %r' % (lock._token,))
            mp.util.info('test:lock:handle: %r' % (lock._tls.connection._handle,))

    if __name__ == '__main__':
        mp.util.log_to_stderr(mp.util.INFO)
        lock = mp.Manager().Lock()
        p = mp.Process(target=test, args=(lock,))
        p.start()
        p.join()
History
Date User Action Args
2016-08-13 05:34:24eryksunsetrecipients: + eryksun, wevsty
2016-08-13 05:34:24eryksunsetmessageid: <1471066464.1.0.224435338101.issue27749@psf.upfronthosting.co.za>
2016-08-13 05:34:24eryksunlinkissue27749 messages
2016-08-13 05:34:23eryksuncreate