Re: [PATCH v4 00/10] linux-user: Detect and report host crashes

2023-09-19 Thread Michael Tokarev
FWIW, there's an interesting read (suggested by iam_tj) https://stackoverflow.com/questions/39725138/strange-behaviour-while-wrapping-abort-system-call also https://drewdevault.com/2016/07/19/Using-Wl-wrap-for-mocking-in-C.html /mjt

Re: [PATCH v4 00/10] linux-user: Detect and report host crashes

2023-09-19 Thread Helge Deller
On 9/19/23 10:38, Richard Henderson wrote: On 9/19/23 10:26, Michael Tokarev wrote: 19.09.2023 11:00, Helge Deller wrote: .. Probably the right solution is to use qemu_abort() (and qemu_assert() etc), and maybe #define abort(x) qemu_abort(x).  Even if some way to redefine abort like the above

Re: [PATCH v4 00/10] linux-user: Detect and report host crashes

2023-09-19 Thread Richard Henderson
On 9/19/23 10:26, Michael Tokarev wrote: 19.09.2023 11:00, Helge Deller wrote: .. Probably the right solution is to use qemu_abort() (and qemu_assert() etc), and maybe #define abort(x) qemu_abort(x).  Even if some way to redefine abort like the above will work on glibc, it does not mean it will

Re: [PATCH v4 00/10] linux-user: Detect and report host crashes

2023-09-19 Thread Richard Henderson
On 9/18/23 16:05, Helge Deller wrote: On 9/12/23 12:34, Michael Tokarev wrote: 12.09.2023 12:45, Helge Deller: /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/13/../../../../lib64/libc.a(abort.o): in function `abort': (.text.unlikely+0x0): multiple definition of `abort';

Re: [PATCH v4 00/10] linux-user: Detect and report host crashes

2023-09-19 Thread Michael Tokarev
19.09.2023 11:00, Helge Deller wrote: .. Probably the right solution is to use qemu_abort() (and qemu_assert() etc), and maybe #define abort(x) qemu_abort(x).  Even if some way to redefine abort like the above will work on glibc, it does not mean it will work on *bsd and in other contexts.

Re: [PATCH v4 00/10] linux-user: Detect and report host crashes

2023-09-19 Thread Helge Deller
On 9/19/23 09:40, Michael Tokarev wrote: 18.09.2023 17:05, Helge Deller wrote: On 9/12/23 12:34, Michael Tokarev wrote: 12.09.2023 12:45, Helge Deller: /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/13/../../../../lib64/libc.a(abort.o): in function `abort': (.text.unlikely+0x0): multiple

Re: [PATCH v4 00/10] linux-user: Detect and report host crashes

2023-09-19 Thread Michael Tokarev
18.09.2023 17:05, Helge Deller wrote: On 9/12/23 12:34, Michael Tokarev wrote: 12.09.2023 12:45, Helge Deller: /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/13/../../../../lib64/libc.a(abort.o): in function `abort': (.text.unlikely+0x0): multiple definition of `abort';

Re: [PATCH v4 00/10] linux-user: Detect and report host crashes

2023-09-18 Thread Helge Deller
On 9/12/23 12:34, Michael Tokarev wrote: 12.09.2023 12:45, Helge Deller: /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/13/../../../../lib64/libc.a(abort.o): in function `abort': (.text.unlikely+0x0): multiple definition of `abort';

Re: [PATCH v4 00/10] linux-user: Detect and report host crashes

2023-09-12 Thread Michael Tokarev
12.09.2023 12:45, Helge Deller: /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/13/../../../../lib64/libc.a(abort.o): in function `abort': (.text.unlikely+0x0): multiple definition of `abort';

Re: [PATCH v4 00/10] linux-user: Detect and report host crashes

2023-09-12 Thread Helge Deller
On 9/9/23 21:12, Richard Henderson wrote: On 8/22/23 22:16, Richard Henderson wrote: More signal cleanups.  Mostly tested by temporarily adding an abort, divide by zero, undefined instruction, null dereference, within the implementation of a guest syscall to induce an error. Applied on top of

Re: [PATCH v4 00/10] linux-user: Detect and report host crashes

2023-09-09 Thread Richard Henderson
Ping. On 8/22/23 22:16, Richard Henderson wrote: More signal cleanups. Mostly tested by temporarily adding an abort, divide by zero, undefined instruction, null dereference, within the implementation of a guest syscall to induce an error. r~ Helge Deller (1): linux-user: Detect and

[PATCH v4 00/10] linux-user: Detect and report host crashes

2023-08-22 Thread Richard Henderson
More signal cleanups. Mostly tested by temporarily adding an abort, divide by zero, undefined instruction, null dereference, within the implementation of a guest syscall to induce an error. r~ Helge Deller (1): linux-user: Detect and report host crashes Richard Henderson (9): linux-user: