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

src/tcmalloc.cc:278] Attempt to free invalid pointer 0x7fc84f022d40 #5961

Closed
dodler opened this issue Mar 23, 2018 · 3 comments
Closed

src/tcmalloc.cc:278] Attempt to free invalid pointer 0x7fc84f022d40 #5961

dodler opened this issue Mar 23, 2018 · 3 comments
Labels
awaiting response (this tag is deprecated) This tag is deprecated while we figure out what to do with it

Comments

@dodler
Copy link

dodler commented Mar 23, 2018

Hi I have ubuntu 16 04
torchvision (0.2.0)
torch (0.3.1)
python 3.6
installed via pip
cuda 8.0
2xk80

I'm trying to do DataParallel over my model,
but this error occures during forward pass
however if i disable upsample and sigmoid all is working clearly.

how i init parallel model
net = nn.DataParallel(UNet(3, 1).cuda())
model forward

x1 = self.inc(x) x2 = self.down1(x1) x3 = self.down2(x2) x4 = self.down3(x3) x5 = self.down4(x4) x = self.up1(x5, x4) x = self.up2(x, x3) x = self.up3(x, x2) x = self.up4(x, x1) x = self.outc(x) x = self.upsample(x) x = self.sigmoid(x) return x

failes here
probs = net(X)

however it's all working fine without upsample and sigmoid
am i doing something wrong?

thanks in advance

@lwye
Copy link

lwye commented Mar 24, 2018

I also came across this problem under the same condition except installing pytorch with anaconda.
My problem occurred when forwarding nn.LSTMCell with cuda(). The cpu mode can work fine.

before this, I installed libtcmalloc-minimal4 to solve this problem #2314

Is there any solution?

@ailzhang
Copy link
Contributor

Hi @lwye @dodler , could any of you provide an minimal repro example? We can look into it.

@zou3519 zou3519 added the awaiting response (this tag is deprecated) This tag is deprecated while we figure out what to do with it label Apr 9, 2018
@ezyang
Copy link
Contributor

ezyang commented Sep 23, 2020

Guessing whatever it is, we've fixed it in the meantime. If you have a repro on recent version of PyTorch please feel free to reopen.

@ezyang ezyang closed this as completed Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response (this tag is deprecated) This tag is deprecated while we figure out what to do with it
Projects
None yet
Development

No branches or pull requests

5 participants