[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD
From: |
Helmut Eller |
Subject: |
Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD |
Date: |
Tue, 16 Jul 2024 16:19:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Tue, Jul 16 2024, Gerd Möllmann wrote:
> That's probably a misunderstanding. I'm thinking about a block of memory
> containing references, and the alignment of these references, not the
> alignment of the block.
>
> Example with sizeof(int) = 4, and sizeof(void *) = 8
>
> struct x
> {
> int x;
> struct Lisp_Symbol *s;
> };
>
> What about the offset of x::s?
That's not a problem because offsetof(struct x, s) = 8. There are 4
bytes padding after x. A problem could be if an unaligned void* is cast
to a struct Lisp_Symbol*; let's hope that nobody does that.
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, (continued)
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Pip Cet, 2024/07/14
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Gerd Möllmann, 2024/07/14
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Gerd Möllmann, 2024/07/14
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Gerd Möllmann, 2024/07/16
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Eli Zaretskii, 2024/07/16
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Gerd Möllmann, 2024/07/16
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Eli Zaretskii, 2024/07/16
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Gerd Möllmann, 2024/07/16
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Eli Zaretskii, 2024/07/16
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Gerd Möllmann, 2024/07/16
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD,
Helmut Eller <=
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Gerd Möllmann, 2024/07/16
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Eli Zaretskii, 2024/07/16
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Pip Cet, 2024/07/16
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Gerd Möllmann, 2024/07/16
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Andrea Corallo, 2024/07/17
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Gerd Möllmann, 2024/07/17
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Gerd Möllmann, 2024/07/18
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Pip Cet, 2024/07/18
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Gerd Möllmann, 2024/07/18
- Re: MPS: assertion failed: header_type (h) != IGC_OBJ_FWD, Andrea Corallo, 2024/07/18