Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

free: invalid pointer on graph and photo.message imports #88327

Closed
hazcod mannequin opened this issue May 17, 2021 · 2 comments
Closed

free: invalid pointer on graph and photo.message imports #88327

hazcod mannequin opened this issue May 17, 2021 · 2 comments
Labels
3.9 only security fixes stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@hazcod
Copy link
Mannequin

hazcod mannequin commented May 17, 2021

BPO 44161
Nosy @tiran, @hazcod

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2021-05-17.21:31:00.118>
created_at = <Date 2021-05-17.21:12:30.485>
labels = ['library', '3.9', 'type-crash']
title = 'free: invalid pointer on graph and photo.message imports'
updated_at = <Date 2021-05-17.21:31:00.116>
user = 'https://github.com/hazcod'

bugs.python.org fields:

activity = <Date 2021-05-17.21:31:00.116>
actor = 'christian.heimes'
assignee = 'none'
closed = True
closed_date = <Date 2021-05-17.21:31:00.118>
closer = 'christian.heimes'
components = ['Library (Lib)']
creation = <Date 2021-05-17.21:12:30.485>
creator = 'hazcod'
dependencies = []
files = []
hgrepos = []
issue_num = 44161
keywords = []
message_count = 2.0
messages = ['393830', '393835']
nosy_count = 2.0
nosy_names = ['christian.heimes', 'hazcod']
pr_nums = []
priority = 'normal'
resolution = 'third party'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue44161'
versions = ['Python 3.9']

@hazcod
Copy link
Mannequin Author

hazcod mannequin commented May 17, 2021

Ref googleapis/python-pubsub#414 (comment)

@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'>

@hazcod hazcod mannequin added 3.9 only security fixes stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump labels May 17, 2021
@tiran
Copy link
Member

tiran commented May 17, 2021

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.

@tiran tiran closed this as completed May 17, 2021
@tiran tiran closed this as completed May 17, 2021
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.9 only security fixes stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

1 participant