https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89868

--- Comment #6 from Jonny Grant <jg at jguk dot org> ---
(In reply to Andrew Pinski from comment #5)
> Actually it comes from the shell.
> 
> e.g. from bash:
>               if ((WIFSTOPPED (show->status) == 0) &&
>                   (WIFCONTINUED (show->status) == 0) &&
>                   WIFCORED (show->status))
>                 fprintf (stream, _("(core dumped) "));
> 
> As WIFCORED is set on status.
> 
> WIFCORED is really a define for WCOREDUMP.
> 
> http://man7.org/linux/man-pages/man2/waitpid.2.html
> 
> So basically the kernel does not communicate why a core is not dumped to the
> waiting (parent) process.

Hi Andrew
Thank you for tracking that down. It is a shame, there isn't a WCORETOOLARGE,
or WUNABLETOCOREDUMP etc..  I wonder really how big the core must be to be
unable to save

Could I ask, if you run the test case with Asan, do you see the same behaviour?

Reply via email to