Re: Fwd: Time when the Heap snapshot is taken when dumping Core
Abhishek Karoliya <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAEEVgBVE17RYYJU0aLXLH82nKs91J2YBZvOpKOz7WgxB0=v-Og@mail.gmail.com> |
Thanks! I am now sure that the core won't be generated up till the point abort() is called, which happens after we have printed out our diagnostics and heap parameters. To narrow down the race window you are talking about, we will have to sacrifice most of these. On 30 July 2014 20:22, Pedro Alves <[email protected]> wrote: > 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 >