Re: reliable reproducer, was Re: core dump analysis

2023-04-22 Thread Michael Schmitz
Hi Andreas, Am 23.04.2023 um 08:46 schrieb Andreas Schwab: On Apr 23 2023, Michael Schmitz wrote: I'll see whether the signal context is available on the stack even if the handler isn't passed that parameter. The signal context is always on the stack, and used by the (rt_)sigreturn syscall.

Re: reliable reproducer, was Re: core dump analysis

2023-04-22 Thread Andreas Schwab
On Apr 23 2023, Michael Schmitz wrote: > I'll see whether the signal context is available on the stack even if the > handler isn't passed that parameter. The signal context is always on the stack, and used by the (rt_)sigreturn syscall. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerpri

Re: reliable reproducer, was Re: core dump analysis

2023-04-22 Thread Michael Schmitz
Hi Andreas, Am 23.04.2023 um 06:38 schrieb Andreas Schwab: On Apr 23 2023, Michael Schmitz wrote: Now I wonder who adds sigmask ... and whether that's also ending up on the user stack. The kernel only writes the first 64 bits of the signal mask, as it does for all signal mask related syscall

Re: reliable reproducer, was Re: core dump analysis

2023-04-22 Thread Andreas Schwab
On Apr 23 2023, Michael Schmitz wrote: > Now I wonder who adds sigmask ... and whether that's also ending up on the > user stack. The kernel only writes the first 64 bits of the signal mask, as it does for all signal mask related syscalls. The kernel version of the context ends after that; since

Re: reliable reproducer, was Re: core dump analysis

2023-04-22 Thread Michael Schmitz
Hi Andreas, Am 22.04.2023 um 22:12 schrieb Andreas Schwab: On Apr 22 2023, Michael Schmitz wrote: This is the definition from the kernel's include/uapi/asm-generic/ucontext.h: That's not actually used by m68k, it uses arch/m68k/include/asm/ucontext.h, which confusingly isn't an uapi header.

Re: reliable reproducer, was Re: core dump analysis

2023-04-22 Thread Andreas Schwab
On Apr 22 2023, Michael Schmitz wrote: > This is the definition from the kernel's > include/uapi/asm-generic/ucontext.h: That's not actually used by m68k, it uses arch/m68k/include/asm/ucontext.h, which confusingly isn't an uapi header. > And this is /usr/include/sys/ucontext.h: > > /* Userlevel

Re: reliable reproducer, was Re: core dump analysis

2023-04-22 Thread Michael Schmitz
Hi Finn, Am 22.04.2023 um 19:54 schrieb Michael Schmitz: Hi Finn, Am 21.04.2023 um 21:18 schrieb Michael Schmitz: Hi Finn, Am 21.04.2023 um 20:30 schrieb Finn Thain: On Fri, 21 Apr 2023, Michael Schmitz wrote: How often did a page fault happen when executing moveml, in other programs?

Re: reliable reproducer, was Re: core dump analysis

2023-04-22 Thread Andreas Schwab
On Apr 22 2023, Michael Schmitz wrote: > Took a little while to figure out that the ucontext format changed in the > decade or two since my userland's libc headers were generated. In which way did it change? -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510

Re: reliable reproducer, was Re: core dump analysis

2023-04-22 Thread Michael Schmitz
Hi Andreas, Am 22.04.2023 um 20:07 schrieb Andreas Schwab: On Apr 22 2023, Michael Schmitz wrote: Took a little while to figure out that the ucontext format changed in the decade or two since my userland's libc headers were generated. In which way did it change? This is the definition from

Re: reliable reproducer, was Re: core dump analysis

2023-04-22 Thread Michael Schmitz
Hi Finn, Am 21.04.2023 um 21:18 schrieb Michael Schmitz: Hi Finn, Am 21.04.2023 um 20:30 schrieb Finn Thain: On Fri, 21 Apr 2023, Michael Schmitz wrote: How often did a page fault happen when executing moveml, in other programs? The printk() I placed in bus_error030() was conditional on