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 hazcod
Recipients hazcod
Date 2021-05-17.21:12:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621285950.49.0.418651001882.issue44161@roundup.psfhosted.org>
In-reply-to
Content
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'>
History
Date User Action Args
2021-05-17 21:12:30hazcodsetrecipients: + hazcod
2021-05-17 21:12:30hazcodsetmessageid: <1621285950.49.0.418651001882.issue44161@roundup.psfhosted.org>
2021-05-17 21:12:30hazcodlinkissue44161 messages
2021-05-17 21:12:30hazcodcreate