[issue30805] asyncio: race condition with debug and subprocess

2017-06-29 Thread William Grzybowski

New submission from William Grzybowski:

If a process is schedule to run in the event loop with debug disabled
and debug is then enabled before the process finishes it will result in
a traceback: debug_log undefined.

[2017/06/29 14:39:13] (ERROR) asyncio.default_exception_handler():1261 - Ta
sk exception was never retrieved
future:  exception=UnboundLocal
Error("local variable 'debug_log' referenced before assignment",)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/vm.py",
line 503, in kmod_load
kldstat = (await (await Popen(['/sbin/kldstat'], stdout=subprocess.PIPE
)).communicate())[0].decode()
  File "/usr/local/lib/python3.6/asyncio/subprocess.py", line 225, in creat
e_subprocess_exec
stderr=stderr, **kwds)
  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 1194, in sub
process_exec
logger.info('%s: %r', debug_log, transport)

--
components: asyncio
messages: 297289
nosy: wg, yselivanov
priority: normal
pull_requests: 2549
severity: normal
status: open
title: asyncio: race condition with debug and subprocess
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7

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



[issue33625] Disable GIL on getpwnam and getpwuid

2018-05-23 Thread William Grzybowski

New submission from William Grzybowski :

Hello,

Currently the GIL is not disabled when calling pwd.getpwnam nor pwd.getpwuid.

It could be the C library call may take some time for completion, especially 
when using third-party modules on the system (nss-ldap, nss-pgsql, sss, etc).

Disabling GIL before calling them makes sure other threads can run in the 
meantime.

--
components: Extension Modules
messages: 317445
nosy: wg
priority: normal
severity: normal
status: open
title: Disable GIL on getpwnam and getpwuid
versions: Python 3.6

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



[issue33625] Disable GIL on getpwnam and getpwuid

2018-05-23 Thread William Grzybowski

Change by William Grzybowski :


--
keywords: +patch
pull_requests: +6711
stage:  -> patch review

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



[issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid}

2018-05-24 Thread William Grzybowski

William Grzybowski  added the comment:

I have updated the PR to used the re-entrant versions.

Let me know what you guys think. Thanks!

--
title: Disable GIL on getpwnam and getpwuid -> Release GIL for 
grp.getgr{nam,gid} and pwd.getpw{nam,uid}

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



[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-09-07 Thread William Grzybowski


New submission from William Grzybowski :

Issue was spotted by @vstinner while reviewing 
https://github.com/python/cpython/pull/7081

pwd.getpwnam and grp.getgrnam are susceptible to mojibake as they are using 
encoded bytes instead of unicode in the error message.

--
components: Extension Modules
messages: 324738
nosy: wg
priority: normal
severity: normal
status: open
title: Possible mojibake in pwd.getpwnam and grp.getgrnam
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

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



[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-09-07 Thread William Grzybowski


Change by William Grzybowski :


--
keywords: +patch
pull_requests: +8552
stage:  -> patch review

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



[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-09-07 Thread William Grzybowski


Change by William Grzybowski :


--
pull_requests: +8558

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



[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-09-07 Thread William Grzybowski


Change by William Grzybowski :


--
pull_requests: +8559

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



[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-09-08 Thread William Grzybowski


William Grzybowski  added the comment:

What is the policy to amend a new commit to master for %R? Create a new PR? 
Wont that cause problem with NEWS entry?

--

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



[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-09-10 Thread William Grzybowski


William Grzybowski  added the comment:

I can do it if you feel the need.
Can this same issue be used? Will the new PR require another NEWS entry?

--

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



[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-09-11 Thread William Grzybowski


Change by William Grzybowski :


--
pull_requests: +8608

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



[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread William Grzybowski

New submission from William Grzybowski:

Hello,

Currently python setup.py restricts FreeBSD host platform by version, e.g. 
freebsd7, freebsd8.

It is not only out-of-date (we already are on freebsd11) but also doesn't seem 
to have a good reason to do so.

Proposed patches replaces it with startswith('freebsd').

Thanks

--
components: Build
files: tip.patch
keywords: patch
messages: 202621
nosy: wg
priority: normal
severity: normal
status: open
title: Enable all freebsd* host platforms
type: enhancement
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 
3.4, Python 3.5
Added file: http://bugs.python.org/file32573/tip.patch

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



[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread William Grzybowski

Changes by William Grzybowski :


Added file: http://bugs.python.org/file32574/tip.patch

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



[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread William Grzybowski

Changes by William Grzybowski :


Removed file: http://bugs.python.org/file32573/tip.patch

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



[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread William Grzybowski

William Grzybowski added the comment:

Semaphores broken or not (it seems to work just fine in freebsd9) python is 
still usable overall.

I see no reason to arbitrarily chose what freebsd platform to build.

--

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



[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread William Grzybowski

William Grzybowski added the comment:

Ah, I see, I made a misinterpretation of setup.py. Sorry about that.

So please ignore the setup.py changes in the patch ;)

--

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



[issue25602] Add support for EVFILT_USER kqueue filter

2016-06-06 Thread William Grzybowski

William Grzybowski added the comment:

I have bumped into this issue as well.

This change would be much appreciate on my end.

What can we do to move the ball forward here?

Thanks!

--
nosy: +wg

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