All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] gdb/gdbserver hangs during rt_task_create
@ 2010-12-21 17:30 Kolja Waschk
  2010-12-21 20:03 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 34+ messages in thread
From: Kolja Waschk @ 2010-12-21 17:30 UTC (permalink / raw)
  To: Xenomai GNA

Hi,

thanks for the quick response regarding the irritating warning.

My next problem appears while debugging an application on a Blackfin target
with gdbserver + gdb. Debugging hangs when the first rt_task_create is reached.

Starting in my application:

153     int prio = T_HIPRIO/2;
154     int r = rt_task_create(&thread, thread_name.c_str(), 128*1024, prio, T_FPU|T_JOINABLE);

...

Single-stepi'ing the call, gdb loses contact shortly after clone() in
http://git.uclibc.org/uClibc/tree/libpthread/linuxthreads.old/pthread.c
It looks like this could be related to a manager thread?

These are the last lines from gdb (using stepi)

45  in libc/sysdeps/linux/bfin/clone.c
0x00e4cb00 in clone (fn=@0xec235c: 0xed5a64 <__pthread_manager_event>, child_stack=0xefb5cc, flags=3840, arg=0x0)
     at libc/sysdeps/linux/bfin/clone.c:45
45  in libc/sysdeps/linux/bfin/clone.c
0x00ed8734 in __pthread_initialize_manager () at libpthread/linuxthreads.old/pthread.c:600
600 libpthread/linuxthreads.old/pthread.c: No such file or directory.
     in libpthread/linuxthreads.old/pthread.c
606 in libpthread/linuxthreads.old/pthread.c
0x00ed8738  606 in libpthread/linuxthreads.old/pthread.c
615 in libpthread/linuxthreads.old/pthread.c
614 in libpthread/linuxthreads.old/pthread.c
0x00ed8740  614 in libpthread/linuxthreads.old/pthread.c
616 in libpthread/linuxthreads.old/pthread.c
612 in libpthread/linuxthreads.old/pthread.c
615 in libpthread/linuxthreads.old/pthread.c
616 in libpthread/linuxthreads.old/pthread.c
617 in libpthread/linuxthreads.old/pthread.c
620 in libpthread/linuxthreads.old/pthread.c
0x00ed8754  620 in libpthread/linuxthreads.old/pthread.c
0x00ed4066 in ?? ()
    from /opt/uClinux-2010R1-RC5_tools-RC4/bfin-linux-uclibc/bfin-linux-uclibc/runtime/lib/libpthread.so.0
0x00ed406a in ?? ()
    from /opt/uClinux-2010R1-RC5_tools-RC4/bfin-linux-uclibc/bfin-linux-uclibc/runtime/lib/libpthread.so.0
0x00ed406e in ?? ()
    from /opt/uClinux-2010R1-RC5_tools-RC4/bfin-linux-uclibc/bfin-linux-uclibc/runtime/lib/libpthread.so.0



I need to find out how to prepare the uClibc source so that gdb can find it for further details. But maybe someone yet has an idea about a possible cause (and remedy)?

Kolja






^ permalink raw reply	[flat|nested] 34+ messages in thread
[parent not found: <mailman.13966.1293037981.32598.xenomai@xenomai.org>]

end of thread, other threads:[~2011-01-01 22:02 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-21 17:30 [Xenomai-help] gdb/gdbserver hangs during rt_task_create Kolja Waschk
2010-12-21 20:03 ` Gilles Chanteperdrix
2010-12-22  9:30   ` Kolja Waschk
2010-12-22 12:11     ` Kolja Waschk
2010-12-22 12:38       ` Kolja Waschk
2010-12-22 13:50       ` Philippe Gerum
2010-12-22 14:14         ` Kolja Waschk
2010-12-22 14:17           ` Philippe Gerum
2010-12-22 14:20             ` Philippe Gerum
2010-12-22 15:25             ` Kolja Waschk
2010-12-22 15:29               ` Philippe Gerum
2010-12-22 17:18                 ` Kolja Waschk
2010-12-22 18:13                   ` Kolja Waschk
2010-12-22 18:28                     ` Philippe Gerum
2010-12-22 19:00                       ` Kolja Waschk
2010-12-23  8:53                         ` Philippe Gerum
2010-12-23 21:43                           ` Gilles Chanteperdrix
2010-12-23 21:55                             ` Waschk,Kolja
2010-12-23 22:13                               ` Gilles Chanteperdrix
2010-12-22 22:26       ` Gilles Chanteperdrix
2010-12-27 14:44     ` [Xenomai-help] gdb/gdbserver and pthread_cond_wait (was: gdb/gdbserver hangs...) Kolja Waschk
2010-12-27 16:31       ` Philippe Gerum
2010-12-27 16:53         ` Kolja Waschk
     [not found]         ` <alpine.DEB.1.10.1012271744460.20479@domain.hid>
2010-12-27 17:13           ` Philippe Gerum
2010-12-27 17:27             ` Kolja Waschk
2010-12-27 19:59               ` Philippe Gerum
2010-12-28  9:50                 ` Kolja Waschk
2010-12-28 16:42       ` [Xenomai-help] gdb/gdbserver and pthread_cond_wait Gilles Chanteperdrix
2010-12-28 18:21         ` Kolja Waschk
2010-12-28 18:30           ` Kolja Waschk
2011-01-01 22:02             ` Gilles Chanteperdrix
     [not found] <mailman.13966.1293037981.32598.xenomai@xenomai.org>
2010-12-22 23:06 ` [Xenomai-help] gdb/gdbserver hangs during rt_task_create Andreas Glatz
2010-12-22 23:10 ` Andreas Glatz
2010-12-23  9:09   ` Kolja Waschk

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.