Hi All,

I am trying KGDBOS on the below hardware using below setup

Hardware:
=======
ARM Versatile Express Boot Monitor
Version:    V5.1.2
Build Date: Jul 11 2012
Daughterboard Site 1: V2P-CA15_A7 Cortex A15

Kernel: kernel.org v3.4

But I am hitting the below issue after execution of "Continue" command
on "gdb".  I have also tried with the latest kernel.org kernel and
git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb.git but
ended up in the same below error

Is there any patch to resolve this issue ?? looks like some lock has
been held.  Can somebody please give me some suggestion ??

I will appreciate your help.


After connecting to minicom console:
==========================

Welcome to minicom 2.5

OPTIONS: I18n
Compiled on Jan 14 2012, 12:40:23.
Port /dev/ttyUSB0

Press CTRL-A Z for help on special keys

tty_ldisc_hangup: waiting (kworker/0:1) for ttyAMA0 took too long, but
we keep waiting...
INFO: task kworker/0:1:292 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this
message.
kworker/0:1     D 80314ee0     0   292      2 0x00000000
[<80314ee0>] (__schedule+0x200/0x470) from [<80313e0c>]
(schedule_timeout+0xe4/0x12c)
[<80313e0c>] (schedule_timeout+0xe4/0x12c) from [<80192ef8>]
(tty_ldisc_wait_idle+0x78/0xac)
[<80192ef8>] (tty_ldisc_wait_idle+0x78/0xac) from [<80193648>]
(tty_ldisc_hangup+0x13c/0x294)
[<80193648>] (tty_ldisc_hangup+0x13c/0x294) from [<8018c818>]
(__tty_hangup+0xc4/0x33c)
[<8018c818>] (__tty_hangup+0xc4/0x33c) from [<800326f0>]
(process_one_work+0x108/0x3b4)
[<800326f0>] (process_one_work+0x108/0x3b4) from [<80032c98>]
(worker_thread+0x150/0x3f8)
[<80032c98>] (worker_thread+0x150/0x3f8) from [<800367bc>] (kthread+0xa4/0xb0)
[<800367bc>] (kthread+0xa4/0xb0) from [<8000e298>] (ret_from_fork+0x14/0x3c)



Host and Target logs before execution of Continue command:


On Vexpress target machine:
==========================

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Initializing cgroup subsys cpuset
Linux version 3.4.18-rt29+ (nareshbhat@Lenovo) (gcc version 4.7.0) #11
SMP Thu Nov 22 19:00:11 IST 2012
CPU: ARMv7 Processor [412fc0f1] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
Machine: ARM-Versatile Express, model: V2P-CA15_CA7
Memory policy: ECC disabled, Data cache writealloc
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
PERCPU: Embedded 8 pages/cpu @80ccb000 s10176 r8192 d14400 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
Kernel command line: root=/dev/nfs rw ip=dhcp
nfsroot=<HostIP>:/mnt/sda3/nfs/cortexa15/core-image -serial stdio
console=ttyAMA0 kgdbwait kgdboc=ttyAMA0,38400
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1024MB = 1024MB total
Memory: 1034592k/1034592k available, 13984k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x8043767c   (4286 kB)
      .init : 0x80438000 - 0x804687c0   ( 194 kB)
      .data : 0x8046a000 - 0x8049d360   ( 205 kB)
       .bss : 0x8049d384 - 0x804c20b0   ( 148 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:256
Console: colour dummy device 80x30
Calibrating delay loop... 1987.37 BogoMIPS (lpj=9936896)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
hw perfevents: enabled with ARMv7 Cortex-A15 PMU driver, 7 counters available
Setting up static identity map for 0x8032ff48 - 0x8032ffa0
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
CPU1: Unknown IPI message 0x1
Brought up 2 CPUs
SMP: Total of 2 processors activated (3981.31 BogoMIPS).
NET: Registered protocol family 16
No ATAGs?
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
Serial: AMBA PL011 UART driver
1c090000.uart: ttyAMA0 at MMIO 0x1c090000 (irq = 37) is a PL011 rev2
console [ttyAMA0] enabled
1c0a0000.uart: ttyAMA1 at MMIO 0x1c0a0000 (irq = 38) is a PL011 rev2
1c0b0000.uart: ttyAMA2 at MMIO 0x1c0b0000 (irq = 39) is a PL011 rev2
1c0c0000.uart: ttyAMA3 at MMIO 0x1c0c0000 (irq = 40) is a PL011 rev2
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.25.
Switching to clocksource v2m-timer1
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
msgmni has been set to 2020
io scheduler noop registered (default)
clcd-pl11x: probe of 1c1f0000.clcd failed with error -22
kgdb: Registered I/O driver kgdboc.
kgdb: Waiting for connection from remote gdb...


On Host machine:
===============

[nareshbhat@Lenovo linux-sdk]$ arm-linux-gnueabi-gdb vmlinux
GNU gdb 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu
--target=arm-linux-gnueabi".
Reading symbols from
/mnt/sda3/gitRepositories/final-fumount-dev/final/linux-sdk/vmlinux...done.
(gdb) set remotebaud 38400
(gdb) target remote /dev/ttyUSB0
Remote debugging using /dev/ttyUSB0
kgdb_breakpoint () at kernel/debug/debug_core.c:986
986             arch_kgdb_breakpoint();
(gdb) n
987             wmb(); /* Sync point after breakpoint */
(gdb) n
988             atomic_dec(&kgdb_setting_breakpoint);
(gdb) n
kgdb_initial_breakpoint () at kernel/debug/debug_core.c:929
929             return 0;
(gdb) n
kgdb_register_io_module
(new_dbg_io_ops=new_dbg_io_ops@entry=0x8048f7a0) at
kernel/debug/debug_core.c:930
930     }
(gdb) n
configure_kgdboc () at drivers/tty/serial/kgdboc.c:198
198             if (err)
(gdb) n
201             configured = 1;
(gdb) n
198             if (err)
(gdb) n
211     }
(gdb) info threads
[New Thread -2]
[New Thread -3]
[New Thread 2]
[New Thread 3]
[New Thread 4]
[New Thread 5]
[New Thread 6]
[New Thread 7]
[New Thread 8]
[New Thread 9]
[New Thread 10]
[New Thread 11]
[New Thread 12]
[New Thread 181]
[New Thread 183]
[New Thread 185]
[New Thread 191]
[New Thread 201]
[New Thread 297]
[New Thread 299]
[New Thread 304]
[New Thread 309]
[New Thread 355]
[New Thread 364]
  Id   Target Id         Frame
  25   Thread 364 (nfsiod) kthread (_create=0xbf989d80) at kernel/kthread.c:100
  24   Thread 355 (fsnotify_mark) kthread (_create=0x0) at kernel/kthread.c:100
  23   Thread 309 (kswapd0) kthread (_create=0x8049c900) at kernel/kthread.c:100
  22   Thread 304 (khungtaskd) kthread (_create=0x0) at kernel/kthread.c:100
  21   Thread 299 (kworker/1:1) kthread (_create=0xbfa53500) at
