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. After looking through test-getcwd.c, though, I don't know how that's possible. I can say for sure that when GDB was setting the breakpoint, it was finding libc's getcwd, not GNUlib's (based on its address).

That sort of thing.
Hopefully, this qualifies: Because I was unable to get anything else out of GDB (that was literally my first time ever using the program), I resorted to directly editing test-getcwd.c a few times and determined that errno gets set to ENOENT before triggering the failure.

Global Odey

Reply via email to