Re: reliable reproducer, was Re: core dump analysis

Michael Schmitz
2023-04-25T05:18:41Z

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.

As Stan and Finn report, it is actually used by recent m68k gcc version
12.2.0 (Debian 12.2.0-12):

> Debian/sid has this struct in asm-generic/ucontext.h --
>
> struct ucontext {
> unsigned long uc_flags;
> struct ucontext *uc_link;
> stack_t uc_stack;
> struct sigcontext uc_mcontext;
> sigset_t uc_sigmask; /* mask last for extensibility */
> };
>
> but that lacks uc_filler[] so it's not ideal. I adapted the definitions
> from the kernel source.

Time to move this into an uapi header, or is that more hassle than it's
worth?

Cheers,

Michael