[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: obstack module has alignment issues on sparc? (Re: set_labels_identi
|
From: |
Bruno Haible |
|
Subject: |
Re: obstack module has alignment issues on sparc? (Re: set_labels_identifiers_target -fsanitize=undefined error) |
|
Date: |
Tue, 14 Nov 2023 04:36:24 +0100 |
Sam James wrote:
> It appears that the obstack gnulib module is the culprit.
When I compile texinfo-7.1 in such a way that is uses the obstack facility
from glibc (via 'gl_cv_func_obstack=yes ../configure ...'), I see the same
bus error as in a build where the obstack facility comes from gnulib.
Therefore, if it is a bug in gnulib, it is also a bug in glibc.
But since obstack_alignment_mask is explicitly documented [1] as a means to
change the alignment, I wonder whether it is a bug at all?
[1] also says: "By default, this boundary is aligned so that the object can
hold any type of data." Needs to be investigated in more depth...
Bruno
[1]
https://www.gnu.org/software/libc/manual/html_node/Obstacks-Data-Alignment.html