[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30855: 25.3; temacs fails with bus error during garbage collection
From: |
Andreas Schwab |
Subject: |
bug#30855: 25.3; temacs fails with bus error during garbage collection |
Date: |
Tue, 20 Mar 2018 16:26:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) |
On Mär 20 2018, Eli Zaretskii <eliz@gnu.org> wrote:
> So you are saying that we should be doing the below instead?
>
> diff --git a/src/alloc.c b/src/alloc.c
> index 9d0e2d3..18546ca 100644
> --- a/src/alloc.c
> +++ b/src/alloc.c
> @@ -4983,7 +4983,8 @@ mark_memory (void *start, void *end)
> for (pp = start; (void *) pp < end; pp += GC_POINTER_ALIGNMENT)
> {
> mark_maybe_pointer (*(void **) pp);
> - mark_maybe_object (*(Lisp_Object *) pp);
> + if ((intptr_t) pp % GCALIGNMENT == 0)
That should be alignof(Lisp_Object). A Lisp_Object only needs
Lisp_Object alignment. GCALIGNMENT is about the _value_ of a
Lisp_Object (ie. the address of the Lisp object that this Lisp_Object
points to).
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
- bug#30855: 25.3; temacs fails with bus error during garbage collection, Ulrich Mueller, 2018/03/19
- bug#30855: 25.3; temacs fails with bus error during garbage collection, Eli Zaretskii, 2018/03/19
- bug#30855: 25.3; temacs fails with bus error during garbage collection, Ulrich Mueller, 2018/03/20
- bug#30855: 25.3; temacs fails with bus error during garbage collection, Eli Zaretskii, 2018/03/20
- bug#30855: 25.3; temacs fails with bus error during garbage collection,
Andreas Schwab <=
- bug#30855: 25.3; temacs fails with bus error during garbage collection, Eli Zaretskii, 2018/03/20
- bug#30855: 25.3; temacs fails with bus error during garbage collection, Paul Eggert, 2018/03/20
- bug#30855: 25.3; temacs fails with bus error during garbage collection, Eli Zaretskii, 2018/03/20
- bug#30855: 25.3; temacs fails with bus error during garbage collection, Ulrich Mueller, 2018/03/20
- bug#30855: 25.3; temacs fails with bus error during garbage collection, Paul Eggert, 2018/03/20
- bug#30855: 25.3; temacs fails with bus error during garbage collection, Eli Zaretskii, 2018/03/21