[superh-gnu-discuss] Problems with gdbserver
Szafranek, Michael
Michael.Szafranek at emtrion.de
Wed Dec 8 13:14:09 UTC 2010
Hello,
I have also the same problem with gdb. At least it looks like the same. When I try to debug a simple program, it crashes with the following message:
Process /usr/local/bin/hello_world created; pid = 573
Listening on port 2000
Remote debugging from host 192.168.1.54
[ 35.916000] Unable to handle kernel NULL pointer dereference at virtual address 00000084
[ 35.924000] pc = 880049c2
[ 35.928000] *pde = 8e280000
[ 35.932000] Oops: 0001 [#1]
[ 35.932000] last sysfs file: /sys/devices/platform/sh_mobile_lcdc_fb.0/graphics/fb0/modes
[ 35.932000] Modules linked in: sh772x_gfx
[ 35.932000]
[ 35.932000] Pid : 570, Comm: gdbserver
[ 35.932000] CPU : 0 Not tainted (2.6.35em1+ #10)
[ 35.932000]
[ 35.932000] PC is at arch_ptrace+0x1e2/0x360
[ 35.932000] PR is at sys_ptrace+0x5e/0x120
[ 35.932000] PC : 880049c2 SP : 8e28ff84 SR : 40008100 TEA : c01099b0
[ 35.932000] R0 : 00000084 R1 : 00000000 R2 : 00000084 R3 : 00402000
[ 35.932000] R4 : 8f49aa00 R5 : 00000000 R6 : 00000084 R7 : 00000000
[ 35.932000] R8 : 8f49aa00 R9 : 00000000 R10 : 00000006 R11 : 8f49aa08
[ 35.932000] R12 : 000000e0 R13 : 00000000 R14 : 7bbf98cc
[ 35.932000] MACH: 00000004 MACL: 07382aed GBR : 296ed450 PR : 8802445e
[ 35.932000]
[ 35.932000] Call trace:
[ 35.932000] [<8802445e>] sys_ptrace+0x5e/0x120
[ 35.932000] [<88008216>] syscall_call+0xc/0x10
[ 35.932000] [<88024400>] sys_ptrace+0x0/0x120
[ 35.932000]
[ 35.932000] Process: gdbserver (pid: 570, stack limit = 8e28e001)
[ 35.932000] Stack: (0x8e28ff84 to 0x8e290000)
[ 35.932000] ff80: 8802445e 88008216 7bbf9920 296e97b8 00000000 00000071 00000100
[ 35.932000] ffa0: 88024400 7bbf9920 00000002 00000005 0000001a 00000006 0000023d 000000e0
[ 35.932000] ffc0: 00000000 00000006 00000017 0042345c 00000004 296e97b8 7bbf9920 7bbf98cc
[ 35.932000] ffe0: 7bbf98cc 2966af58 0040dbe4 00000101 296ed450 00000004 ffffffd0 00000050
[ 36.068000] ---[ end trace e81945113d99b498 ]---
[ 36.072000] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 36.072000] pc = 8800a090
[ 36.072000] *pde = 8e26b000
[ 36.072000] Oops: 0000 [#2]
[ 36.072000] last sysfs file: /sys/devices/platform/sh_mobile_lcdc_fb.0/graphics/fb0/modes
[ 36.072000] Modules linked in: sh772x_gfx
[ 36.072000]
[ 36.072000] Pid : 573, Comm: hello_world
[ 36.072000] CPU : 0 Tainted: G D (2.6.35em1+ #10)
[ 36.072000]
[ 36.072000] PC is at restore_fpu+0x10/0x80
[ 36.072000] PR is at __fpu_state_restore+0xe/0x40
[ 36.072000] PC : 8800a090 SP : 8e2c7f98 SR : 400000f0 TEA : 00000000
[ 36.072000] R0 : 000001ec R1 : 00000000 R2 : 00000000 R3 : 00000001
[ 36.072000] R4 : 8f49aa00 R5 : 00000000 R6 : 7ba55933 R7 : 295633e0
[ 36.072000] R8 : 8f49aa00 R9 : 880080ec R10 : 8800e120 R11 : 7ba55933
[ 36.072000] R12 : 29583004 R13 : 004105c0 R14 : 7ba55784
[ 36.072000] MACH: 0000002c MACL: 00000280 GBR : 296ed450 PR : 8800df0e
[ 36.072000]
[ 36.072000] Call trace:
[ 36.072000] [<8800e12c>] fpu_state_restore_trap_handler+0xc/0x20
[ 36.072000] [<880080ec>] ret_from_exception+0x0/0xc
[ 36.072000]
[ 36.072000] Process: hello_world (pid: 573, stack limit = 8e2c6001)
[ 36.072000] Stack: (0x8e2c7f98 to 0x8e2c8000)
[ 36.072000] 7f80: 8800e12c 400080f0
[ 36.072000] 7fa0: 880080ec 000000e0 00008f7e 00000000 79f8fcfc 7ba557e0 00000000 7ba55933
[ 36.072000] 7fc0: 295633e0 7ba55798 004001a1 29573168 7ba55933 29583004 004105c0 7ba55784
[ 36.072000] 7fe0: 7ba55784 2956cce2 29563d62 00000001 296ed450 0000002c 00000280 ffffffff
[ 36.224000] ---[ end trace e81945113d99b499 ]---
Segmentation fault
Any idea how to solve this problem?
________________________________
_____________________________________
Amtsgericht Mannheim
HRB 110 300
Gesch?ftsf?hrer: Dieter Baur, Ramona Maurer
_____________________________________
Important Note:
- This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information.
- If you have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited.
- Please inform us immediately and destroy the original transmittal.
Thank you for your cooperation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/superh-gnu-discuss/attachments/20101208/c6f3b370/attachment.html>
More information about the superh-gnu-discuss
mailing list