Hello community, here is the log from the commit of package elfutils for openSUSE:Factory checked in at 2019-05-12 11:31:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/elfutils (Old) and /work/SRC/openSUSE:Factory/.elfutils.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "elfutils" Sun May 12 11:31:44 2019 rev:72 rq:701262 version:0.176 Changes: -------- --- /work/SRC/openSUSE:Factory/elfutils/elfutils.changes 2019-02-24 16:55:31.568905035 +0100 +++ /work/SRC/openSUSE:Factory/.elfutils.new.5148/elfutils.changes 2019-05-12 11:31:49.057592211 +0200 @@ -1,0 +2,6 @@ +Tue May 7 07:49:14 UTC 2019 - Martin Liška <mli...@suse.cz> + +- Add gcc9-tests-Don-t-printf-a-known-NULL-symname.patch in order to + fix boo#1120864. + +------------------------------------------------------------------- New: ---- gcc9-tests-Don-t-printf-a-known-NULL-symname.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ elfutils.spec ++++++ --- /var/tmp/diff_new_pack.sqFGCP/_old 2019-05-12 11:31:50.669596930 +0200 +++ /var/tmp/diff_new_pack.sqFGCP/_new 2019-05-12 11:31:50.673596941 +0200 @@ -33,6 +33,7 @@ Source5: %{name}.keyring Patch1: disable-tests-with-ptrace.patch Patch2: cfi-fix.patch +Patch3: gcc9-tests-Don-t-printf-a-known-NULL-symname.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake @@ -137,6 +138,7 @@ %patch1 -p1 %endif %patch2 -p1 +%patch3 -p1 %build # Change DATE/TIME macros to use last change time of elfutils.changes ++++++ gcc9-tests-Don-t-printf-a-known-NULL-symname.patch ++++++ >From 6978871366465aac849a303b2ea05ff5ab602261 Mon Sep 17 00:00:00 2001 From: Mark Wielaard <m...@klomp.org> Date: Tue, 30 Apr 2019 20:36:39 +0200 Subject: [PATCH] tests: Don't printf a known NULL symname. GCC9 on 32bit systems might warn about '%s' directive argument is null for symname in backtrace.c. Just check whether symname is NULL. Signed-off-by: Mark Wielaard <m...@klomp.org> --- tests/ChangeLog | 4 ++++ tests/backtrace.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/backtrace.c b/tests/backtrace.c index ecf55830..36c8b8c4 100644 --- a/tests/backtrace.c +++ b/tests/backtrace.c @@ -185,7 +185,7 @@ frame_callback (Dwfl_Frame *state, void *frame_arg) symname = dwfl_module_addrname (mod, pc_adjusted); printf ("#%2d %#" PRIx64 "%4s\t%s\n", *framenop, (uint64_t) pc, - ! isactivation ? "- 1" : "", symname); + ! isactivation ? "- 1" : "", symname ?: "<null>"); pid_t tid = dwfl_thread_tid (thread); callback_verify (tid, *framenop, pc, symname, dwfl); (*framenop)++; -- 2.21.0