Subject: bug#29070: 26.0.90; emacs-26.0.90 pretest

From: Noam Postavsky <[email-masked]>
Date: Mon, 30 Oct 2017 23:21:58 -0400

andrés ramírez <[email-masked]> writes:

> Hi Noam.
>> gdb --args ./emacs -Q
>> (gdb) run
>
> I have been able of debug it. The error seems to be inside this function. When doing M-x
> server-start. Any other tip for debugging it?
>
>   return file_attributes (AT_FDCWD, SSDATA (encoded), Qnil, filename,
> 			  id_format);
>
> Is it ok to pass this code?
>
>   if (err != 0)
>     return unbind_to (count, Qnil);

What do you mean by "to pass"?  Do you mean that err is not 0, so you
execute the return statement?  Or err is 0, so you go past it?

Since you are getting nil, I guess the you mean the first thing.  What
is 'err' at that point?  Is it the 'openat' or the 'fstat' call which
failed?

(gdb) p err