"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Tracey Emery <tracey@traceyemery.net>
Subject:
Re: sparc64 regress ulimit
To:
Christian Weisgerber <naddy@mips.inka.de>, gameoftrees@openbsd.org
Date:
Sat, 21 Jan 2023 07:15:56 -0700

Download raw body.

Thread
On Fri, Jan 20, 2023 at 11:17:49PM +0100, Stefan Sperling wrote:
> 
> Please run the test with this patch applied.
> The 'got checkout' process should spin when it happens and you should
> be able to get its list of open files with fstat -p $PID
> 
> diff /home/stsp/src/got
> commit - 7713cc5e4f5544e81909670d592e89526ed86c9b
> path + /home/stsp/src/got
> blob - 7e698531e6e75bd34bc4b2f0c280aded67f43de0
> file + lib/error.c
> --- lib/error.c
> +++ lib/error.c
> @@ -254,6 +254,10 @@ got_error(int code)
>  {
>  	size_t i;
>  
> +	if (code == GOT_ERR_PRIVSEP_NO_FD) {
> +		fprintf(stderr, "%s: no more privsep fds; spinning...\n", __func__);
> +		for (;;) sleep(1);
> +	}
>  	for (i = 0; i < nitems(got_errors); i++) {
>  		if (code == got_errors[i].code)
>  			return &got_errors[i];
> 

Huh! I had a bit of time to run the tests this morning. Afk for the rest
of the weekend. Have a good one.

-- 

Tracey Emery

odin$ fstat -p 38039
USER     CMD          PID   FD MOUNT        INUM  MODE         R/W    SZ|DV
got      got        38039 text /home/got  1607046  -r-xr-xr-x     r  1844797
got      got        38039   wd /home/got  3706847  drwxr-xr-x     r     1024
got      got        38039    0 /           26477  crw--w----    rw    ttyp3
got      got        38039    1 /tmp       544363  -rw-r--r--     w        0
got      got        38039    2 /home/got  3707790  -rw-r--r--     w    21847
got      got        38039    3 /tmp           10* -rw-------   rwp        0
got      got        38039    4 /tmp           11* -rw-------   rwp        0
got      got        38039    5 /tmp           12* -rw-------   rwp        0
got      got        38039    6 /tmp           13* -rw-------   rwp        0
got      got        38039    7 /tmp           14* -rw-------   rwp        0
got      got        38039    8 /tmp           15* -rw-------   rwp        0
got      got        38039    9 /tmp           16* -rw-------   rwp        0
got      got        38039   10 /tmp           17* -rw-------   rwp        0
got      got        38039   11 /tmp       544322  drwxr-xr-x   rep      512
got      got        38039   12 /tmp       544376  -rw-r--r--   rep     1296
got      got        38039   13 /tmp       544357  -rw-r--r--   rep      445
got      got        38039   14* unix stream 0x0
got      got        38039   15 /tmp       544370  -rw-r--r--  rwep        0
got      got        38039   16 /tmp           18* -rw-------   rwp        0
got      got        38039   17 /tmp           19* -rw-------   rwp        0
got      got        38039   18 /tmp           20* -rw-------   rwp        0
got      got        38039   19 /tmp           21* -rw-------   rwp        0
got      got        38039   20 /tmp           22* -rw-------   rwp        0
got      got        38039   21 /tmp           23* -rw-------   rwp        0
got      got        38039   22 /tmp           24* -rw-------   rwp        0
got      got        38039   23 /tmp           25* -rw-------   rwp        0
got      got        38039   24 /tmp       544322  drwxr-xr-x   rep      512
got      got        38039   25 /tmp       544376  -rw-r--r--   rep     1296
got      got        38039   26 /tmp       544357  -rw-r--r--   rep      445
got      got        38039   27* unix stream 0x0
odin$ fstat -p 74087
USER     CMD          PID   FD MOUNT        INUM  MODE         R/W    SZ|DV
got      got-read-pack 74087 text /home/got  1607041  -r-xr-xr-x     r   421659
got      got-read-pack 74087   wd /home/got  3706847  drwxr-xr-x     r     1024
got      got-read-pack 74087    0 /           26477  crw--w----    rw    ttyp3
got      got-read-pack 74087    1 /tmp       544363  -rw-r--r--     w        0
got      got-read-pack 74087    2 /home/got  3707790  -rw-r--r--     w    21847
got      got-read-pack 74087    3* unix stream 0x0
got      got-read-pack 74087    4 /tmp       544376  -rw-r--r--    rp     1296
got      got-read-pack 74087    5 /tmp       544376  -rw-r--r--    rp     1296
got      got-read-pack 74087    6 /tmp       544357  -rw-r--r--    rp      445
got      got-read-pack 74087    7 /tmp       544357  -rw-r--r--    rp      445
odin$ fstat -p 80914
USER     CMD          PID   FD MOUNT        INUM  MODE         R/W    SZ|DV
got      got-read-pack 80914 text /home/got  1607041  -r-xr-xr-x     r   421659
got      got-read-pack 80914   wd /home/got  3706847  drwxr-xr-x     r     1024
got      got-read-pack 80914    0 /           26477  crw--w----    rw    ttyp3
got      got-read-pack 80914    1 /tmp       544363  -rw-r--r--     w        0
got      got-read-pack 80914    2 /home/got  3707790  -rw-r--r--     w    21847
got      got-read-pack 80914    3* unix stream 0x0
got      got-read-pack 80914    4 /tmp       544376  -rw-r--r--    rp     1296
got      got-read-pack 80914    5 /tmp       544376  -rw-r--r--    rp     1296
got      got-read-pack 80914    6 /tmp       544357  -rw-r--r--    rp      445
got      got-read-pack 80914    7 /tmp       544357  -rw-r--r--    rp      445