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

Segmentation fault (core dumped) #463

Open
fly520fly520 opened this issue Dec 2, 2020 · 4 comments
Open

Segmentation fault (core dumped) #463

fly520fly520 opened this issue Dec 2, 2020 · 4 comments

Comments

@fly520fly520
Copy link

My Code :

create example data,

x = torch.ones((1, 3, 112, 112)).cuda()

model_trt_new = TRTModule()

model_trt_new.load_state_dict(torch.load('face_trt.pth'))
y_trt_new = model_trt_new(x)

This code can run normally, but when it is finished, I will get an error message as follows:
Segmentation fault (core dumped)
And create a core.xxx file
I use gdb to open the core.xxx file and get the following information:
Core was generated by `python'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f9105d527d8 in ?? ()

@hmmlencat
Copy link

hello, i meet the same problem as you.
code can run normally, but when it is finished, I will get an error message as follows:
Segmentation fault
Also the results is not match with the torch's output
please give me some advice.

@comeeasy
Copy link

I have same issue too.. please solve it..

@Luizerko
Copy link

Hello!

I have the same problem as you guys. In my case it also happens when I import torch2trt library, regardless of what comes after. And actually the error varies a little bit, sometimes a Segmentation fault, but sometimes free(): invalid pointer or even munmap_chunk(): invalid pointer.

I hope someone can solve it.

PS: cuda 10.2, pythorch 1.1.0, tensorrt 7.0.0.11, torch2trt 0.3.0

@xinwangChen
Copy link

I have same issue too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants