diff --git a/SOURCES/ltrace-0.7.2-e_machine.patch b/SOURCES/ltrace-0.7.2-e_machine.patch new file mode 100644 index 0000000..a0859c4 --- /dev/null +++ b/SOURCES/ltrace-0.7.2-e_machine.patch @@ -0,0 +1,26 @@ +From 9534a7a09d5919369e16e4f7b69d2d200c8ee3dd Mon Sep 17 00:00:00 2001 +From: Petr Machata +Date: Thu, 13 Feb 2014 16:02:50 +0100 +Subject: Initialize struct process.e_machine and .e_class for secondary + threads + + +diff --git a/proc.c b/proc.c +index 6f4f64e..17bb3cd 100644 +--- a/proc.c ++++ b/proc.c +@@ -224,9 +224,11 @@ process_init(struct process *proc, const char *filename, pid_t pid) + goto fail; + } + +- if (proc->leader != proc) +- return 0; +- if (process_init_main(proc) < 0) { ++ if (proc->leader != proc) { ++ proc->e_machine = proc->leader->e_machine; ++ proc->e_class = proc->leader->e_class; ++ get_arch_dep(proc); ++ } else if (process_init_main(proc) < 0) { + process_bare_destroy(proc, 0); + goto fail; + } diff --git a/SPECS/ltrace.spec b/SPECS/ltrace.spec index 2467cbc..9d7a194 100644 --- a/SPECS/ltrace.spec +++ b/SPECS/ltrace.spec @@ -1,7 +1,7 @@ Summary: Tracks runtime library calls from dynamically linked executables Name: ltrace Version: 0.7.91 -Release: 15%{?dist} +Release: 16%{?dist} URL: http://ltrace.alioth.debian.org/ License: GPLv2+ Group: Development/Debuggers @@ -97,6 +97,10 @@ Patch21: ltrace-0.7.91-multithread-no-f-2.patch Patch22: ltrace-rh1225550.patch Patch23: ltrace-rh1225568.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=1064406 +# https://bugzilla.redhat.com/show_bug.cgi?id=1360259 +Patch24: ltrace-0.7.2-e_machine.patch + %description Ltrace is a debugging program which runs a specified command until the command exits. While the command is executing, ltrace intercepts and @@ -133,6 +137,7 @@ execution of processes. %patch21 -p1 %patch22 -p1 %patch23 -p1 +%patch24 -p1 %build %configure @@ -157,6 +162,9 @@ echo ====================TESTING END===================== %{_datadir}/ltrace %changelog +* Tue Jul 23 2019 DJ Delorie - 0.7.91-16 +- Fix crash when run on certain processes with the -S option (#1360259) + * Fri May 25 2018 DJ Delorie - 0.7.91-15 - Enable -w via libdw (#1449588)