This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Fwd: Time when the Heap snapshot is taken when dumping Core
- From: Pedro Alves <palves at redhat dot com>
- To: Abhishek Karoliya <abhikaro at gmail dot com>, gdb at sourceware dot org
- Date: Wed, 30 Jul 2014 15:52:24 +0100
- Subject: Re: Fwd: Time when the Heap snapshot is taken when dumping Core
- Authentication-results: sourceware.org; auth=none
- References: <CAEEVgBVDzEf3LH1_SxYyvMKy4K5v__Qvc1HmcOmkdyrTNt96LA at mail dot gmail dot com> <CAEEVgBVZa5s-gOJhj3Ps4nCBp3jKL4a38_Ai-HWz6RT5B6Vtdg at mail dot gmail dot com>
On 07/25/2014 04:23 PM, Abhishek Karoliya wrote:
> My question is:
> A) Is my theory correct?
It's plausible at least. Though I'd suspect a simpler
explanation is more likely.
> B) Am I right in presuming that the heap memory snapshot is not taken
> at the time crash (signal being raised) but at in the final moments of
> the process?
> C) Address/location that caused a SIGSEGV can still be used (by other threads)?
Both correct, though if you don't have a SIGSEGV handler, the race
window is very narrow.
--
Thanks,
Pedro Alves