I wrote:
> Now running under gdb since last evening.
It now felt ready for another hang. The GDB I had already attached
responded to ^C and produces this stack trace:
Program received signal SIGTRAP, Trace/breakpoint trap.
...
(gdb) bt f
#0 memcpy (dst0=0x40a52dc4, src0=0x10, len0=4234967967)
at ../../../../../../../../../gcc-4.5.2/newlib/libc/string/memcpy.c:87
dst = 0x40a52dc4 "U\231\252f\f\205"
src = 0x10 "U\231\252f\f\205"
aligned_dst = 0x4438b224
aligned_src = 0x3938470
#1 0x401039e8 in _CORE_message_queue_Copy_buffer (
the_message_queue=0x408d96bc, id=<value optimized out>,
buffer=<value optimized out>, size_p=<value optimized out>, wait=36,
timeout=<value optimized out>)
at ../../cpukit/../../../milkymist/lib/include/rtems/score/coremsg.inl:101
No locals.
#2 _CORE_message_queue_Seize (the_message_queue=0x408d96bc,
id=<value optimized out>, buffer=<value optimized out>,
size_p=<value optimized out>, wait=36, timeout=<value optimized out>)
at
../../../../../../rtems-milkymist/c/src/../../cpukit/score/src/coremsgseize.c:83
level = 4294967295
executing = <value optimized out>
#3 0x40101c5c in rtems_message_queue_receive (id=<value optimized out>,
buffer=0x40a52dc4, size=0x40a52da0, option_set=0, timeout=0)
at
../../../../../../rtems-milkymist/c/src/../../cpukit/rtems/src/msgqreceive.c:83
---Type <return> to continue, or q <return> to quit---
location = 2863311530
wait = true
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
At frame #2:
(gdb) p *the_message_queue
$1 = {Wait_queue = {Queues = {Fifo = {first = 0x408d96c0,
permanent_null = 0x0, last = 0x408d96bc}, Priority = {{
first = 0x408d96c0, permanent_null = 0x0, last = 0x408d96bc}, {
first = 0x0, permanent_null = 0x50000000, last = 0x0}, {first = 0x0,
permanent_null = 0x0, last = 0x1000}, {first = 0x0,
permanent_null = 0x0, last = 0x0}}},
sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED,
discipline = THREAD_QUEUE_DISCIPLINE_FIFO, state = 128,
timeout_status = 6}, Attributes = {
discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO},
maximum_pending_messages = 64, number_of_pending_messages = 64,
maximum_message_size = 1, Pending_messages = {first = 0xffffffff,
permanent_null = 0x0, last = 0x408defb0}, message_buffers = 0x408de9f8,
notify_handler = 0, notify_argument = 0x0, Inactive_messages = {
first = 0x408d9728, permanent_null = 0x0, last = 0x408d9724}}
Maybe this is a hint ?
maximum_pending_messages = 64, number_of_pending_messages = 64,
Or this ?
Pending_messages = {first = 0xffffffff,
Pity that gdb doesn't find more values. The M1 is sitting frozen
in rendering and doesn't respond to the mouse or ping. I can still
poke around with gdb if you have any suggestions.
- Werner
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode