• Re: GRUB unexpected trap in Itanium

    From John Paul Adrian Glaubitz@21:1/5 to Pedro Miguel Justo on Fri Aug 11 10:30:01 2023
    Hello Pedro!

    On Fri, 2023-08-11 at 00:11 +0000, Pedro Miguel Justo wrote:
    It seems as a recent change has caused a regression on Itanium (ia64), rendering the platform unbootable. GRUB will crash very early with:


    ```
    Welcome to GRUB!

    7 0 0x00006B 0x000000000000001E unexpected trap
    7 0 0x000066 0x000000000000001E trap taken, number in ext PE
    7 0 0x00003C 0x0000000000005A00 trap taken, offset in ext PE
    ```

    I have bisected the issue and it resulted into the following change:

    ```
    06edd40db76bb78457ac26156ed5f7b62381bbe8 is the first bad commit
    commit 06edd40db76bb78457ac26156ed5f7b62381bbe8
    Author: Oliver Steffen <[email protected]>
    Date: Fri May 26 13:35:43 2023 +0200

    guid: Unify GUID types

    There are 3 implementations of a GUID in GRUB. Replace them with
    a common one, placed in types.h.

    It uses the "packed" flavor of the GUID structs, the alignment attribute
    is dropped, since it is not required.

    Signed-off-by: Oliver Steffen <[email protected]>
    Reviewed-by: Daniel Kiper <[email protected]>
    ```

    Thanks for bisecting this. Please always make sure to CC the original author of the patch so he becomes aware of the breakage that was introduced by his patch.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer
    `. `' Physicist
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)