lkml.org 
[lkml]   [1999]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: 2.2.0p6: ptrace problem?!
Date
> Used gdb to attach to a running process under 2.2.0p6. And promptly
> received 1000 lines of klog junk, most like
>
> Jan 9 21:23:23 localhost kernel: Process: ipop3d (stack=c14abe80,
> task=c14aa000)
> Jan 9 21:23:23 localhost kernel: [<c014e371>] [<c015b352>] [<c013f55e>]

IANAKH, but there's some debugging code in ptrace.c. You can turn it
off with the attached patch (mailed yesterday to Linus). The messages
show up when doing a normal strace, too.

--
Pete Harlan
harlan@pointofchoice.com

--- linux.orig/arch/i386/kernel/ptrace.c Sat Jan 9 12:12:51 1999
+++ linux/arch/i386/kernel/ptrace.c Sun Jan 10 05:03:25 1999
@@ -67,6 +67,7 @@
return 0;
}

+#ifdef DEBUG_PTRACE
extern int _stext, _etext;
static void print_child_state(struct task_struct *task)
{
@@ -93,6 +94,7 @@
}
printk("\n");
}
+#endif

/*
* This routine gets a long from any process space by following the page
@@ -400,7 +402,9 @@
read_unlock(&tasklist_lock); /* FIXME!!! */
if (!child)
goto out;
-print_child_state(child);
+#ifdef DEBUG_PTRACE
+ print_child_state(child);
+#endif
ret = -EPERM;
if (pid == 1) /* you may not mess with init */
goto out;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.032 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site