[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1290524475.2514.16.camel@pmpc1094.npm.ac.uk>
Date: Tue, 23 Nov 2010 15:01:15 +0000
From: "Mo Abrahams" <moab@....ac.uk>
To: <linux-kernel@...r.kernel.org>
Subject: PROBLEM: Kernel oops when overwriting a file being debugged in gdb
Kernel oops when overwriting a file being debugged in gdb.
(The easy answer to this is "don't do it", but the kernel should
possibly be able to deal with it)
Linux version 2.6.34.7-61.fc13.x86_64
(mockbuild@...-02.phx2.fedoraproject.org) (gcc version 4.4.4 20100630
(Red Hat 4.4.4-10) (GCC) ) #1 SMP Tue Oct 19 04:06:30 UTC 2010
gdb version GNU gdb (GDB) Fedora (7.1-34.fc13)
Kernel oops messages attached.
To replicate:
/* code.c */
#include <stdio.h>
int main(void) {
puts("hello\n");
return 0;
}
/*end of code*/
> gcc -ggdb3 -o one code.c && gcc -ggdb3 -o two code.c
> gdb one
break 3
run
(breaks at line)
> cp two one
KERNEL OOPS!
Mo Abrahams.
--------------------------------------------------------------------------------
Plymouth Marine Laboratory
Registered Office:
Prospect Place
The Hoe
Plymouth PL1 3DH
Website: www.pml.ac.uk
Registered Charity No. 1091222
PML is a company limited by guarantee
registered in England & Wales
company number 4178503
--------------------------------------------------------------------------------
This e-mail, its content and any file attachments are confidential.
If you have received this e-mail in error please do not copy, disclose it to any third party or use the contents or attachments in any way. Please notify the sender by replying to this e-mail or e-mail forinfo@....ac.uk and then delete the email without making any copies or using it in any other way.
The content of this message may contain personal views which are not the views of Plymouth Marine Laboratory unless specifically stated.
You are reminded that e-mail communications are not secure and may contain viruses. Plymouth Marine Laboratory accepts no liability for any loss or damage which may be caused by viruses.
--------------------------------------------------------------------------------
View attachment "kernel_oops.txt" of type "text/plain" (6497 bytes)
Powered by blists - more mailing lists