Re: [PATCH v2 11/17] gdbstub: Try unlinking the unix socket before binding

2025-05-21 Thread Peter Maydell
On Wed, 21 May 2025 at 16:38, Daniel P. Berrangé wrote: > > On Wed, May 21, 2025 at 04:34:24PM +0100, Peter Maydell wrote: > > Also, mjt's packaging for Debian puts in some stubs for the > > offending getwpuid etc functions, which suppress the glib warnings > > (this is why he noticed this whereas

Re: [PATCH v2 11/17] gdbstub: Try unlinking the unix socket before binding

2025-05-21 Thread Daniel P . Berrangé
On Wed, May 21, 2025 at 04:34:24PM +0100, Peter Maydell wrote: > On Tue, 20 May 2025 at 23:22, Ilya Leoshkevich wrote: > > However, wasn't it already broken in this regard? > > With fccb744f41c69fec6fd92225fe907c6e69de5d44^ I get: > > > > [2/2] Linking target qemu-s390x > > /usr/bin/ld: /usr/lib64

Re: [PATCH v2 11/17] gdbstub: Try unlinking the unix socket before binding

2025-05-21 Thread Peter Maydell
On Tue, 20 May 2025 at 23:22, Ilya Leoshkevich wrote: > However, wasn't it already broken in this regard? > With fccb744f41c69fec6fd92225fe907c6e69de5d44^ I get: > > [2/2] Linking target qemu-s390x > /usr/bin/ld: /usr/lib64/libglib-2.0.a(gutils.c.o): in function > `g_get_user_database_entry': > (.

Re: [PATCH v2 11/17] gdbstub: Try unlinking the unix socket before binding

2025-05-20 Thread Alex Bennée
Ilya Leoshkevich writes: > On 2025-05-20 15:50, Michael Tokarev wrote: >> 07.02.2025 18:31, Alex Bennée wrote: >>> From: Ilya Leoshkevich >>> In case an emulated process execve()s another emulated process, >>> bind() >>> will fail, because the socket already exists. So try deleting it. Use >>> t

Re: [PATCH v2 11/17] gdbstub: Try unlinking the unix socket before binding

2025-05-20 Thread Ilya Leoshkevich
On 2025-05-20 15:50, Michael Tokarev wrote: 07.02.2025 18:31, Alex Bennée wrote: From: Ilya Leoshkevich In case an emulated process execve()s another emulated process, bind() will fail, because the socket already exists. So try deleting it. Use the existing unix_listen() function which does th

Re: [PATCH v2 11/17] gdbstub: Try unlinking the unix socket before binding

2025-05-20 Thread Peter Maydell
On Tue, 20 May 2025 at 16:53, Alex Bennée wrote: > > Michael Tokarev writes: > > > 07.02.2025 18:31, Alex Bennée wrote: > >> From: Ilya Leoshkevich > >> In case an emulated process execve()s another emulated process, > >> bind() > >> will fail, because the socket already exists. So try deleting

Re: [PATCH v2 11/17] gdbstub: Try unlinking the unix socket before binding

2025-05-20 Thread Alex Bennée
Michael Tokarev writes: > 07.02.2025 18:31, Alex Bennée wrote: >> From: Ilya Leoshkevich >> In case an emulated process execve()s another emulated process, >> bind() >> will fail, because the socket already exists. So try deleting it. Use >> the existing unix_listen() function which does this. L

Re: [PATCH v2 11/17] gdbstub: Try unlinking the unix socket before binding

2025-05-20 Thread Michael Tokarev
07.02.2025 18:31, Alex Bennée wrote: From: Ilya Leoshkevich In case an emulated process execve()s another emulated process, bind() will fail, because the socket already exists. So try deleting it. Use the existing unix_listen() function which does this. Link qemu-user with qemu-sockets.c and ad

[PATCH v2 11/17] gdbstub: Try unlinking the unix socket before binding

2025-02-07 Thread Alex Bennée
From: Ilya Leoshkevich In case an emulated process execve()s another emulated process, bind() will fail, because the socket already exists. So try deleting it. Use the existing unix_listen() function which does this. Link qemu-user with qemu-sockets.c and add the monitor_get_fd() stub. Note that