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 bstaletic
Recipients bstaletic
Date 2020-10-27.21:45:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603835126.45.0.754557085878.issue42176@roundup.psfhosted.org>
In-reply-to
Content
I can also reproduce the same problem with the ubuntu packaged python3, which is 3.8.5 on Ubuntu 20.04. The only problem is that, with a stripped library, you don't get line numbers in valgrind's output. Steps to repro:

1. apt install valgrind gcc python3-config
2. Save the same attached file from the first comment as test.c.
3. gcc $(python3-config --includes) $(python3-config --ldflags) -lpython3.8 -o python-error
4. PYTHONMALLOC=malloc valgrind ./python-error

Valgrind output:

==1200== Conditional jump or move depends on uninitialised value(s)
==1200==    at 0x4A7B37B: PyUnicode_Decode (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1200==    by 0x109264: main (in /python-error)
==1200==
==1200== Conditional jump or move depends on uninitialised value(s)
==1200==    at 0x4A7AE57: PyUnicode_AsEncodedString (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1200==    by 0x109280: main (in /python-error)

I have not checked earlier versions of python.
History
Date User Action Args
2020-10-27 21:45:26bstaleticsetrecipients: + bstaletic
2020-10-27 21:45:26bstaleticsetmessageid: <1603835126.45.0.754557085878.issue42176@roundup.psfhosted.org>
2020-10-27 21:45:26bstaleticlinkissue42176 messages
2020-10-27 21:45:26bstaleticcreate