[New-bugs-announce] [issue43593] pymalloc is not aware of Memory Tagging Extension (MTE) and crashes

ggardet report at bugs.python.org
Mon Mar 22 09:29:47 EDT 2021


New submission from ggardet <guillaume.gardet at arm.com>:

When Memory Tagging Extension (MTE) [0] is enabled on aarch64, python malloc make programs to crash. 
I noticed it while trying to use GDB with MTE enabled in user-space [1], and gdb crashed on start-up. Rebuilding python (3.8) using '--without-pymalloc' option allows to workaround the problem. 
For glibc, you need version 2.33 or later and build glibc with '--enable-memory-tagging' option. I guess that patches similar to glibc's patches are required for pymalloc.

[0]: https://community.arm.com/developer/ip-products/processors/b/processors-ip-blog/posts/enhancing-memory-safety
[1]: https://en.opensuse.org/ARM_architecture_support#User-space_support

----------
components: Library (Lib)
messages: 389312
nosy: ggardet
priority: normal
severity: normal
status: open
title: pymalloc is not aware of Memory Tagging Extension (MTE) and crashes
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43593>
_______________________________________


More information about the New-bugs-announce mailing list