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

[Bug] [Unity] Error with 'munmap_chunk(): invalid pointer' when importing 'torch' after importing 'tvm' #15669

Closed
Thrsu opened this issue Sep 5, 2023 · 2 comments
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug

Comments

@Thrsu
Copy link
Contributor

Thrsu commented Sep 5, 2023

I encountered an error when importing the 'torch' library in Python after importing 'tvm' previously. The error message displayed was "Error in `python': munmap_chunk(): invalid pointer: 0x00007f0c685b53f0". However, importing only 'tvm' without importing 'torch' beforehand or importing 'tvm' after importing 'torch' does not trigger the error.

Actual behavior

*** Error in `python': munmap_chunk(): invalid pointer: 0x00007f0c685b53f0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777f5)[0x7f0d11a467f5]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x1a8)[0x7f0d11a536e8]
/usr/lib/x86_64-linux-gnu/libLLVM-8.so.1(+0x161dc4c)[0x7f0cfb469c4c]
/lib/x86_64-linux-gnu/libc.so.6(+0x3a008)[0x7f0d11a09008]
/lib/x86_64-linux-gnu/libc.so.6(+0x3a055)[0x7f0d11a09055]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf7)[0x7f0d119ef847]
python(+0x1c24db)[0x55a5a61814db]
======= Memory map: ========
55a5a5fbf000-55a5a601a000 r--p 00000000 fd:00 177515246                  /workplace/software/miniconda3/envs/torch_gpu/bin/python3.7
55a5a601a000-55a5a61af000 r-xp 0005b000 fd:00 177515246                  /workplace/software/miniconda3/envs/torch_gpu/bin/python3.7
55a5a61af000-55a5a624d000 r--p 001f0000 fd:00 177515246                  /workplace/software/miniconda3/envs/torch_gpu/bin/python3.7
55a5a624e000-55a5a6251000 r--p 0028e000 fd:00 177515246                  /workplace/software/miniconda3/envs/torch_gpu/bin/python3.7
55a5a6251000-55a5a62ba000 rw-p 00291000 fd:00 177515246                  /workplace/software/miniconda3/envs/torch_gpu/bin/python3.7
...
Aborted (core dumped)

Environment

  • TVM version: v0.14.dev0-595-gfa0d35b
  • Python version: Python 3.7.10
  • torch version: 1.7.0

Steps to reproduce

import tvm
import torch

Triage

  • needs-triage

cc @quic-sanirudh

@Thrsu Thrsu added needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug labels Sep 5, 2023
@lhutton1
Copy link
Contributor

lhutton1 commented Sep 5, 2023

Hi @Thrsu perhaps you can try the suggestion here: #9362 (comment)

@Thrsu
Copy link
Contributor Author

Thrsu commented Sep 5, 2023

Hi @Thrsu perhaps you can try the suggestion here: #9362 (comment)

Thank you for your prompt response!

@Thrsu Thrsu closed this as completed Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug
Projects
None yet
Development

No branches or pull requests

2 participants