Re: strace broken?

Ingo Molnar (mingo@pc5829.hil.siemens.at)
Tue, 12 Nov 1996 09:48:06 +0100 (MET)


On Tue, 12 Nov 1996, Joseph Wade Breu wrote:

> Since upgrading to 2.1.8 from 2.0.25, I noticed that strace no longer works.
> Is there a newer version required for 2.1.8 or is there a bug somewhere?

[vger has munched my mail i guess]

heres a patch that fixes the problem:

--- linux-2.1.8.orig/arch/i386/kernel/entry.S Mon Nov 11 13:26:47 1996
+++ linux-2.1.8_private/arch/i386/kernel/entry.S Mon Nov 11 16:20:31 1996
@@ -317,6 +317,7 @@
RESTORE_ALL
ALIGN
tracesys:
+ movl $-ENOSYS,EAX(%esp)
call SYMBOL_NAME(syscall_trace)
movl ORIG_EAX(%esp),%eax
call SYMBOL_NAME(sys_call_table)(,%eax,4)