On 01/30/2013 03:59 PM, Global Odey wrote: > On 1/30/13 1:25 AM, Paul Eggert wrote: >> Can you use GDB to debug the situation? > No. That is, I'm willing but apparently not able. >> Try running something like this: >> >> gdb test-getcwd >> b getcwd >> r >> fin >> p errno
> GDB didn't seem to offer up much. It was able to find getcwd (after loading > shared libraries) > and set the breakpoint but it would exit out (still with error code 7) before > reaching the break. What happens if you put a breakpoint on rpl_getcwd instead? Use "b rpl_getcwd". That should get Gnulib's getcwd instead of libc's.