* [PATCH] Disable the debug.exception-trace sysctl by default
@ 2005-07-28 6:53 Nicholas Miell
2005-08-03 9:03 ` Andi Kleen
0 siblings, 1 reply; 4+ messages in thread
From: Nicholas Miell @ 2005-07-28 6:53 UTC (permalink / raw)
To: Andi Kleen; +Cc: linux-kernel
debug.exception-trace causes a large amount of log spew when on, and
it's on by default, which is an irritation.
Here's a patch to turn it off.
--- linux-2.6.12/arch/x86_64/mm/fault.c.~1~ 2005-06-28
21:33:27.000000000 -0700
+++ linux-2.6.12/arch/x86_64/mm/fault.c 2005-07-27 23:46:10.000000000
-0700
@@ -284,7 +284,7 @@
}
int page_fault_trace = 0;
-int exception_trace = 1;
+int exception_trace = 0;
/*
* This routine handles page faults. It determines the address,
--
Nicholas Miell <nmiell@comcast.net>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Disable the debug.exception-trace sysctl by default
2005-07-28 6:53 [PATCH] Disable the debug.exception-trace sysctl by default Nicholas Miell
@ 2005-08-03 9:03 ` Andi Kleen
2005-08-03 19:39 ` Nicholas Miell
0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2005-08-03 9:03 UTC (permalink / raw)
To: Nicholas Miell; +Cc: Andi Kleen, linux-kernel
On Wed, Jul 27, 2005 at 11:53:30PM -0700, Nicholas Miell wrote:
> debug.exception-trace causes a large amount of log spew when on, and
> it's on by default, which is an irritation.
> Here's a patch to turn it off.
Rejected.
-Andi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Disable the debug.exception-trace sysctl by default
2005-08-03 9:03 ` Andi Kleen
@ 2005-08-03 19:39 ` Nicholas Miell
2005-08-03 19:50 ` Andi Kleen
0 siblings, 1 reply; 4+ messages in thread
From: Nicholas Miell @ 2005-08-03 19:39 UTC (permalink / raw)
To: Andi Kleen; +Cc: linux-kernel
On Wed, 2005-08-03 at 11:03 +0200, Andi Kleen wrote:
> On Wed, Jul 27, 2005 at 11:53:30PM -0700, Nicholas Miell wrote:
> > debug.exception-trace causes a large amount of log spew when on, and
> > it's on by default, which is an irritation.
>
> > Here's a patch to turn it off.
> Rejected.
Why?
Getting 5000 lines of
"inkscape[13137] trap int3 rip:425051 rsp:7fffffa26158 error:0"
in my logs every time I ltrace something is vastly irritating and serves
no useful purpose.
Admittedly, I can (and have) turned this off, but disabling it by
default will probably save somebody else the trouble of figuring out
where this crap is coming from and how to kill it.
--
Nicholas Miell <nmiell@comcast.net>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Disable the debug.exception-trace sysctl by default
2005-08-03 19:39 ` Nicholas Miell
@ 2005-08-03 19:50 ` Andi Kleen
0 siblings, 0 replies; 4+ messages in thread
From: Andi Kleen @ 2005-08-03 19:50 UTC (permalink / raw)
To: Nicholas Miell; +Cc: Andi Kleen, linux-kernel
On Wed, Aug 03, 2005 at 12:39:33PM -0700, Nicholas Miell wrote:
> On Wed, 2005-08-03 at 11:03 +0200, Andi Kleen wrote:
> > On Wed, Jul 27, 2005 at 11:53:30PM -0700, Nicholas Miell wrote:
> > > debug.exception-trace causes a large amount of log spew when on, and
> > > it's on by default, which is an irritation.
> >
> > > Here's a patch to turn it off.
> > Rejected.
>
> Why?
It is supposed to print normally silent segfaults. That improves
quality of software greatly because people actually notice them and
bugs get only fixed when they are noticed.
We started it early with the port, but it is still very useful.
Some misguided distributions unfortunately turn it off by default, but
I think they pay the price in general software quality.
>
> Getting 5000 lines of
> "inkscape[13137] trap int3 rip:425051 rsp:7fffffa26158 error:0"
> in my logs every time I ltrace something is vastly irritating and serves
> no useful purpose.
Normally it's not supposed to print anything when the process is under control of
a debugger. But we made an exception for strace.
Unfortunately that triggers with ltrace because it uses PTRACE_SYSCALL instead
of PTRACE_CONT.
Anyways, this patch would fix that:
Index: linux/arch/x86_64/mm/fault.c
===================================================================
--- linux.orig/arch/x86_64/mm/fault.c
+++ linux/arch/x86_64/mm/fault.c
@@ -211,9 +211,7 @@ int unhandled_signal(struct task_struct
{
if (tsk->pid == 1)
return 1;
- /* Warn for strace, but not for gdb */
- if (!test_ti_thread_flag(tsk->thread_info, TIF_SYSCALL_TRACE) &&
- (tsk->ptrace & PT_PTRACED))
+ if (tsk->ptrace & PT_PTRACED)
return 0;
return (tsk->sighand->action[sig-1].sa.sa_handler == SIG_IGN) ||
(tsk->sighand->action[sig-1].sa.sa_handler == SIG_DFL);
> Admittedly, I can (and have) turned this off, but disabling it by
> default will probably save somebody else the trouble of figuring out
> where this crap is coming from and how to kill it.
Giving some other users with the pleasure to figure why things mysteriously
break with silent segfaults. Not a good tradeoff.
-Andi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-08-03 19:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-28 6:53 [PATCH] Disable the debug.exception-trace sysctl by default Nicholas Miell
2005-08-03 9:03 ` Andi Kleen
2005-08-03 19:39 ` Nicholas Miell
2005-08-03 19:50 ` Andi Kleen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.