[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set_labels_identifiers_target -fsanitize=undefined error
From: |
Gavin Smith |
Subject: |
Re: set_labels_identifiers_target -fsanitize=undefined error |
Date: |
Mon, 13 Nov 2023 19:16:03 +0000 |
On Sun, Nov 12, 2023 at 12:41:58PM +0100, John Paul Adrian Glaubitz wrote:
> > diff tree.c.old tree.c -u
> > --- tree.c.old 2023-11-04 16:15:13.632755680 +0000
> > +++ tree.c 2023-11-04 16:16:36.211072521 +0000
> > @@ -43,7 +43,10 @@
> > if (obs_element_first)
> > obstack_free (&obs_element, obs_element_first);
> > else
> > - obstack_init (&obs_element);
> > + {
> > + obstack_alignment_mask (&obs_element) = 7; /* 8-byte alignment */
> > + obstack_init (&obs_element);
> > + }
> >
> > obs_element_first = obstack_alloc (&obs_element, sizeof (int));
> >
> >
> > Can you check if that works?
>
> Yes, I can confirm that this patch fixes the crash for me.
>
> Would be great if this fix could be included for the next release!
I've added it to the release branch so if there is ever a Texinfo 7.1.1
release, it will be included. In the current development code, there
are significant changes and obstacks don't appear to be used at all,
making it a moot point.
The problem should probably to be reported to the gnulib developers to
investigate why incorrectly aligned memory was being returned.
- [7.1] texi2any crashes with Bus Error on SPARC, John Paul Adrian Glaubitz, 2023/11/01
- Re: [7.1] texi2any crashes with Bus Error on SPARC, Sam James, 2023/11/01
- Re: [7.1] texi2any crashes with Bus Error on SPARC, Gavin Smith, 2023/11/04
- set_labels_identifiers_target -fsanitize=undefined error, Gavin Smith, 2023/11/04
- Re: set_labels_identifiers_target -fsanitize=undefined error, John Paul Adrian Glaubitz, 2023/11/04
- Re: set_labels_identifiers_target -fsanitize=undefined error, Sam James, 2023/11/04
- Re: set_labels_identifiers_target -fsanitize=undefined error, Sam James, 2023/11/04
- Re: set_labels_identifiers_target -fsanitize=undefined error, Gavin Smith, 2023/11/04
- Re: set_labels_identifiers_target -fsanitize=undefined error, Sam James, 2023/11/04
- Re: set_labels_identifiers_target -fsanitize=undefined error, John Paul Adrian Glaubitz, 2023/11/12
- Re: set_labels_identifiers_target -fsanitize=undefined error,
Gavin Smith <=
- obstack module has alignment issues on sparc? (Re: set_labels_identifiers_target -fsanitize=undefined error), Sam James, 2023/11/13
- Re: obstack module has alignment issues on sparc? (Re: set_labels_identifiers_target -fsanitize=undefined error), Bruno Haible, 2023/11/13
- Re: obstack module has alignment issues on sparc? (Re: set_labels_identifiers_target -fsanitize=undefined error), Jeffrey Walton, 2023/11/14
- Re: obstack module has alignment issues on sparc? (Re: set_labels_identifiers_target -fsanitize=undefined error), Jeffrey Walton, 2023/11/14
- Re: obstack module has alignment issues on sparc? (Re: set_labels_identifiers_target -fsanitize=undefined error), John Paul Adrian Glaubitz, 2023/11/14
- Re: obstack module has alignment issues on sparc? (Re: set_labels_identifiers_target -fsanitize=undefined error), Jeffrey Walton, 2023/11/14
- Re: obstack module has alignment issues on sparc? (Re: set_labels_identifiers_target -fsanitize=undefined error), Paul Eggert, 2023/11/14
- Re: obstack module has alignment issues on sparc? (Re: set_labels_identifiers_target -fsanitize=undefined error), Bruno Haible, 2023/11/14
- Re: obstack module has alignment issues on sparc? (Re: set_labels_identifiers_target -fsanitize=undefined error), Bruno Haible, 2023/11/14
- Re: obstack module has alignment issues on sparc? (Re: set_labels_identifiers_target -fsanitize=undefined error), Gavin Smith, 2023/11/15