[issue35608] python3 multiprocessing queue deadlock when use thread and process at same time

2018-12-29 Thread beruhan


beruhan  added the comment:

debug message as follows:
[DEBUG/MainProcess] created semlock with handle 140059486064640
[DEBUG/MainProcess] created semlock with handle 140059486060544
[DEBUG/MainProcess] created semlock with handle 140059486056448
[DEBUG/MainProcess] Queue._after_fork()
[DEBUG/MainProcess] created semlock with handle 140059486052352
[DEBUG/MainProcess] created semlock with handle 140059486048256
[DEBUG/MainProcess] created semlock with handle 140059486044160
[DEBUG/MainProcess] Queue._after_fork()
[DEBUG/MainProcess] Queue._start_thread()
[DEBUG/MainProcess] doing self._thread.start()
[DEBUG/MainProcess] starting thread to feed data to pipe
[DEBUG/MainProcess] ... done self._thread.start()
^CTraceback (most recent call last):
  File "main_simple.py", line 76, in 
proc.join()
  File "/usr/lib/python3.6/multiprocessing/process.py", line 124, in join
res = self._popen.wait(timeout)
  File "/usr/lib/python3.6/multiprocessing/popen_fork.py", line 50, in wait
return self.poll(os.WNOHANG if timeout == 0.0 else 0)
  File "/usr/lib/python3.6/multiprocessing/popen_fork.py", line 28, in poll
pid, sts = os.waitpid(self.pid, flag)
KeyboardInterrupt
^CException ignored in: 
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 1294, in _shutdown
t.join()
  File "/usr/lib/python3.6/threading.py", line 1056, in join
self._wait_for_tstate_lock()
  File "/usr/lib/python3.6/threading.py", line 1072, in _wait_for_tstate_lock
elif lock.acquire(block, timeout):
KeyboardInterrupt
[INFO/MainProcess] process shutting down
[DEBUG/MainProcess] running all "atexit" finalizers with priority >= 0
[DEBUG/MainProcess] telling queue thread to quit
[INFO/MainProcess] calling join() for process Process-3
^CError in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python3.6/multiprocessing/popen_fork.py", line 28, in poll
pid, sts = os.waitpid(self.pid, flag)

--

___
Python tracker 
<https://bugs.python.org/issue35608>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35608] python3 multiprocessing queue deadlock when use thread and process at same time

2019-01-01 Thread beruhan


beruhan  added the comment:

I also tested on windows 10,it worked normally.But when I run it under 
ubuntu16.04,It will blocked.my python version is 3.6.5

--

___
Python tracker 
<https://bugs.python.org/issue35608>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36584] cython nametuple TypeError

2019-04-10 Thread beruhan


New submission from beruhan :

I have a class that inherits from NamedTuple,I have compile it to pyd file on 
windows use cython,when I import the class  and create a object in another py 
file,It throws error 'TypeError: __new__() takes 1 positional argument but 4 
were given'

when I don't compile it to pyd,It can use normally,How to deal with it?

--
components: Cross-Build
messages: 339828
nosy: Alex.Willmer, beruhan, gvanrossum, levkivskyi
priority: normal
severity: normal
status: open
title: cython nametuple TypeError
type: behavior
versions: Python 3.6

___
Python tracker 
<https://bugs.python.org/issue36584>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36584] cython nametuple TypeError

2019-04-10 Thread beruhan

beruhan  added the comment:

the class definitions as follows:
from typing import NamedTuple


class Info(NamedTuple):
service: str
damage: str
privilege: str


info = Info("http", "no", "no")

--

___
Python tracker 
<https://bugs.python.org/issue36584>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com