New submission from Andrew :
Hello,
This program crashes after 12-24 hours of running. My OS is Ubuntu 11.10, I'm
using Python 2.7.2, and gcc 4.6.1.
Here's the error:
*** glibc detected *** python: double free or corruption (!prev):
0x01d53ad0 ***
=== Backtrace:
Andrew added the comment:
I'll try Python 2.6, but this says 2.7 is supported:
http://initd.org/psycopg/features/
Thanks for the suggestion!
--
status: pending -> open
___
Python tracker
<http://bugs.python.org
Andrew added the comment:
Cannot reproduce this on RHEL 4. So far only RHEL 5.x seems to be affected.
___
Python tracker
<http://bugs.python.org/issue4732>
___
___
Pytho
Andrew added the comment:
This problem appears to be specific to RHEL 5, and is not a Python
problem. Linking against Google malloc (libtcmalloc) fixes the issue.
This bug should be closed.
___
Python tracker
<http://bugs.python.org/issue4
New submission from Andrew :
Quick repoduction steps:
1) Log into a mac with macOS version 10.15.1 (10.15.x may work)
2) For build tools, use Xcode11. A minimal xcode command-tools installation
also reproduced for me.
3) Download and decompress the latest python 3.8.2 source
4) run
Andrew added the comment:
Thanks for your reply Ned.
I think you are right about mac OS sandboxes messing something up. Python
builds most of the extension modules fine if I do a straightforward build in
the /tmp directory like you said.
Do you know of any easy ways to disable mac OS
Andrew added the comment:
The build steps were, unpack source, ./configure, make, using default settings
on a company machine.
The configure_and_make_output.txt I attached should show the whole ./configure
output. The only difference is that I was using xcode 11.0 for that output- the
Andrew added the comment:
So I believe I've found the problem as to why we can't get the extension
modules to build in our network area.
It seems to be a problem with setup.py's find_file() and is_macosx_sdk_path()
functions when the extension modules are building. You
Andrew added the comment:
Hi Ronald. The basic idea is that >= macOS 10.15.1 Apple has made most of the
filesystem read only on a folder by folder basis. They separate user-writable
onto a separate filesystem, treat it like a disk, and they mount it under
/System/Volumes/ as &q
New submission from Andrew :
It's known that Linux and Windows shells process wildcards like '*' and '?'
differently. Linux shell usually expands wildcards so the application gets list
of files. In contrast, Windows passes the wildcards to application. So in
cross
Andrew added the comment:
Just got this behavior, with readlines(), which is unsurprising since it
internally uses read() as described in the original bug report.
The break on line 468 of codecs.py seems to be the problem, it fixes it if I
remove this conditional locally.
http
New submission from Andrew:
When attempting to make a symlink using a name that already exists, a
FileExistsError is raised (and rightfully so), but it lists the source name
rather than the destination name. However, the existing destination name is
what causes the exception to be raised, not
Andrew added the comment:
I tested this on FreeBSD 9.1, and the error message is correct there.
--
___
Python tracker
<http://bugs.python.org/issue16812>
___
___
New submission from andrew :
After debugging for a while I finally released that I stumbled across a Python
bug (at least I believe it is). Here is a proof of concept that produces the
issue:
!/usr/bin/python
class blah:
def __init__(self, items=[]):
self.items = items
a = blah
New submission from Andrew:
We had problem where at some point python start consuming RAM. Until it ends.
The reason was race condition in subprocess.Popen. Which triggered gc.disable()
and never gc.enable().
The workaround we use is:
subprocess.gc.isenabled = lambda: True
The scenario for
Andrew added the comment:
pppery, I don't think I am breaking gc functionality with my code. The code
line I gave just meant to give the basic idea of what was helping to workaround
this. If you are actually interested in the code I use, it is below:
def fix_subprocess_racecond
Andrew added the comment:
Gregory P. Smith,
"if you are seeing a memory leak and the statements that fail before the
gc.enable call are more than"
The problem in my case was different. It was race condition between
gc.isenabled and gc.disable.
Isenabled was called when gc was d
Andrew added the comment:
So, I think I need to explain the situation.
At first, changes in package was made by me, but package was intended for use
in internal pypi (in scope of company). I don't know how it appeared here.
Why did I do that? Original package was not installable via p
New submission from Andrew:
I just recently discovered this bug, but when adding or subtracting a number
and a precision error occurs when using at least 1 floating-point number in the
operation. For example, 1 - 0.98 should output 0.02, but instead outputs
0..020018 (at least on
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +28281
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30061
___
Python tracker
<https://bugs.python.org/issu
Andrew Svetlov added the comment:
New changeset 991736697dff693b6c9f8964bb7540081bbf4ddb by Andrew Svetlov in
branch '3.10':
[3.10] bpo-46040: Fix removal text for @asyncio.coroutine (GH-30061)
https://github.com/python/cpython/commit/991736697dff693b6c9f8964bb7540
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset e6fe10d34096a23be7d26271cf6aba429313b01d by Christian Sattler in
branch 'main':
bpo-45874: Handle empty query string correctly in urllib.parse.parse_qsl
(#29716)
https://github.com/python/cpython/commit/e6fe10d34096a23be7d26271cf6aba
Andrew Svetlov added the comment:
New changeset 41026c3155012d6ea50e01205c163b6739c675b8 by Kumar Aditya in
branch 'main':
bpo-45855: Replaced deprecated `PyImport_ImportModuleNoBlock` with
PyImport_ImportModule (GH-30046)
https://github.com/python/cpyt
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
title: PyCapsule_Import still using PyImport_ImportModuleNoBlock -> Replace
PyImport_ImportModuleNoBlock with PyImport_ImportModule in
Andrew Svetlov added the comment:
New changeset b56774bd93822e1598bb5d6c1d0b1fe8c45a750d by AN Long in branch
'main':
bpo-16594: Add allow_reuse_port on socketserver (GH-30072)
https://github.com/python/cpython/commit/b56774bd93822e1598bb5d6c1d0b1fe8c45a750d
--
nosy:
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.11 -Python 2.7
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
dns package is not a part of Python standard library.
Please file a bug in https://github.com/rthalley/dnspython/issues bugtracker.
P.S.
The fix is pretty straightforward:
if not fut.done():
fut.set_result(...)
--
resolution: -> third pa
Andrew Svetlov added the comment:
New changeset 427a490c495cde8a152e938c6f02be65620e3e59 by Jakub KulĂk in branch
'main':
bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140)
https://github.com/python/cpython/commit/427a490c495cde8a152e938c6f02be65620e3e59
-
Andrew Svetlov added the comment:
New changeset 4f945ad7a510ad6dde13353784e45239edcdc14e by Miss Islington (bot)
in branch '3.10':
bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140) (GH-30183)
https://github.com/python/cpython/commit/4f945ad7a510ad6dde13353784e452
Andrew Svetlov added the comment:
New changeset a328ad7f9a9b6cd624da5efcc76daf88e0d22312 by Miss Islington (bot)
in branch '3.9':
bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140) (#30184)
https://github.com/python/cpython/commit/a328ad7f9a9b6cd624da5efcc76daf
New submission from Andrew Svetlov :
#7815 supports `__unittest = True` module globals to stripping unittest
framework calls from a stacktrace reported by a test failure.
IsolatedAsyncioTestCase missed this setup.
--
components: Library (Lib)
messages: 408887
nosy: asvetlov
priority
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +28417
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30196
___
Python tracker
<https://bugs.python.org/issu
New submission from Andrew Svetlov :
The change makes tests much better readable.
--
components: Tests, asyncio
messages: 40
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase
versions: Python
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +28419
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30198
___
Python tracker
<https://bugs.python.org/issu
Change by Andrew Svetlov :
--
versions: +Python 3.10, Python 3.9
___
Python tracker
<https://bugs.python.org/issue46129>
___
___
Python-bugs-list mailin
Andrew Svetlov added the comment:
New changeset da4b214304df38cf1831071804a2b83938f95923 by Kumar Aditya in
branch 'main':
bpo-42413: Replace `concurrent.futures.TimeoutError` and `asyncio.TimeoutError`
with builtin `TimeoutError` (GH-30197)
https://github.com/python/cpyt
Andrew Svetlov added the comment:
Done.
Thanks, Kumar!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
`__unittest = True` flag doesn't work smoothly with async functions,
unfortunately.
Need to investigate why.
--
___
Python tracker
<https://bugs.python.org/is
Andrew Svetlov added the comment:
New changeset 9c06fd89514a9a2865e2adcc472095f6949cecb2 by Andrew Svetlov in
branch 'main':
bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase (GH-30198)
https://github.com/python/cpython/commit/9c06fd89514a9a2865e2adcc472095
Change by Andrew Svetlov :
--
pull_requests: +28423
pull_request: https://github.com/python/cpython/pull/30202
___
Python tracker
<https://bugs.python.org/issue46
Andrew Svetlov added the comment:
New changeset cdb4579607ad5e0a3978ec29b8407bea4d19b4fa by Andrew Svetlov in
branch '3.10':
[3.10] bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase
(GH-30198) (GH-30202)
https://github.com/python/cpyt
Change by Andrew Svetlov :
--
pull_requests: +28425
pull_request: https://github.com/python/cpython/pull/30204
___
Python tracker
<https://bugs.python.org/issue46
Andrew Svetlov added the comment:
New changeset f8fce5e4e4338fbe49e5e7a5a856101f69081a08 by Andrew Svetlov in
branch '3.9':
[3.9] bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase
(GH-30198) (GH-30204)
https://github.com/python/cpyt
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue45996>
___
___
Change by Andrew Svetlov :
--
pull_requests: +28426
pull_request: https://github.com/python/cpython/pull/30205
___
Python tracker
<https://bugs.python.org/issue46
Andrew Svetlov added the comment:
Sorry, I closed it because async behavior reflects sync version now.
If you want to improve both -- you are welcome! Perhaps it is worth another
issue with another problem description.
--
resolution: fixed -> wont
Andrew Svetlov added the comment:
New changeset 71ef0b4c2b77195bb1adc42602549284f7ee9566 by Kumar Aditya in
branch 'main':
bpo-46157: fix typo in docs (GH-30237)
https://github.com/python/cpython/commit/71ef0b4c2b77195bb1adc42602549284f7ee9566
--
nosy:
New submission from Andrew Svetlov :
Selector-based event loops returns `_SelectorDatagramTransport` which inherits
`asyncio.Transport` instead of `asyncio.DatagramTransport`.
isinstance(transp, asyncio.DatagramTransport) fails.
It doesn't affect the actual execution since `transp.s
Andrew Svetlov added the comment:
New changeset c960b191b8999a9455bb4b2c50dc224d06fee80c by David CARLIER in
branch 'main':
bpo-46222: posixmodule sendfile FreeBSD's constants updates. (GH-30327)
https://github.com/python/cpython/commit/c960b191b8999a9455bb4b2c5
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue46222>
___
___
Andrew Svetlov added the comment:
New changeset 1b111338cfe7840feea95e30ea8124063c450c65 by Nikita Sobolev in
branch 'main':
bpo-46238: reuse `_winapi` constants in `asyncio.windows_events` (GH-30352)
https://github.com/python/cpython/commit/1b111338cfe7840feea95e30ea8124
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset 5a2a65096c3ec2d37f33615f2a420d2ffcabecf2 by Nikita Sobolev in
branch 'main':
bpo-46239: improve error message when importing `asyncio.windows_events`
(GH-30353)
https://github.com/python/cpython/commit/5a2a65096c3ec2d37f33615f2a420d
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset cf48a148190a6ccadc144cab2e2046e95c20fb57 by Miss Islington (bot)
in branch '3.10':
bpo-46239: improve error message when importing `asyncio.windows_events`
(GH-30353) (#30388)
https://github.com/python/cpyt
New submission from Andrew Svetlov :
Actual implementations of asyncio event loops (both Unix and Windows) support
contextvars and accept `context` argument in `loop.call_*()` methods.
Abstract event loop definition doesn't it. It is not a bug but a signature
incompatibility tha
Change by Andrew Svetlov :
--
components: +asyncio
nosy: +yselivanov
versions: +Python 3.10, Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.org/issue46
Change by Andrew Svetlov :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue46278>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +28633
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30427
___
Python tracker
<https://bugs.python.org/issu
Andrew Svetlov added the comment:
New changeset 861a9aaf0f517623c58ca4eb5588804b2632fcba by Miss Islington (bot)
in branch '3.10':
bpo-46278: fix typo introduced in GH-30427 (GH-30430) (GH-30431)
https://github.com/python/cpython/commit/861a9aaf0f517623c58ca4eb558880
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
I guess applying '@reprlib.recursive_repr' decorator to
'events.Handle.__repr__()' function can help.
Could you check, please?
--
versions: +Python 3.10, Python 3.11
___
Python tracker
<
Andrew Svetlov added the comment:
Thanks for the bug report.
Seems like your analysis is correct.
Could you make a pull request which adds a task reference?
--
___
Python tracker
<https://bugs.python.org/issue46
Andrew Svetlov added the comment:
Is anything left to do?
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
What do you mean by *process-limited environment*?
It is very unusual configuration IMHO.
--
___
Python tracker
<https://bugs.python.org/issue46
Andrew Svetlov added the comment:
get_event_loop() is deprecated when there is no running event loop.
Otherwise, it is equal to get_running_loop() and IS NOT deprecated.
I think there is no reason to replace all occurrences where get_event_loop()
works fine
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset fc75bfb8be8494e22123f2c14d1ab497c77cc22d by Nikita Sobolev in
branch 'main':
bpo-46310: simplify `for` loop in `asyncio/windows_events` (GH-30334)
https://github.com/python/cpython/commit/fc75bfb8be8494e22123f2c14d1ab4
Andrew Svetlov added the comment:
Yes, your environment is clear.
As I see from traceback, you are stuck not with new process creation but with
new thread starting.
The thread is used for waiting for the started process to finish.
It is the default configuration.
Maybe you need an
Andrew Svetlov added the comment:
True. Would you make a pull request that uses socketpair on AIX only?
A test for desired behavior is required.
--
___
Python tracker
<https://bugs.python.org/issue46
Andrew Svetlov added the comment:
New changeset 5a5340044ca98cbe6297668d91bccba04b102923 by Nikita Sobolev in
branch 'main':
bpo-46425: fix direct invocation of `asyncio` tests (#30725)
https://github.com/python/cpython/commit/5a5340044ca98cbe6297668d91bccba04b102923
-
Andrew Svetlov added the comment:
New changeset ea5b96842e066623a53015d8b2492ed61a5baf96 by Kumar Aditya in
branch 'main':
bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777)
https://github.com/python/cpython/commit/ea5b96842e066623a53015d8b2492e
Andrew Svetlov added the comment:
New changeset 90e2998db78cd15e45b3c82f6360ac8841e03945 by Miss Islington (bot)
in branch '3.10':
[3.10] bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777)
(#30784)
https://github.com/python/cpyt
Andrew Svetlov added the comment:
New changeset 6111d5dee2b24916ff95dba56efc569396a31851 by Miss Islington (bot)
in branch '3.10':
bpo-46425: fix direct invocation of `asyncio` tests (GH-30725) (#30782)
https://github.com/python/cpython/commit/6111d5dee2b24916ff95dba56efc56
Andrew Svetlov added the comment:
New changeset c8a536624e8f5d6612e3c275c5b19592583a8cf8 by Jelle Zijlstra in
branch 'main':
bpo-46468: document that "-m http.server" defaults to port 8000 (GH-30776)
https://github.com/python/cpython/commit/c8a536624e8f5d6612e3
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: -Python 3.9
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset b4088801db4b4f56b177b1c01dd873c7922e6a9f by Miss Islington (bot)
in branch '3.9':
bpo-46468: document that "-m http.server" defaults to port 8000 (GH-30776)
(#30786)
https://github.com/p
Andrew Svetlov added the comment:
New changeset 923c994400b3f1c67f95d25c703e131890a16912 by Miss Islington (bot)
in branch '3.10':
bpo-46468: document that "-m http.server" defaults to port 8000 (GH-30776)
(#30787)
https://github.com/p
Change by Andrew Svetlov :
--
versions: +Python 3.9
___
Python tracker
<https://bugs.python.org/issue46468>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
New changeset 101a184d49756043a0c39dde6eca08b1891137a2 by Nikita Sobolev in
branch 'main':
bpo-46425: fix direct invocation of `test_traceback` (GH-30746)
https://github.com/python/cpython/commit/101a184d49756043a0c39dde6eca08
Andrew Svetlov added the comment:
New changeset 55f4ec460ee6dcffc26180fd982ad89083c9acb1 by Nikita Sobolev in
branch 'main':
bpo-46425: use absolute imports in `test_sqlite3` (GH-30676)
https://github.com/python/cpython/commit/55f4ec460ee6dcffc26180fd982ad8
Andrew Svetlov added the comment:
New changeset 57316c52bae5d6420f5067f3891ec328deb97305 by Nikita Sobolev in
branch 'main':
bpo-46425: fix direct invocation of `test_importlib` (GH-30682)
https://github.com/python/cpython/commit/57316c52bae5d6420f5067f3891ec3
Andrew Svetlov added the comment:
New changeset 1f8014c5b4ea7acee069ca453f6fbcad5990ebf0 by Nikita Sobolev in
branch 'main':
bpo-46425: fix direct invocation of `test_fileutils` and `test_zoneinfo`
(GH-30792)
https://github.com/python/cpython/commit/1f8014c5b4ea7acee069ca453f6fbc
Change by Andrew Svetlov :
--
assignee: -> asvetlov
___
Python tracker
<https://bugs.python.org/issue46457>
___
___
Python-bugs-list mailing list
Unsubscrib
Andrew Svetlov added the comment:
IIRC it was added to reflect the presence of __class_getitem__ method in
typeshed.
Please feel free to drop it the method is not really needed.
--
___
Python tracker
<https://bugs.python.org/issue46
Andrew Svetlov added the comment:
All asyncio loop methods except `loop.call_soon_threadsafe()` should be done
from the same thread as been used for the loop creation.
Did you violate this rule?
--
___
Python tracker
<https://bugs.python.
Andrew Svetlov added the comment:
Guido, I can not confirm your suggestion but it seems correct to me.
--
___
Python tracker
<https://bugs.python.org/issue41
Andrew Svetlov added the comment:
I'm sorry, Victor.
--
___
Python tracker
<https://bugs.python.org/issue41682>
___
___
Python-bugs-list mailing list
Andrew Svetlov added the comment:
BaseEventLoop has _check_loop() method that is closed in debug mode only.
UnixEventLoop doesn't call this method for unix-specific API.
Adding the check to add_signal_handler()/remove_signal_handler() doesn't hurt,
sure.
But it doesn't help a
Andrew Svetlov added the comment:
Technically it should not provide the method according to the current design.
get_write_buffer_limits() is not a part of public transports API, this method
is defined by private class _FlowControlMixin only.
WriteTransport requires only get_write_buffer_size
Andrew Svetlov added the comment:
Forgot to write, after making the method public we can implement it in SSL
transport easily.
--
___
Python tracker
<https://bugs.python.org/issue46
Andrew Svetlov added the comment:
Please feel free to propose pull request for documentation tuning.
--
___
Python tracker
<https://bugs.python.org/issue34
Andrew Svetlov added the comment:
Sorry, I didn't look into docs before writing.
Now we have an interesting situation: the documentation reflects the desired
state already but the code is not :)
The PR should contain fixes for transports.py and sslproto.py only (plus a
blurb record for
Andrew Svetlov added the comment:
Your code has at least one concurrency problem. Let's look back at
forward_stream() function:
async def forward_stream(reader: StreamReader, writer: StreamWriter, event:
asyncio.Event, source: str):
writer_drain = writer.drain() # <--- awai
Andrew Svetlov added the comment:
Your version works but can be simplified.
Just use
await writer.drain()
writer.write(data)
without grabbing the drainer early.
The purpose of the .drain() method is to write pausing if the write buffer side
is greater than the high watermark
Change by Andrew Svetlov :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
You are welcome!
--
___
Python tracker
<https://bugs.python.org/issue46568>
___
___
Python-bugs-list mailing list
Unsubscribe:
1 - 100 of 3160 matches
Mail list logo