On Sat, Feb 22, 2025 at 01:07:40PM +0100, Samuel Thibault wrote: > Zhaoming Luo, le sam. 22 févr. 2025 20:03:12 +0800, a ecrit: > > On Sat, Feb 22, 2025 at 12:47:16PM +0100, Samuel Thibault wrote: > > > Zhaoming Luo, le sam. 22 févr. 2025 19:29:55 +0800, a ecrit: > > > > lib533.c:96 select() failed, with errno 1073741828 (Interrupted system > > > > call) > > > > > > This is expected if the test handles a signal. Does it indeed set up a > > > signal handler and get a signal? > > > > > Eh 'handles a signal' is a bit out of my knowledge, how to confirm that? And > > any recommendations reading about the 'signal handler' and 'signal'? > > This is about unix signals. > > Usually gdb already shows their reception when you run the program. > I run it on GNU/Linux. I don't think I see the reception of any signal.
Here is the output: ``` Using host libthread_db library "/usr/lib/libthread_db.so.1". URL: ftp://127.0.0.1:39427/path/546 * !!! WARNING !!! * This is a debug build of libcurl, do not use in production. Start at URL 0 * STATE: INIT => SETUP handle 0x5555556b0f38; line 2393 * STATE: SETUP => CONNECT handle 0x5555556b0f38; line 2409 * Added connection 0. The cache now contains 1 members * STATE: CONNECT => CONNECTING handle 0x5555556b0f38; line 2324 * Trying 127.0.0.1:39427... * Connected to 127.0.0.1 (127.0.0.1) port 39427 * STATE: CONNECTING => PROTOCONNECT handle 0x5555556b0f38; line 2447 * STATE: PROTOCONNECT => PROTOCONNECTING handle 0x5555556b0f38; line 2472 < 220- _ _ ____ _ < 220- ___| | | | _ \| | < 220- / __| | | | |_) | | < 220- | (__| |_| | _ {| |___ < 220 \___|\___/|_| \_\_____| > USER anonymous < 331 We are happy you popped in! > PASS f...@example.com < 230 Welcome you silly person > PWD < 257 "/" is current directory * Entry path is '/' * STATE: PROTOCONNECTING => DO handle 0x5555556b0f38; line 2493 > CWD path * STATE: DO => DOING handle 0x5555556b0f38; line 2074 < 250 CWD command successful. > EPSV * Connect data stream passively < 229 Entering Passive Mode (|||40257|) * Connecting to 127.0.0.1 (127.0.0.1) port 40257 * STATE: DOING => DOING_MORE handle 0x5555556b0f38; line 2515 * Trying 127.0.0.1:40257... * Connected 2nd connection to 127.0.0.1 port 40257 > TYPE I < 200 I modify TYPE as you wanted > SIZE 546 < 500 Can't check for file existence > RETR 546 < 550 the file doesn't exist * RETR response: 550 * multi_done[DOING_MORE]: status: 78 prem: 0 done: 0 * Remembering we are in dir "path/" * Curl_multi_closed, fd=6 multi is 0x5555556b25f8 * Curl_multi_closed, fd=6 entry is (nil) * Connection #0 to host 127.0.0.1 left intact Advancing to URL 1 * STATE: INIT => SETUP handle 0x5555556b0f38; line 2393 * STATE: SETUP => CONNECT handle 0x5555556b0f38; line 2409 * Re-using existing connection with host 127.0.0.1 * STATE: CONNECT => CONNECTING handle 0x5555556b0f38; line 2324 * STATE: CONNECTING => PROTOCONNECT handle 0x5555556b0f38; line 2447 * STATE: PROTOCONNECT => DO handle 0x5555556b0f38; line 2464 * Request has same path as previous transfer > EPSV * Connect data stream passively * STATE: DO => DOING handle 0x5555556b0f38; line 2074 < 229 Entering Passive Mode (|||34551|) * Connecting to 127.0.0.1 (127.0.0.1) port 34551 * STATE: DOING => DOING_MORE handle 0x5555556b0f38; line 2515 * Trying 127.0.0.1:34551... * Connected 2nd connection to 127.0.0.1 port 34551 > SIZE 546 < 213 51 > RETR 546 < 150 Binary data connection for 546 () (51 bytes). * Maxdownload = -1 * Getting file with size: 51 * STATE: DOING_MORE => DID handle 0x5555556b0f38; line 2539 * STATE: DID => PERFORMING handle 0x5555556b0f38; line 2564 data to see that FTP works so does it? * shutdown start on secondary connection * sendrecv_dl: we are done * nread <= 0, server closed connection, bailing * abort upload * STATE: PERFORMING => DONE handle 0x5555556b0f38; line 1997 * multi_done[DONE]: status: 0 prem: 0 done: 0 * Remembering we are in dir "path/" * Curl_multi_closed, fd=6 multi is 0x5555556b25f8 * Curl_multi_closed, fd=6 entry is (nil) < 226 File transfer complete * Connection #0 to host 127.0.0.1 left intact Test ended with result 0 [Inferior 1 (process 118453) exited normally] ``` Zhaoming