Re: curl testsuite 537

2025-03-05 Thread Zhaoming Luo
On Mon, Mar 03, 2025 at 01:27:50PM +0100, Samuel Thibault wrote: > Zhaoming Luo, le lun. 03 mars 2025 19:35:37 +0800, a ecrit: > > Test 537 on Hurd opens 0x4 file discriptors and close them[0]. > > The code is really odd. > > if(nitems > 0x7fff) > nitems = 0x4; > > I would have

Re: curl testsuite 537

2025-03-03 Thread Samuel Thibault
Zhaoming Luo, le lun. 03 mars 2025 19:35:37 +0800, a ecrit: > Test 537 on Hurd opens 0x4 file discriptors and close them[0]. The code is really odd. if(nitems > 0x7fff) nitems = 0x4; I would have rather understood if(nitems > 0x7fff) nitems = 0x8000; which will happ

Re: curl testsuite 537

2025-03-03 Thread Samuel Thibault
Zhaoming Luo, le lun. 03 mars 2025 19:35:37 +0800, a ecrit: > a dup() is executed[4]. The code line of [4] I think is where the issue > is. We ignored return value of __mach_port_mod_refs(). In this case we > indeed reached the limit of reference count[5], Oops :) This should indeed be fixed into

curl testsuite 537

2025-03-03 Thread Zhaoming Luo
Hi, The curl testsuite 537 does not fail, but it output a lot of 'deallocating a bogus port...' on the terminal. Test 537 on Hurd opens 0x4 file discriptors and close them[0]. The initial max number of file discriptor on Hurd is 1024[1]. Test 537 raises this number to unlimited s