![]() | |||||||||||||
Messages in this thread Patch in this message |
On Saturday 12 April 2003 09:13, Ken Brownfield wrote:
Hi Ken,
> I'm reproducing this as well when using gdb. Two oopses attached.
> This is with the ptrace patch applied to 2.4.20 (SMP/i386/P3).
Does the attached patch fixes the issue?
ciao, Marcdiff -Naurp linux-2.4.20/include/linux/sched.h linux-2.4.20-ptrace/include/linux/sched.h
--- linux-2.4.20/include/linux/sched.h 2003-03-20 14:35:49.000000000 +0100
+++ linux-2.4.20-ptrace/include/linux/sched.h 2003-04-07 18:20:45.000000000 +0200
@@ -478,7 +479,7 @@ struct task_struct {
#define PT_TRACESYSGOOD 0x00000008
#define PT_PTRACE_CAP 0x00000010 /* ptracer can follow suid-exec */
-#define is_dumpable(tsk) ((tsk)->task_dumpable && (tsk)->mm->dumpable)
+#define is_dumpable(tsk) ((tsk)->task_dumpable && (tsk)->mm && (tsk)->mm->dumpable)
/*
* Limit the stack by to some sane default: root can always | ||||||||||||
| Last update: 2005-03-22 12:34 [W:0.653 / U:0.030 seconds] ©2003-2008 Jasper Spaans | |||||||||||||