GNU bug report logs -
#75459
31.0.50; scratch-igc: Breakpoint 1, terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=2147483647) at ./src/emacs.c:432
Previous Next
Reported by: Gregor Zattler <telegraph <at> gmx.net>
Date: Thu, 9 Jan 2025 11:21:01 UTC
Severity: normal
Found in version 31.0.50
Done: Pip Cet <pipcet <at> protonmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Pip Cet <pipcet <at> protonmail.com> writes:
> (root_frame () can return a NULL pointer in some contexts, but not in
> this one, so this is, at best, a *potential* null pointer dereference,
> or a suggested additional assertion. A "null pointer dereference"
> without a "potential" is reserved for code paths which can be proven
> to dereference a null pointer, not for code paths which cannot be proven
> not to. So this is a GCC bug.)
Okay. I think Eli had something similar, some months ago.
> Still investigating the others, but:
>
> In file included from json.c:31:
> igc.h:88:7: warning: redundant redeclaration of ‘igc_xnmalloc_ambig’ [-Wredundant-decls]
> 88 | void *igc_xnmalloc_ambig (ptrdiff_t nitems, ptrdiff_t item_size);
> | ^~~~~~~~~~~~~~~~~~
> In file included from json.c:28:
> lisp.h:6117:14: note: previous declaration of ‘igc_xnmalloc_ambig’ with type ‘void *(ptrdiff_t, ptrdiff_t)’ {aka ‘void *(long int, long int)’}
> 6117 | extern void *igc_xnmalloc_ambig (ptrdiff_t nitems, ptrdiff_t item_size);
> | ^~~~~~~~~~~~~~~~~~
> igc.h:90:6: warning: redundant redeclaration of ‘igc_xfree’ [-Wredundant-decls]
> 90 | void igc_xfree (void *p);
> | ^~~~~~~~~
> lisp.h:6118:13: note: previous declaration of ‘igc_xfree’ with type ‘void(void *)’
> 6118 | extern void igc_xfree (void *p);
> | ^~~~~~~~~
>
> seems annoying, but avoidable.
>
> I'll push a "fix", but I wanted to explain why first: new useless GCC
> warnings force us to do that.
Thanks for the explanation.
This bug report was last modified 167 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.