Hi Christian,

On 09/09/10 00:16, Christian Gieseler wrote:
I have trouble with a blocking process and I donĀ“t know how to do further
debugging.

I am running Linux 2.6.25 on a coldfire 5329.

That is kinda old. Any chance you can use a newer kernel version?


My Program starts up fine and
does
What it is designed for, but sometimes it hangs up.
Ps (see below) shows that the main thread of the program is in an
uninterruptible sleep state.
I have no chance to kill it. I can only reboot the system.
When the program hangs every two minutes the kernel throws the stack values
with a call trace (see below).
I did already enable KALLSYMS with all symbols included (KALLSYMS_ALL) and
ELF_CORE_DUMPS in the
  kernel configuration, but that did not improve readability of the output.

Can somebody give me any advice how to track down the problem? What do I
have to enable to get
a readable output and find the source of the problem?

I recall some fixes to the stack back trace reporting for m68knommu
targets in newer kernel versions. At the very least you can generate
a disassembly of the kernel (m68k-uclinux-objdump -d vmlinux) and
manually compare some of the stack contents. Should give you somewhere
to start.

Regards
Greg



Thanks for any help.
Best Regards
Christian Gieseler


INFO: task MR-Prog.elf:79 blocked for more than 120 seconds.
"echo 0>  /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Stack from 40df1dac:
         407f5090 40efa4c0 40efa4c0 407f5090 40df1000 40df1e14 401a224e
7fffffff
         7fffffff 40df1008 401a2aa2 40df1000 401a25d2 40df1000 40c1cbe4
40df1000
         40df1000 407f52e0 40df1008 40df1000 40df1008 40df1000 40df1000
40df1000
         40df1000 407f52e0 40df1e3c 401a2b36 7fffffff 00000002 40df1f9c
40df1000
         40df1e74 401a288e 7fffffff 00000012 40df1e84 401a288e 7fffffff
00004103
         00000001 00000018 40cdd408 00000004 40760001 40c1d046 40c017ec
40cdd3cc
Call Trace:
  [40efa4c0] 0x40efa4c0

ps
   PID USER       VSZ STAT COMMAND
     1 0          162 S    /bin/init
     2 0            0 SW<   [kthreadd]
     3 0            0 SWN  [ksoftirqd/0]
     4 0            0 SW<   [watchdog/0]
     5 0            0 SW<   [events/0]
     6 0            0 SW<   [khelper]
     7 0            0 SW<   [kblockd/0]
     8 0            0 SW   [pdflush]
     9 0            0 SW   [pdflush]
    10 0            0 SW<   [kswapd0]
    11 0            0 SW<   [aio/0]
    12 0            0 SW<   [mtdblockd]
    13 0            0 SW<   [rpciod/0]
    17 1           97 S    portmap
    34 0            0 SWN  [jffs2_gcd_mtd7]
    69 0            0 SW   [lockd]
    75 0          688 S    -/bin/sh
    76 0           40 S    /bin/inetd
    77 0          267 S N  /bin/boa
    78 0           72 S N  /var/tmp/mnt/el2daemon
    79 0          344 D    /var/tmp/nfs/MR-Prog.elf 7 8 M
    80 0          344 S    /var/tmp/nfs/MR-Prog.elf 7 8 M
    81 0          344 S    /var/tmp/nfs/MR-Prog.elf 7 8 M
    84 0          344 S    /var/tmp/nfs/MR-Prog.elf 7 8 M
   114 0          546 R    ps



_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev



--
------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     g...@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close                             FAX:         +61 7 3217 5323
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to