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.

classification
Title: free: invalid pointer on graph and photo.message imports
Type: crash Stage: resolved
Components: Library (Lib) Versions: Python 3.9
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, hazcod
Priority: normal Keywords:

Created on 2021-05-17 21:12 by hazcod, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg393830 - (view) Author: Niels Hofmans (hazcod) Date: 2021-05-17 21:12
Ref https://github.com/googleapis/python-pubsub/issues/414#issuecomment-842446505

@hazcod observed a fault when importing google.cloud.pubsub_v1 as above;

# strace python3 -c 'from google.cloud import pubsub_v1'
...
writev(2, [{iov_base="free(): invalid pointer", iov_len=23}, {iov_base="\n", iov_len=1}], 2free(): invalid pointer
) = 24
...
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=306, si_uid=0} ---
+++ killed by SIGABRT +++
Aborted
But importing google.cloud.pubsub_v1 isn't really required here; the fault can be reproduced with importing only these two dependencies...

python3 -c 'import proto.message, grpc;'
free(): invalid pointer
Aborted
Importing either by itself doesn't crash. Further, importing them in the other order doesn't crash. I do not understand why.

python3 -c 'import grpc, proto.message; print(grpc, proto.message)'
<module 'grpc' from '/usr/local/lib/python3.9/site-packages/grpc/__init__.py'> <module 'proto.message' from '/usr/local/lib/python3.9/site-packages/proto/message.py'>
msg393835 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-05-17 21:31
google.cloud, proto.message, and grpc are third party extensions. They are neither part of CPython and nor maintained by us. Please report the issue with authors and maintainers of the library.
History
Date User Action Args
2022-04-11 14:59:45adminsetgithub: 88327
2021-05-17 21:31:00christian.heimessetstatus: open -> closed

nosy: + christian.heimes
messages: + msg393835

resolution: third party
stage: resolved
2021-05-17 21:12:30hazcodcreate