kernel/kthread.c:100
  20   Thread 297 (rpciod) kthread (_create=0xbf898300) at kernel/kthread.c:100
  19   Thread 201 (khubd) kthread (_create=0x0) at kernel/kthread.c:100
  18   Thread 191 (ata_sff) kthread (_create=0xbf933580) at kernel/kthread.c:100
  17   Thread 185 (kblockd) kthread (_create=0xbf92ee00) at kernel/kthread.c:100
  16   Thread 183 (bdi-default) kthread (_create=0x80488440) at
kernel/kthread.c:100
  15   Thread 181 (sync_supers) kthread (_create=0xbfa1f900) at
kernel/kthread.c:100
  14   Thread 12 (kworker/u:1) kthread (_create=0xbf87a000) at
kernel/kthread.c:100
  13   Thread 11 (khelper) kthread (_create=0xbf82d080) at kernel/kthread.c:100
  12   Thread 10 (cpuset) kthread (_create=0xbf829f80) at kernel/kthread.c:100
  11   Thread 9 (ksoftirqd/1) kthread (_create=0x1) at kernel/kthread.c:100
  10   Thread 8 (kworker/1:0) kthread (_create=0xbf80f6c0) at
kernel/kthread.c:100
  9    Thread 7 (migration/1) kthread (_create=0x80cd49b8) at
kernel/kthread.c:100
  8    Thread 6 (migration/0) kthread (_create=0x80ccc9b8) at
kernel/kthread.c:100
  7    Thread 5 (kworker/u:0) kthread (_create=0xbf80f5c0) at
kernel/kthread.c:100
  6    Thread 4 (kworker/0:0) kthread (_create=0xbf80f540) at
kernel/kthread.c:100
  5    Thread 3 (ksoftirqd/0) kthread (_create=0x0) at kernel/kthread.c:100
  4    Thread 2 (kthreadd) 0x00000000 in ?? ()
  3    Thread -3 (shadowCPU1) 0x800b01dc in kmem_cache_free
(s=<optimized out>, x=<optimized out>) at mm/slub.c:2609
  2    Thread -2 (shadowCPU0) configure_kgdboc () at
drivers/tty/serial/kgdboc.c:211
* 1    Thread 1 (swapper/0) configure_kgdboc () at
drivers/tty/serial/kgdboc.c:211
(gdb)
(gdb) continue
Continuing.






--Thanks and Regards
"For things to change, we must change"
-Naresh Bhat

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Kgdb-bugreport mailing list
Kgdb-bugreport@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to