Re: [PATCH 5/6] GNU/Hurd: disable symbolize.

2025-02-07 Thread Yuqian Yang
On 2025-02-07 23:51, Samuel Thibault wrote: Yuqian Yang, le ven. 07 févr. 2025 23:27:01 +0800, a ecrit: I know this is due to the way of our kernel to handle file and memory. Do we have a good way to fix this, Not a trivial way. It'd need adding names to the kernel map entries, and setting t

Re: vim testsuite: Test_keep_pty_open V2

2025-02-07 Thread Zhaoming Luo
On Sat, Feb 08, 2025 at 08:55:31AM +0800, Zhaoming Luo wrote: > On Fri, Feb 07, 2025 at 01:57:01PM +0100, Samuel Thibault wrote: > > Zhaoming Luo, le ven. 07 févr. 2025 18:44:50 +0800, a ecrit: > > > This is V2 of figuring out the issue. V1 is abandoned due to my mistake, > > > but this time I can

Re: Should hurd_select returns directly when nfds == 0?

2025-02-07 Thread Zhaoming Luo
On Fri, Feb 07, 2025 at 03:00:08PM +0300, Sergey Bugaev wrote: > On Fri, Feb 7, 2025 at 2:36 PM Zhaoming Luo wrote: > > Hi, > > Hi, > > > Thread 4 hit Breakpoint 1, __GI___select (nfds=0, readfds=0x103cc20, > > writefds=0x103cc40, exceptfds=0x103cc60, timeout=0x103cc84) > > at ../sysdeps/ma

Re: vim testsuite: Test_keep_pty_open V2

2025-02-07 Thread Zhaoming Luo
On Fri, Feb 07, 2025 at 01:57:01PM +0100, Samuel Thibault wrote: > Zhaoming Luo, le ven. 07 févr. 2025 18:44:50 +0800, a ecrit: > > This is V2 of figuring out the issue. V1 is abandoned due to my mistake, > > but this time I can confirm the source of issue. This time I ran > > rpctrace directly on

Re: [PATCH 5/6] GNU/Hurd: disable symbolize.

2025-02-07 Thread Sergey Bugaev
On Fri, Feb 7, 2025 at 6:51 PM Samuel Thibault wrote: > Yuqian Yang, le ven. 07 févr. 2025 23:27:01 +0800, a ecrit: > > I know this is due to the way of our kernel to handle file and memory. > > Do we have a good way to fix this, > > Not a trivial way. It'd need adding names to the kernel map entr

Re: [PATCH 5/6] GNU/Hurd: disable symbolize.

2025-02-07 Thread Samuel Thibault
Yuqian Yang, le ven. 07 févr. 2025 23:27:01 +0800, a ecrit: > I know this is due to the way of our kernel to handle file and memory. > Do we have a good way to fix this, Not a trivial way. It'd need adding names to the kernel map entries, and setting them from mmap() and such functions that map fi

Re: [PATCH 5/6] GNU/Hurd: disable symbolize.

2025-02-07 Thread Yuqian Yang
When I fixed abseil[1] for Hurd, I disabled its debugging feature of finding the symbol of current functions or any other symbols.[2] It does not work on Hurd and its unit tests failed. It can be safely disabled and does not affect other functions of lib just like platforms that do not support it,

Re: vim testsuite: Test_keep_pty_open V2

2025-02-07 Thread Samuel Thibault
Zhaoming Luo, le ven. 07 févr. 2025 18:44:50 +0800, a ecrit: > This is V2 of figuring out the issue. V1 is abandoned due to my mistake, > but this time I can confirm the source of issue. This time I ran > rpctrace directly on vim, and used two printfs to locate the isatty(). > > ``` > printf ("Sta

Re: Should hurd_select returns directly when nfds == 0?

2025-02-07 Thread Sergey Bugaev
On Fri, Feb 7, 2025 at 2:36 PM Zhaoming Luo wrote: > Hi, Hi, > Thread 4 hit Breakpoint 1, __GI___select (nfds=0, readfds=0x103cc20, > writefds=0x103cc40, exceptfds=0x103cc60, timeout=0x103cc84) > at ../sysdeps/mach/hurd/select.c:31 > ``` > > When I continue, it hangs at mach_msg[0]: > > gdb

Should hurd_select returns directly when nfds == 0?

2025-02-07 Thread Zhaoming Luo
Hi, When I'm checking curl test 546. I found that it went into a situation that: ``` Thread 4 hit Breakpoint 1, __GI___select (nfds=0, readfds=0x103cc20, writefds=0x103cc40, exceptfds=0x103cc60, timeout=0x103cc84) at ../sysdeps/mach/hurd/select.c:31 ``` When I continue, it hangs at mach_msg

vim testsuite: Test_keep_pty_open V2

2025-02-07 Thread Zhaoming Luo
Hi, This is V2 of figuring out the issue. V1 is abandoned due to my mistake, but this time I can confirm the source of issue. This time I ran rpctrace directly on vim, and used two printfs to locate the isatty(). ``` printf ("Start isatty!\n"); if (mch_isatty(in)) channel->ch_to_be_closed |=