* [Bug translator/28778] New: printf() generated code causes GCC errors
@ 2022-01-13 21:24 ross at burtonini dot com
2022-01-13 23:35 ` [Bug translator/28778] " fche at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: ross at burtonini dot com @ 2022-01-13 21:24 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=28778
Bug ID: 28778
Summary: printf() generated code causes GCC errors
Product: systemtap
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: translator
Assignee: systemtap at sourceware dot org
Reporter: ross at burtonini dot com
Target Milestone: ---
With a trivial probe using printf:
probe oneshot { printf("Hello, %s\n", "world!") }
I get GCC errors:
In file included from /usr/share/systemtap/runtime/linux/print.c:18,
from /usr/share/systemtap/runtime/print.c:17,
from /usr/share/systemtap/runtime/runtime_context.h:22,
from /tmp/stapGu6dBo/stap_3672_src.c:54:
/usr/share/systemtap/runtime/vsprintf.c: In function
'_stp_vsprint_memory_size.constprop':
/usr/share/systemtap/runtime/vsprintf.c:413:23: error: 'strnlen' specified
bound 4294967295 may exceed maximum object size 2147483647
[-Werror=stringop-overread]
413 | len = strnlen(ptr, precision);
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/share/systemtap/runtime/vsprintf.c: In function
'_stp_vsprint_memory.constprop':
/usr/share/systemtap/runtime/vsprintf.c:341:23: error: 'strnlen' specified
bound 4294967295 may exceed maximum object size 2147483647
[-Werror=stringop-overread]
341 | len = strnlen(ptr, precision);
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Kernel 5.10.97, SystemTap 4.6, GCC 11.2 on qemu-system-arm (32-bit).
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-13 23:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-13 21:24 [Bug translator/28778] New: printf() generated code causes GCC errors ross at burtonini dot com
2022-01-13 23:35 ` [Bug translator/28778] " fche at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).