Closed GoogleCodeExporter closed 9 years ago
} I think it's a internal allocate failure of tcmalloc.
Yes, that makes sense to me. I agree that it would be better if any internal
allocate failures in tcmalloc just caused the allocation to fail, rather than
dying
in this way. It sounds like, though, you're using the heap-profiler (and maybe
leak-checker?) as well. Is it possible the internal allocation error is coming
from
there? That's a more difficult situation to know how to deal with -- even if
tcmalloc itself worked well, if the heap-profiler needed memory and couldn't
get it,
what would be the right thing to do?
It would be great if you could post the stack-traces (if bad_alloc shows them?)
indicating where the failed allocs were coming from. This would help us change
them
to some other form, that won't raise an exception.
} By the way, I think it's a important capacity that it can generate a heap
} So I do some little hacks in
This is also a good point, and deserves its own bug report I think. Can you
re-file
this as a new issue?
Original comment by csilv...@gmail.com
on 24 Jun 2008 at 11:49
The exception was without call stack and didn't generate core file. It printed :
allocation failed: 12
terminate called after throwing an instance of 'std::bad_alloc'
what(): St9bad_alloc
And after install v0.98, the std::bad_alloc isn't thrown.
So I think you can close this issue.
Original comment by lxu4...@gmail.com
on 25 Jun 2008 at 7:47
Problems that resolve themselves! I love it. Closed.
Original comment by csilv...@gmail.com
on 25 Jun 2008 at 7:55
Original issue reported on code.google.com by
lxu4...@gmail.com
on 24 Jun 2008 at 12:14