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 wevsty
Recipients eryksun, paul.moore, steve.dower, tim.golden, wevsty, zach.ware
Date 2016-08-13.10:13:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471083222.89.0.0580022688792.issue27749@psf.upfronthosting.co.za>
In-reply-to
Content
About the crash,python_d.exe crash dump download address is

http://o8z0k9748.bkt.clouddn.com/python_d_from_vs_20160813_930A2640.7z

Crash dump display,at the 
>	python35_d.dll!_Py_ForgetReference(_object * op) Line 1758	C
 	python35_d.dll!_Py_Dealloc(_object * op) Line 1786	C
 	python35_d.dll!tupledealloc(PyTupleObject * op) Line 236	C

I hope this can be helpful to you.

About the multiprocessing question
I modified my code becomes
def execute_select_command(command):
    values = []
    try:
        with Session_lock.G_Process_Lock:
            mp.util.info('test:lock:token: %r' % (Session_lock.G_Process_Lock._token,))
            mp.util.info('test:lock:handle: %r' % (Session_lock.G_Process_Lock._tls.connection._handle,))
            conn = sqlite3.connect(SQLite_DB_NAME,check_same_thread = False)
            cursor = conn.cursor()
            try:
                cursor.execute(command)
                values = cursor.fetchall()
            except Exception as e:
                pass
            finally:
                cursor.close()
                conn.close()
            return values
    except Exception as e:
        print(e)
        traceback.print_exc()
        mp.util.info('Exception:lock:token: %r' % (Session_lock.G_Process_Lock._token,))
        mp.util.info('Exception:lock:handle: %r' % (Session_lock.G_Process_Lock._tls.connection._handle,))
        pass
        return values
    finally:
        pass


After run,Console output

[INFO/SpawnPoolWorker-18] test:lock:token: Token(typeid='Lock', address='\\\\.\\pipe\\pyc-2876-0-n6aj8inv', id='d0b0efa7d0')
[INFO/SpawnPoolWorker-18] test:lock:handle: 720
[INFO/SpawnPoolWorker-17] test:lock:token: Token(typeid='Lock', address='\\\\.\\pipe\\pyc-2876-0-n6aj8inv', id='d0b0efa7d0')
[INFO/SpawnPoolWorker-17] test:lock:handle: 908
[INFO/SpawnPoolWorker-16] test:lock:token: Token(typeid='Lock', address='\\\\.\\pipe\\pyc-2876-0-n6aj8inv', id='d0b0efa7d0')
[INFO/SpawnPoolWorker-16] test:lock:handle: 744
WriteFile() argument 1 must be int, not None
[INFO/SpawnPoolWorker-16] Exception:lock:token: Token(typeid='Lock', address='\\\\.\\pipe\\pyc-2876-0-n6aj8inv', id='d0b0efa7d0')
[INFO/SpawnPoolWorker-16] Exception:lock:handle: 744
Could not find thread pid_2720_id_389212239784


this problem and crash both the use of multiprocessing lib after appears.Maybe these two issues are related.
If you need my full code or need to open a new issue, please let me know.Thinks
History
Date User Action Args
2016-08-13 10:13:43wevstysetrecipients: + wevsty, paul.moore, tim.golden, zach.ware, eryksun, steve.dower
2016-08-13 10:13:42wevstysetmessageid: <1471083222.89.0.0580022688792.issue27749@psf.upfronthosting.co.za>
2016-08-13 10:13:42wevstylinkissue27749 messages
2016-08-13 10:13:41wevstycreate