All of lore.kernel.org
 help / color / mirror / Atom feed
* Reproducible kernel panic using gcc
@ 2013-10-25  8:16 Guy Martin
  2013-10-25 14:31 ` Aw: " Helge Deller
  0 siblings, 1 reply; 8+ messages in thread
From: Guy Martin @ 2013-10-25  8:16 UTC (permalink / raw)
  To: linux-parisc

[-- Attachment #1: Type: text/plain, Size: 1609 bytes --]

Hi PA hackers,


Using a simple test program, I'm able to panic the kernel using gdb.

I've attached the test program. The output from the console is the 
following :

Bad Address (null pointer deref?): Code=6 regs=000000007e354370 
(Addr=0000000000000000)
CPU: 0 PID: 1605 Comm: gdb-crash Not tainted 3.10.6 #1
task: 000000007e354038 ti: 000000007e33c000 task.ti: 000000007e33c000

      YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00000000000001101111111000001111 Not tainted
r00-03  000000ff0006fe0f 0000000000000000 0000000000000000 
00000000faf02300
r04-07  00000000406d3b30 0000000000000000 00000000000c8e98 
00000000000c7a80
r08-11  00000000000c8e70 00000000000c8e70 000000000000006c 
0000000000000061
r12-15  00000000000c3100 0000000000000000 00000000000bf100 
00000000000c0900
r16-19  0000000000000000 00000000000c0900 000000000009f000 
0000000000000000
r20-23  0000000000010638 0000000000000000 0000000000010638 
00000000406d11b8
r24-27  00000000faf02034 00000000faf0202c 0000000000000000 
00000000000110e4
r28-31  00000000faf0230c 0000000000000001 0000000000000000 
0000000040143327
sr00-03  0000000000334000 0000000000334000 0000000000000000 
0000000000334000
sr04-07  0000000000334000 0000000000334000 0000000000334000 
0000000000334000

IASQ: 0000000000334000 0000000000334000 IAOQ: 0000000000000000 
0000000000000004
  IIR: 43ffff80    ISR: 0000000010240000  IOR: 000000f400b02308
  CPU:        0   CR30: 000000007e33c000 CR31: fe1eec3fc1ecdbed
  ORIG_R28: 0000000000000000
  IAOQ[0]:           (null)
  IAOQ[1]: 0x4
  RP(r2):           (null)
Backtrace:


There is no info from PIM.


Thanks,
   Guy

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gdb-crash.c --]
[-- Type: text/x-csrc; name=gdb-crash.c, Size: 329 bytes --]

/*
To reproduce :
# gcc -O0 -pipe -ggdb3 gdb-crash.c -o gdb-crash
# gdb gdb-crash
(gdb) break gdb-crash.c:24
(gdb) run
(gdb) set tp = {0,0}
*crash*
*/

#include <stdio.h>

struct test {
	int a;
	int b;
};

int main() {

	struct test tv = { 1, 1 };

	struct test *tp = &tv;

	printf("Test is %u, %u\n", tv.a, tv.b);

	return 0;
}

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-10-31 14:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-25  8:16 Reproducible kernel panic using gcc Guy Martin
2013-10-25 14:31 ` Aw: " Helge Deller
2013-10-28  9:00   ` Aw: Reproducible kernel panic using gdb Guy Martin
2013-10-28 14:30     ` James Bottomley
2013-10-28 15:08       ` Rolf Eike Beer
2013-10-29  5:06         ` James Bottomley
2013-10-29 20:37           ` Helge Deller
2013-10-31 14:35             ` Guy Martin

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.