STINNER Victor added the comment:
See also bpo-46887: ./Programs/_freeze_module fails with MSAN: Uninitialized
value was created by an allocation of 'stat.i'.
--
___
Python tracker
<https://bugs.python.o
STINNER Victor added the comment:
The initial issue "Python leaks one reference at exit on Windows" is now fixed.
If someone wants to investigate the remaining leak of 1 memory block or the
negative ref count of PYTHONDUMPREFS=1, please open a separated issue.
--
STINNER Victor added the comment:
I created a follow-up issue: bpo-46917 "Require IEEE 754 floating point to
build Python 3.11". I close this one: float.__set_format__() has been removed.
--
resolution: -> fixed
status: open -> closed
title: Remove the float.__setf
STINNER Victor added the comment:
New changeset 6d0d7d2b8c1e04fd51c6cb29cc09a41b60b97b7b by Victor Stinner in
branch 'main':
bpo-46913: test_hashlib skips _sha3 tests on UBSan (GH-31673)
https://github.com/python/cpython/commit/6d0d7d2b8c1e04fd51c6cb29cc09a4
STINNER Victor added the comment:
New changeset ad1b04451d3aca2c6fa6dbe2891676a4e0baac49 by Victor Stinner in
branch 'main':
bpo-46913: Skip test_ctypes.test_shorts() on UBSan (GH-31674)
https://github.com/python/cpython/commit/ad1b04451d3aca2c6fa6dbe2891676
STINNER Victor added the comment:
New changeset ec4a580f7cada002441ae5611b909d56e3b5b613 by Victor Stinner in
branch 'main':
bpo-46355: Update pythoncapi_compat project URL (GH-31670)
https://github.com/python/cpython/commit/ec4a580f7cada002441ae5611b909d
Change by STINNER Victor :
--
pull_requests: +29795
pull_request: https://github.com/python/cpython/pull/31675
___
Python tracker
<https://bugs.python.org/issue46
STINNER Victor added the comment:
I pushed changes just to turn back the buildbot back to green, but undefined
behaviors in test_ctypes.test_shorts() and _sha3 (tested by test_hashlib) must
be fixed.
Previously, test_ctypes, test_hashlib and test_faulthandler were fully skipped
on UBSan
STINNER Victor added the comment:
New changeset 7b5b429adab4fe0fe81858fe3831f06adc2e2141 by Victor Stinner in
branch '3.10':
[3.10] bpo-46913: Fix test_ctypes, test_hashlib, test_faulthandler on UBSan
(GH-31675)
https://github.com/python/cpyt
Change by STINNER Victor :
--
pull_requests: +29796
pull_request: https://github.com/python/cpython/pull/31676
___
Python tracker
<https://bugs.python.org/issue46
STINNER Victor added the comment:
New changeset 6a14330318c9c7aedf3e9841c3dfea337064d8e6 by Victor Stinner in
branch '3.9':
bpo-46913: Fix test_ctypes, test_hashlib, test_faulthandler on UBSan (GH-31675)
(GH-31676)
https://github.com/python/cpyt
STINNER Victor added the comment:
> I don't agree with GH-31673. Did you try defining NO_MISALIGNED_ACCESSES
> instead?
Did you read the commit message? The change is not about skipping the test, but
fixing the CI. Previously, test_hashlib was not run at all on the UBSan
buildbo
Change by STINNER Victor :
--
nosy: -vstinner
___
Python tracker
<https://bugs.python.org/issue29406>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
> The Python library will not compile with a C++2020 compiler because the code
> uses the reserved “module” keyword
What is the error message? How can the error be reproduced?
--
___
Python tracker
STINNER Victor added the comment:
> Looks like a libc bug ...
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=12453
Yes, the GNU libc has bugs (as every software!): this one has been fixed only
recently (in glibc 2.14, released the 2011-05-31). I don't know if this issue
is
STINNER Victor added the comment:
> If a two-ints representation
> is considered necessary, I'd favor a rational number (numerator,
> denominator) over a pair (second, subsecond); this would also support
> 2**-32 fractions (as used in NTP !!!).
Which OS uses NTP timestamps
STINNER Victor added the comment:
I suppose that you can test if the bug is tested on Windows 64 bits, where
sizeof(long)=32 bits, whereas sizeof(size_t) is 64 bits.
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue12
Changes by STINNER Victor :
--
nosy: +haypo, lemburg
___
Python tracker
<http://bugs.python.org/issue12964>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
> The failure was introduced by issue #12655
Wow, great job!
crash.py looks like a libc and/or kernel bug. Can you try the glibc 2.14
(released the 2011-05-31)? You should first check if it is not a duplicate of
http://sources.redhat.com/bugzi
Changes by STINNER Victor :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue12970>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
> However, I don't think we should/could add this to the posix module:
> it expects a pthread_t instead of a PID, to which we don't have access.
We already have such function:
http://docs.python.org/dev/library/signal.html#signal.pthre
STINNER Victor added the comment:
> as noted by Victor, it's really easy to crash the interpreter
> by passing an invalid thread ID, which IMHO, should be avoided
> at all cost
Do you mean that signal.pthread_kill() should be removed? This function is very
useful and solve so
STINNER Victor added the comment:
"Recent clang and Python2.7 (without the patch):
>>> 2**64
0"
Does the test suite catch this bug?
--
___
Python tracker
<http://bugs
STINNER Victor added the comment:
So, can we close this issue?
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue12946>
___
___
Python-bugs-list m
STINNER Victor added the comment:
According to the following article, a fsync is also needed on the directory
after a rename. I don't understand if is it always needed for an atomic rename,
or if we only need it for the "atomic write" pattern.
http://lwn.net/Articles/457
STINNER Victor added the comment:
> According to http://docs.python.org/library/threading.html#condition-objects,
> threading.Condition is a class.
Nope, it's a factory, and it's written in the doc:
"threading.Condition()
A factory function that returns a new conditi
STINNER Victor added the comment:
@eric: The doc has to be updated:
http://docs.python.org/dev/library/threading.html#threading.activeCount
"threading.Condition()
A factory function that returns a new condition variable object. A condition
variable allows one or more threads to wait
STINNER Victor added the comment:
> Yes, but further down it still says:
>
> """
> class threading.Condition([lock])
>
> If the lock argument is given and not None, []
> """
What do yo
STINNER Victor added the comment:
I removed -fwrapv from configure and Makefile, but I'm unable to reproduce the
issue with clang 2.8 on x86_64 (Fedora 15).
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/is
STINNER Victor added the comment:
> Thanks Victor; I just managed to install Clang,
> and it looks I can reproduce the failures.
What is your clang version? I ran ./python -m test -v test_long to check the
issue.
--
___
Python tracker
STINNER Victor added the comment:
Aaaah, int_pow. I was testing Python 3.3.
I tested Python 2.7 with clang 2.8, optimization level at -03 and without
-fwrapv... I'm still unable to reproduce the issue. It's maybe an optimization
introduced by clang 2.9.
--
This issue remembers me
New submission from STINNER Victor :
http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%202.7/builds/301
-
[ 44/359] test_json
Fatal Python error: Segmentation fault
Current thread 0x0008010041c0:
File
"/usr/home/bui
STINNER Victor added the comment:
The new issue #12980 may be a regression introduced by this issue.
--
___
Python tracker
<http://bugs.python.org/issue11
Changes by STINNER Victor :
___
Python tracker
<http://bugs.python.org/issue12976>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/o
STINNER Victor added the comment:
You need to run Python with -O command line option to ask Python to search for
*.pyo files.
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue12
STINNER Victor added the comment:
test_packaging is still failing on Windows, example:
==
ERROR: test_uses (packaging.tests.test_database.TestDistribution
STINNER Victor added the comment:
I don't think that it's a problem to remove private functions.
Is it mandatory to send a non-empty message (first argument for sendmsg, b'x'
in your patch)? The original C function sends a random byte :-)
multiprocessing_recvfd()
Changes by STINNER Victor :
--
nosy: +skrah
___
Python tracker
<http://bugs.python.org/issue12980>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
I ran test_json (and then the full test suite using make buildbottest) on
FreeBSD 8.2, with Python compiled by clang 2.8, and I'm unable to reproduce the
bug.
@skrah: Feel free to close the issue if we cannot reproduce it outside your
bui
STINNER Victor added the comment:
@meadori: please write the version of your patch directly in the filename. For
example, I use the pattern: name.patch, name-2.patch, name-3.patch, ...
--
___
Python tracker
<http://bugs.python.org/issue1172
STINNER Victor added the comment:
> Indeed. Thanks. I wish it had been in the documentation. :) This is yet
> another reason for me to check how I can submit patches to the doc. :)
Read http://docs.python.org/devguide/ to learn how to get the source of
the documentation and how to w
STINNER Victor added the comment:
> - if the ancillay data is truncated, struct.unpack will raise an exception
Well, the current C code doesn't check that the data is truncated and it
works correctly, so I don't think that it would be different in Python.
And yes, Python adds a
STINNER Victor added the comment:
> that’s why I posted a patch six weeks ago and asked for a review
Oh ok, cool, I missed the patches.
--
___
Python tracker
<http://bugs.python.org/issu
Changes by STINNER Victor :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue12986>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
The patch looks correct. Did you try it on Linux, FreeBSD and/or Windows?
--
___
Python tracker
<http://bugs.python.org/issue12
STINNER Victor added the comment:
- Click on "Server-side clone" on http://hg.python.org/cpython
- on your computer, hg clone default myclone # default if your local clone of
cpython, default branch
- cd myclone; edit code; hg ci
- edit .hg/hgrc to update the repository URL
Changes by STINNER Victor :
--
resolution: -> wont fix
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue12960>
___
___
Python-bugs-
STINNER Victor added the comment:
Martin dropped _XOPEN_SOURCE in issue #1759169 (commit 7c947768b435).
--
FYI I changed configure(.in) to get _XOPEN_SOURCE to 700 on OpenBSD 5 to get
recent C functions like fdopendir():
# X/Open 7, incorporating POSIX.1-2008
AC_DEFINE(_XOPEN_SOURCE
STINNER Victor added the comment:
"Since the rewrite in pure Python of multiprocessing.Connection (issue #11743),
multiprocessing.Connection sends and receives the length of the data (used as
header) in host byte order."
I don't think so, the C code uses also the host endian.
STINNER Victor added the comment:
"It works fine on Linux, FreeBSD, OS X and Windows, but not on Solaris: see
issue #12999."
Oh, thank for testing before committing :) It's hard to debug multiprocessing.
--
___
Python
STINNER Victor added the comment:
@requires_freebsd_version should be factorized with @requires_linux_version.
Can we workaround FreeBSD (< 8) bug in C/Python? Or should we remove the
function on FreeBSD < 8?
--
___
Python tracker
STINNER Victor added the comment:
It's not me, it's Barry! (PEP 3147: 7b69e630d237)
--
nosy: +barry
___
Python tracker
<http://bugs.python.o
Changes by STINNER Victor :
--
nosy: +neologix
___
Python tracker
<http://bugs.python.org/issue13022>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from STINNER Victor :
cgitb module writes its output to sys.stdout by default and so encode its HTML
document into stdout encoding, whereas it doesn't specify the HTML encoding.
Moreover it uses stdout error handler. If the locale encoding is ASCII whereas
a filename i
New submission from STINNER Victor :
On Debian and Ubuntu, /etc/mime.types file is pure ASCII, but on Fedora 15 it
contains a non-ASCII character, ³ (U+00B3), in the line:
"application/vnd.geocube+xml g3 g³"
And the file is encoded in UTF-8.
That's why Pyt
Changes by STINNER Victor :
--
components: +Library (Lib), Unicode
___
Python tracker
<http://bugs.python.org/issue13025>
___
___
Python-bugs-list mailin
Changes by STINNER Victor :
--
components: +Unicode
nosy: +georg.brandl
___
Python tracker
<http://bugs.python.org/issue13024>
___
___
Python-bugs-list mailin
STINNER Victor added the comment:
> New changeset 672b63aff0f4 by Meador Inge in branch 'default'
Woops, I wrote the wrong module name. Thanks for fixing it.
--
___
Python tracker
<http://bugs.python.
STINNER Victor added the comment:
The list of file extensions is written in _PyImport_DynLoadFiletab constant.
This list depends on the OS. For Linux, the list is defined in:
Python/dynload_shlib.c.
I don't understand because in Python 2.7, Python/dynload_shlib.c doesn't
conta
New submission from STINNER Victor :
Python 3 uses wcsftime() to format a timestamp and decodes tzname[0] and
tzname[1] from UTF-8. The problem is that both methods format the quote
differently: U+0092 for wcsftime("%Z") and U+2019 in tzname[1].
>>> time.strftime("%Z
Changes by STINNER Victor :
--
nosy: +belopolsky
___
Python tracker
<http://bugs.python.org/issue13029>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
See also issue #10653.
--
___
Python tracker
<http://bugs.python.org/issue13029>
___
___
Python-bugs-list mailing list
Unsub
STINNER Victor added the comment:
See also issue #13029.
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue10653>
___
___
Python-bugs-list mailin
STINNER Victor added the comment:
"This new data does not crash Python 2.7.2, so I assume the issue has been
fixed."
Yes, the bug was already fixed in branch 2.7 by the SVN commit r87541:
changeset: 67185:54f1d5651555
branch: 2.7
parent: 67159:2d09af4c137c
user:
STINNER Victor added the comment:
"This fix is part of Python 2.7.2, but not of 2.7.2."
... but not of 2.7.1.
--
___
Python tracker
<http://bugs.python.o
Changes by STINNER Victor :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue12931>
___
___
Python-bugs-list
STINNER Victor added the comment:
Here is a patch for httplib encoding HTTP headers to ISO-8859-1, as done in
Python 3 (see HTTPConnection.putheader() from http.client). urllib is not
affected by this issue because it does already encode Unicode, but encode to
ASCII instead of ISO-8859-1
STINNER Victor added the comment:
socketcan_v4.patch:
- dummy question: why an address is a tuple with 1 string instead of just the
string? Does AF_UNIX also uses a tuple of 1 string?
- the example should also use struct.pack() to create the frame, I don't like
hardcoded BLOB
Changes by STINNER Victor :
--
versions: -Python 2.7, Python 3.2
___
Python tracker
<http://bugs.python.org/issue12746>
___
___
Python-bugs-list mailin
Changes by STINNER Victor :
--
components: +Unicode
___
Python tracker
<http://bugs.python.org/issue13056>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from STINNER Victor :
[ 62/359] test_multiprocessing
Warning -- threading._dangling was modified by test_multiprocessing
Warning -- multiprocessing.process._dangling was modified by
test_multiprocessing
test test_multiprocessing crashed -- Traceback (most recent call last
Changes by STINNER Victor :
--
title: Expose nanosecond precision from system calls -> os.stat(): add new
fields to get timestamps as Decimal objects with nanosecond resolution
___
Python tracker
<http://bugs.python.org/issu
Changes by STINNER Victor :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue13060>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
Issue fixed in Python 3.3 by Martin, changesets 40cf7204ca2b and 50f008019213.
--
nosy: +loewis
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
STINNER Victor added the comment:
As said on IRC, unicodesize and character_size should be 1 before the test is
something like 'x'*1. Or you can just remove this constant, it's not very
useful to have a constant equal to 1 :-)
--
___
STINNER Victor added the comment:
See also issue #13059.
--
___
Python tracker
<http://bugs.python.org/issue13063>
___
___
Python-bugs-list mailing list
Unsub
STINNER Victor added the comment:
See also issue #13063.
--
___
Python tracker
<http://bugs.python.org/issue13059>
___
___
Python-bugs-list mailing list
Unsub
New submission from STINNER Victor :
Re-running test 'test_concurrent_futures' in verbose mode
test_killed_child (test.test_concurrent_futures.ProcessPoolExecutorTest) ...
5.79s ok
test_map (test.test_concurrent_futures.ProcessPoolExecutorTest) ... 3.63s ok
test_map
STINNER Victor added the comment:
The PEP 393 has been accepted: strings are now stored as PyUCS1*, PyUCS2* or
PyUCS4*. The Py_UNICODE type still exist but is deprecated, and only used in
the legacy API. Py_UNICODE is now always the wchar_t type, it cannot be
unsigned int anymore. I hope
STINNER Victor added the comment:
The PEP 393 has been accepted. There is no more narrow or wide build,
Py_UNICODE is now always wchar_t.
We have also a stable ABI which doesn't depend on the internal stucture of
Unicode strings.
In Python 3.2, the name of dynamic libraries is
STINNER Victor added the comment:
The PEP 393 changed the API:
#define _PyUnicode_AsString PyUnicode_AsUTF8
#define _PyUnicode_AsStringAndSize PyUnicode_AsUTF8AndSize
--
___
Python tracker
<http://bugs.python.org/issue2
STINNER Victor added the comment:
The PEP 393 is based on the idea proposed in this issue (use only one memory
block, not two), but also enhanced it to reduce more the memory using other
technics:
- use a different character type depending on the maximum character,
- use a shorter
STINNER Victor added the comment:
Hum, the issue is still open, I will try to review it.
--
___
Python tracker
<http://bugs.python.org/issue7330>
___
___
Pytho
Changes by STINNER Victor :
--
title: Unicode Fallback Encoding on Python 3.3 -> TextIOWrapper: Unicode
Fallback Encoding on Python 3.3
___
Python tracker
<http://bugs.python.org/issu
Changes by STINNER Victor :
--
title: Windows GPF with Code Page 65001 -> Python 3 doesn't support cp65001 as
the OEM code page
___
Python tracker
<http://bugs.python.org
STINNER Victor added the comment:
The PEP 393 has been accepted and merge into Python 3.3. Python 3.3 doesn't
need the Py_UNICODE_NEXT macro anymore. But my macros (unicode_macros.patch)
are still useful.
--
versions: +Python 3.2 -Pytho
STINNER Victor added the comment:
This issue has been fixed in Python 3.3 thanks to the PEP 393.
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue10
STINNER Victor added the comment:
PEP 393 has been accepted and merged into Python 3.3.
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
New submission from STINNER Victor :
We really need a new API for error handlers, using Python objects instead of
Py_UNICODE* strings, and using code point indexes instead of UTF-16 unit
indexes (index in the Py_UNICODE* object). It's also inefficient to encode to
Py_UNICODE at the
New submission from STINNER Victor :
In Python 3.2, when you get a buffer from array.array('u'), "u" is used as
buffer format. The format is supposed to be a format from the struct module,
and "u" is an invalid struct format. "w" is used on wide mode.
Changes by STINNER Victor :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue3232>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from STINNER Victor :
getstring() of the _sre module contains the following code:
-
...
buffer = Py_TYPE(string)->tp_as_buffer;
if (!buffer || !buffer->bf_getbuffer ||
(*buffer->bf_getbuffer)(string, &view, PyBU
STINNER Victor added the comment:
WakeupSignalTests.test_pending() doesn't really check our signal handler but
more the operating system, especially pthread_sigmask(SIG_UNBLOCK). I don't
think that Python should test the signal order delivered by the operating
systems when S
STINNER Victor added the comment:
I suppose that the application uses extensions written in C and one on these
extensions is buggy. Can you write a script to reproduce the bug without the
application? If not, we cannot help you :-(
You may try the faulthandler to get more information:
https
New submission from STINNER Victor :
CPython source code contains a lot of duplicate "0123456789abcdef" constants,
declared as static variables. Attached patch uses one unique variable. Use also
Py_hexdigit instead of ((c>9) ? c+'a'-10 : c + '0') in binascii,
STINNER Victor added the comment:
> The automatic conversion of 'u' to 'I' or 'L' causes test_buffer
> (PEP-3118 repo) to fail:
>
>
> # Not implemented formats. Ugly, but inevitable. This is the same as
> # issue #2531: equality is also used for
STINNER Victor added the comment:
> "OSError: [Errno 23] Too many open files in system"
Yes, see issue #10348.
--
___
Python tracker
<http://bugs.pytho
STINNER Victor added the comment:
> Attached patch.
Could you please explain your change in generrmap.c in a comment? For example,
just add a reference to this issue.
--
___
Python tracker
<http://bugs.python.org/issu
New submission from STINNER Victor :
The following comment is wrong,
except IndexError:
# non-BMP characters; XXX now they should work
return charset
sys.maxunicode != 65535 is now always true in Python 3.3
if sys.maxunicode != 65535:
# XXX: negation
STINNER Victor added the comment:
> I agree with Martin here. We should *NOT* have first
> and second class OS support, if we can avoid it.
Ok but who will do the job? If nobody is motivated to fix compiler issues, it
would be a pity to not add the module for that.
--
nosy:
801 - 900 of 35168 matches
Mail list logo