Hi,

So I follow following instructions to setup remap on a new pfinet
instance and debug curl testsuite 546:

```
# Setup the translator pfinet which is going to be debugged
settrans -fgaPc /tmp/2 /usr/bin/env LD_LIBRARY_PATH=/usr/lib/debug 
/home/1speaker/hurd/build/pfinet/pfinet

# Open a new window in tmux using Ctrl+B

# Attach gdb to the pfinet translator in the new window
gdb /home/1speaker/hurd/build/pfinet/pfinet --pid=<PID>

# Open a new window in tmux using Ctrl+B

# Enter the environment where /servers/socket/2 is replaced by /tmp/2
remap /servers/socket/2 /tmp/2 -- bash

# Start the debugging of curl testsuite 546
cd $(curl_source)/tests; ./runtests.pl -g 546

# Happy Debugging Time!
```

The program './runtests.pl -g 546' stopped at [0] several times before
the test is really running, so I think some preparations involved
io_select_common. However, after the test is running, I set a breakpoint
at [1](it's like playing pingpong between two gdbs :-)). The test still
stops at [0] several times, so I think it's quite hard to find which
EINTR caused the failure.

[0]: https://git.savannah.gnu.org/cgit/hurd/hurd.git/tree/pfinet/io-ops.c#n298
[1]: https://github.com/curl/curl/blob/master/tests/libtest/lib533.c#L100

Best,
Zhaoming


Reply via email to