<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">OK, now this is more interesting. We see that thread 2 is trying to get a GC cycle initiated by stopping the other threads. I am guessing that they are not responding to the thread signal being sent to them. Can you try with @M3debugthreads?<div><br></div><div><br></div><div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><font class="Apple-style-span" color="#0000FF"><font class="Apple-style-span" face="Gill Sans"><span class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: 'Gill Sans'; "><span class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: 'Gill Sans'; ">Antony Hosking</span></span></font></font><font class="Apple-style-span" face="Gill Sans"><span class="Apple-style-span" style="font-family: 'Gill Sans'; "><span class="Apple-style-span" style="font-family: 'Gill Sans'; "><span class="Apple-converted-space"> </span>|<span class="Apple-converted-space"> </span></span></span><span class="Apple-style-span" style="font-family: 'Gill Sans'; "><span class="Apple-style-span" style="font-family: 'Gill Sans'; ">Associate Professor</span></span><span class="Apple-style-span" style="font-family: 'Gill Sans'; "><span class="Apple-style-span" style="font-family: 'Gill Sans'; "> | Computer Science | Purdue University</span></span></font></div><div><font class="Apple-style-span" face="GillSans-Light"><span class="Apple-style-span" style="font-family: GillSans-Light; ">305 N. University Street | West Lafayette | IN 47907 | USA</span></font></div><div><font class="Apple-style-span" color="#0000FF" face="Gill Sans"><span class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: 'Gill Sans'; "><span class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: 'Gill Sans'; ">Office</span></span></font><font class="Apple-style-span" face="GillSans-Light"><span class="Apple-style-span" style="font-family: GillSans-Light; "><span class="Apple-style-span" style="font-family: GillSans-Light; "> +1 765 494 6001 |<span class="Apple-converted-space"> </span></span></span></font><font class="Apple-style-span" color="#0000FF" face="Gill Sans"><span class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: 'Gill Sans'; "><span class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: 'Gill Sans'; ">Mobile</span></span></font><font class="Apple-style-span" face="GillSans-Light"><span class="Apple-style-span" style="font-family: GillSans-Light; "><span class="Apple-style-span" style="font-family: GillSans-Light; "><span class="Apple-converted-space"> </span>+1 765 427 5484</span></span></font></div><div><font class="Apple-style-span" face="GillSans-Light"><br class="khtml-block-placeholder"></font></div></span></span></span></span></span></span></span><br class="Apple-interchange-newline"></span></div></span></div></span><br class="Apple-interchange-newline"> </div><br><div><div>On 18 Oct 2009, at 06:30, Olaf Wagner wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Quoting Tony Hosking <<a href="mailto:hosking@cs.purdue.edu">hosking@cs.purdue.edu</a>>:<br><br><blockquote type="cite"><blockquote type="cite">Thread 1 (process 23708, thread 0x862c9400):<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">#0 _thread_kern_sched (scp=Cannot access memory at address 0xbb319<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> at /usr/src/lib/libpthread/uthread/uthread_kern.c:392<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Cannot access memory at address 0xbb315<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">#0 0x00fac8f1 in poll () from /usr/lib/libc.so.50.1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">(m3gdb)<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">So what is thread 1 up to?<br></blockquote><br>I don't really understand what's going on there. But I made another<br>test which might or might not be helpful. I single-stepped in thread 1<br>until it blocks. We get actually no output from other threads then<br>(though several have been started, but then thread 3 seems to be<br>corrupt. Here is the debugger session:<br><br><br>-- bash-3.2$ m3gdb src/p0/p007/I386_OPENBSD/pgm<br>GNU gdb plus Modula-3 6.4<br>Copyright 2005 Free Software Foundation, Inc.<br>GDB is free software, covered by the GNU General Public License, and you are<br>welcome to change it and/or distribute copies of it under certain conditions.<br>Type "show copying" to see the conditions.<br>There is absolutely no warranty for GDB. Type "show warranty" for details.<br>This GDB was configured as "i686-openbsd"...<br>(m3gdb) b Main<br>Main Main.m3 Main_M3_tcb594446_LINK<br>Main.i3 Main.mc<br>Main.ic Main_M3_t9b50f823_INIT<br>(m3gdb) b Main<br>Main Main.m3 Main_M3_tcb594446_LINK<br>Main.i3 Main.mc<br>Main.ic Main_M3_t9b50f823_INIT<br>(m3gdb) b Main<br>Breakpoint 1 at 0x1c0031c9: file ../Main.m3, line 127.<br>(m3gdb) r<br>Starting program: /home/hudson/workspace/cm3-lastok-build-I386_OPENBSD/cm3/m3-sys/m3tests/src/p0/p007/I386_OPENBSD/pgm<br>Breakpoint 1 at 0x1c0031b5: file ../Main.m3, line 127.<br>[Switching to process 15851, thread 0x85cc4800]<br><br>Breakpoint 1, Main (mode=0) at ../Main.m3:127<br>127 BEGIN<br>Current language: auto; currently Modula-3<br>(m3gdb) n<br>0x1c00283e in __i686.get_pc_thunk.bx ()<br>(m3gdb)<br>Single stepping until exit from function __i686.get_pc_thunk.bx,<br>which has no line number information.<br>0x1c003901 in Main (mode=1006721732) at ../Main.m3:157<br>157 RTIO.Flush ();<br>(m3gdb)<br>AddUnit (b={"Main_M3", Declared at: ../Main.m3:127})<br> at ../src/runtime/common/RTLinker.m3:121<br>121 IF (m = NIL) THEN RETURN END;<br>(m3gdb)<br>122 AddUnitI(m);<br>(m3gdb)<br><br>Breakpoint 1, Main (mode=1) at ../Main.m3:127<br>127 BEGIN<br>(m3gdb)<br>0x1c00283e in __i686.get_pc_thunk.bx ()<br>(m3gdb) finish<br>Run till exit from #0 0x1c00283e in __i686.get_pc_thunk.bx ()<br>0x1c0031c3 in Main (mode=2115735632) at ../Main.m3:127<br>127 BEGIN<br>(m3gdb) n<br>131 iolock := NEW (MUTEX);<br>(m3gdb)<br>132 stop := NEW (Thread.Condition);<br>(m3gdb) l<br>127 BEGIN<br>128<br>129 (* Thread.MinDefaultStackSize (20000); *)<br>130<br>131 iolock := NEW (MUTEX);<br>132 stop := NEW (Thread.Condition);<br>133<br>134 com := NEW (A, limit := 2000);<br>135 com.done := NEW (Thread.Condition);<br>136 com.first := 1;<br>(m3gdb) n<br>134 com := NEW (A, limit := 2000);<br>(m3gdb)<br>135 com.done := NEW (Thread.Condition);<br>(m3gdb)<br>136 com.first := 1;<br>(m3gdb)<br>137 com.next := 1;<br>(m3gdb)<br>138 com.last := 1;<br>(m3gdb)<br>139 t := NEW (T, id := 1, limit := 15);<br>(m3gdb)<br>141 INC (com.count);<br>(m3gdb)<br>142 Int (com.count, 5, ": ");<br>(m3gdb)<br>144 th := Thread.Fork (t);<br>(m3gdb)<br>145 t.thread := th;<br>(m3gdb)<br>146 LOCK com DO<br>(m3gdb)<br>147 Thread.Broadcast (com.done);<br>(m3gdb)<br>148 END;<br>(m3gdb)<br>151 LOCK com DO<br>(m3gdb)<br>152 WHILE (com.next # 0) DO<br>(m3gdb)<br>153 com.Wait (com.done); END;<br>(m3gdb)<br>152 WHILE (com.next # 0) DO<br>(m3gdb)<br>153 com.Wait (com.done); END;<br>(m3gdb)<br>152 WHILE (com.next # 0) DO<br>(m3gdb)<br>153 com.Wait (com.done); END;<br>(m3gdb)<br>152 WHILE (com.next # 0) DO<br>(m3gdb)<br>153 com.Wait (com.done); END;<br>(m3gdb)<br>152 WHILE (com.next # 0) DO<br>(m3gdb)<br>153 com.Wait (com.done); END;<br>(m3gdb)<br>152 WHILE (com.next # 0) DO<br>(m3gdb)<br>153 com.Wait (com.done); END;<br>(m3gdb)<br>152 WHILE (com.next # 0) DO<br>(m3gdb)<br>153 com.Wait (com.done); END;<br>(m3gdb)<br>152 WHILE (com.next # 0) DO<br>(m3gdb)<br>153 com.Wait (com.done); END;<br>(m3gdb)<br>152 WHILE (com.next # 0) DO<br>(m3gdb)<br>153 com.Wait (com.done); END;<br>(m3gdb)<br>152 WHILE (com.next # 0) DO<br>(m3gdb)<br>153 com.Wait (com.done); END;<br>(m3gdb)<br>152 WHILE (com.next # 0) DO<br>(m3gdb)<br>153 com.Wait (com.done); END;<br>(m3gdb)<br>152 WHILE (com.next # 0) DO<br>(m3gdb)<br>153 com.Wait (com.done); END;<br>(m3gdb)<br><br><br>^C[New process 15851]<br>^C<br>Program received signal SIGINT, Interrupt.<br>[Switching to process 15851]<br>0x07b8b8f1 in poll () from /usr/lib/libc.so.50.1<br>(m3gdb) thread apply all bt<br><br>Thread 11 (process 15851, thread 0x85cc4000):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x0dc2b200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x85cc40b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x0dc29b9a in mutex_lock_common (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x0dc29cb8 in pthread_mutex_lock (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01d3a4 in XWait (self=Invalid C/C++ type code 26 in symbol table.<br>) at ../src/thread/PTHREAD/ThreadPThread.m3:240<br>#5 0x1c01d746 in Wait (m=Invalid C/C++ type code 26 in symbol table.<br>) at ../src/thread/PTHREAD/ThreadPThread.m3:280<br>#6 0x1c002b4a in Task (self=Invalid C/C++ type code 26 in symbol table.<br>) at ../Main.m3:91<br>#7 0x1c01f726 in RunThread (me=Invalid C/C++ type code 29 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#8 0x1c01f46b in ThreadBase (param=Invalid C/C++ type code 35 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#9 0x0dc2237f in _thread_start ()<br> at /usr/src/lib/libpthread/uthread/uthread_create.c:240<br>#10 0x0000002b in ?? ()<br>#11 0x00000000 in ?? ()<br>Current language: auto; currently c<br><br>Thread 10 (process 15851, thread 0x84895400):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x0dc2b200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x848954b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x0dc28e2d in pthread_cond_timedwait (cond=0x2dc1d0e0, mutex=0x2dc1d0dc,<br> abstime=0x8816efa8) at /usr/src/lib/libpthread/uthread/uthread_cond.c:431<br>#3 0x0dc225a7 in _thread_gc (arg=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_gc.c:181<br>#4 0x0dc2237f in _thread_start ()<br> at /usr/src/lib/libpthread/uthread/uthread_create.c:240<br>#5 0x0000002b in ?? ()<br>#6 0x00000000 in ?? ()<br><br>Thread 9 (process 15851, thread 0x84895c00):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x0dc2b200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x84895cb0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x0dc29b9a in mutex_lock_common (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x0dc29cb8 in pthread_mutex_lock (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01d3a4 in XWait (self=Invalid C/C++ type code 26 in symbol table.<br>) at ../src/thread/PTHREAD/ThreadPThread.m3:240<br>#5 0x1c01d746 in Wait (m=Invalid C/C++ type code 26 in symbol table.<br>) at ../src/thread/PTHREAD/ThreadPThread.m3:280<br>#6 0x1c002b4a in Task (self=Invalid C/C++ type code 26 in symbol table.<br>) at ../Main.m3:91<br>#7 0x1c01f726 in RunThread (me=Invalid C/C++ type code 29 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#8 0x1c01f46b in ThreadBase (param=Invalid C/C++ type code 35 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#9 0x0dc2237f in _thread_start ()<br> at /usr/src/lib/libpthread/uthread/uthread_create.c:240<br>#10 0x0000002b in ?? ()<br>#11 0x00000000 in ?? ()<br><br>Thread 8 (process 15851, thread 0x84895000):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x0dc2b200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x848950b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x0dc29b9a in mutex_lock_common (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x0dc29cb8 in pthread_mutex_lock (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01cd60 in LockMutex (m=Invalid C/C++ type code 26 in symbol table.<br>) at ../src/thread/PTHREAD/ThreadPThread.m3:159<br>#5 0x1c002a51 in Task (self=Invalid C/C++ type code 26 in symbol table.<br>) at ../Main.m3:90<br>#6 0x1c01f726 in RunThread (me=Invalid C/C++ type code 29 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#7 0x1c01f46b in ThreadBase (param=Invalid C/C++ type code 35 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#8 0x0dc2237f in _thread_start ()<br> at /usr/src/lib/libpthread/uthread/uthread_create.c:240<br>#9 0x0000002b in ?? ()<br>#10 0x00000000 in ?? ()<br><br>Thread 7 (process 15851, thread 0x88197400):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x0dc2b200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x881974b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x0dc29b9a in mutex_lock_common (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x0dc29cb8 in pthread_mutex_lock (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01cd60 in LockMutex (m=Invalid C/C++ type code 26 in symbol table.<br>) at ../src/thread/PTHREAD/ThreadPThread.m3:159<br>#5 0x1c002a51 in Task (self=Invalid C/C++ type code 26 in symbol table.<br>) at ../Main.m3:90<br>#6 0x1c01f726 in RunThread (me=Invalid C/C++ type code 29 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#7 0x1c01f46b in ThreadBase (param=Invalid C/C++ type code 35 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#8 0x0dc2237f in _thread_start ()<br> at /usr/src/lib/libpthread/uthread/uthread_create.c:240<br>#9 0x0000002b in ?? ()<br>#10 0x00000000 in ?? ()<br><br>Thread 6 (process 15851, thread 0x88197000):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x0dc2b200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x881970b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x0dc29b9a in mutex_lock_common (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x0dc29cb8 in pthread_mutex_lock (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01cd60 in LockMutex (m=Invalid C/C++ type code 26 in symbol table.<br>) at ../src/thread/PTHREAD/ThreadPThread.m3:159<br>#5 0x1c002a51 in Task (self=Invalid C/C++ type code 26 in symbol table.<br>) at ../Main.m3:90<br>#6 0x1c01f726 in RunThread (me=Invalid C/C++ type code 29 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#7 0x1c01f46b in ThreadBase (param=Invalid C/C++ type code 35 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#8 0x0dc2237f in _thread_start ()<br> at /usr/src/lib/libpthread/uthread/uthread_create.c:240<br>#9 0x0000002b in ?? ()<br>#10 0x00000000 in ?? ()<br><br>Thread 5 (process 15851, thread 0x8931f800):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x0dc2b200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x8931f8b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x0dc29b9a in mutex_lock_common (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x0dc29cb8 in pthread_mutex_lock (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01cd60 in LockMutex (m=Invalid C/C++ type code 26 in symbol table.<br>) at ../src/thread/PTHREAD/ThreadPThread.m3:159<br>#5 0x1c002a51 in Task (self=Invalid C/C++ type code 26 in symbol table.<br>) at ../Main.m3:90<br>#6 0x1c01f726 in RunThread (me=Invalid C/C++ type code 29 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#7 0x1c01f46b in ThreadBase (param=Invalid C/C++ type code 35 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#8 0x0dc2237f in _thread_start ()<br> at /usr/src/lib/libpthread/uthread/uthread_create.c:240<br>#9 0x0000002b in ?? ()<br>#10 0x00000000 in ?? ()<br><br>Thread 4 (process 15851, thread 0x8931f000):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x0dc2b200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x8931f0b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x0dc29b9a in mutex_lock_common (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x0dc29cb8 in pthread_mutex_lock (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01cd60 in LockMutex (m=Invalid C/C++ type code 26 in symbol table.<br>) at ../src/thread/PTHREAD/ThreadPThread.m3:159<br>#5 0x1c002a51 in Task (self=Invalid C/C++ type code 26 in symbol table.<br>) at ../Main.m3:90<br>#6 0x1c01f726 in RunThread (me=Invalid C/C++ type code 29 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#7 0x1c01f46b in ThreadBase (param=Invalid C/C++ type code 35 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#8 0x0dc2237f in _thread_start ()<br> at /usr/src/lib/libpthread/uthread/uthread_create.c:240<br>#9 0x0000002b in ?? ()<br>#10 0x00000000 in ?? ()<br><br>Thread 3 (process 15851, thread 0x856ab400):<br>#0 _thread_kern_sched (scp=Cannot access memory at address 0x2e497<br>)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:392<br>Cannot access memory at address 0x2e493<br><br>Thread 2 (process 15851):<br>#0 0x07b8b8f1 in poll () from /usr/lib/libc.so.50.1<br>#1 0x0dc2b314 in _thread_kern_poll (wait_reqd=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:760<br>#2 0x0dc2ae53 in _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:382<br>#3 0x0dc2b19f in _thread_kern_sched_state (state=767676616,<br> fname=0x2dc1d0c8 "", lineno=767676616)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:550<br>#4 0x0dc25085 in nanosleep (time_to_sleep=0x7de7fc58,<br> time_remaining=0x7de7fc60)<br> at /usr/src/lib/libpthread/uthread/uthread_nanosleep.c:84<br>#5 0x1c023b69 in ThreadPThread__Nanosleep (req=0x7de7fc58, rem=0x7de7fc60)<br> at ../src/thread/PTHREAD/ThreadPThreadC.c:317<br>#6 0x1c02053c in CommonSleep () at ../src/thread/PTHREAD/ThreadPThread.m3:740<br>#7 0x1c0223bb in StopWorld () at ../src/thread/PTHREAD/ThreadPThread.m3:1253<br>#8 0x1c021a29 in SuspendOthers ()<br> at ../src/thread/PTHREAD/ThreadPThread.m3:1029<br>#9 0x1c0086b3 in CollectSomeInStateZero ()<br> at ../src/runtime/common/RTCollector.m3:735<br>#10 0x1c008672 in CollectSome () at ../src/runtime/common/RTCollector.m3:709<br>#11 0x1c008125 in CollectEnough () at ../src/runtime/common/RTCollector.m3:643<br>#12 0x1c0057c9 in AllocTraced (dataSize=Invalid C/C++ type code 40 in symbol table.<br>)<br> at ../src/runtime/common/RTAllocator.m3:363<br>#13 0x1c004a3e in GetTracedObj (def=Invalid C/C++ type code 29 in symbol table.<br>)<br> at ../src/runtime/common/RTAllocator.m3:222<br>#14 0x1c0043d4 in AllocateTracedObj (defn=Invalid C/C++ type code 35 in symbol table.<br>)<br> at ../src/runtime/common/RTAllocator.m3:120<br>#15 0x1c002f67 in Task (self=Invalid C/C++ type code 26 in symbol table.<br>) at ../Main.m3:110<br>#16 0x1c01f726 in RunThread (me=Invalid C/C++ type code 29 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#17 0x1c01f46b in ThreadBase (param=Invalid C/C++ type code 35 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#18 0x0dc2237f in _thread_start ()<br> at /usr/src/lib/libpthread/uthread/uthread_create.c:240<br>#19 0x0000002b in ?? ()<br>#20 0x00000000 in ?? ()<br><br>Thread 1 (process 15851, thread 0x85cc4800):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x0dc2b200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x85cc48b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x0dc29b9a in mutex_lock_common (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x0dc29cb8 in pthread_mutex_lock (mutex=0x7e1b90f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01d3a4 in XWait (self=Invalid C/C++ type code 26 in symbol table.<br>) at ../src/thread/PTHREAD/ThreadPThread.m3:240<br>#5 0x1c01d746 in Wait (m=Invalid C/C++ type code 26 in symbol table.<br>) at ../src/thread/PTHREAD/ThreadPThread.m3:280<br>#6 0x1c00387c in Main (mode=Invalid C/C++ type code 39 in symbol table.<br>) at ../Main.m3:153<br>#7 0x1c012688 in RunMainBody (m=Invalid C/C++ type code 29 in symbol table.<br>) at ../src/runtime/common/RTLinker.m3:399<br>#8 0x1c011a42 in AddUnitI (m=Invalid C/C++ type code 29 in symbol table.<br>) at ../src/runtime/common/RTLinker.m3:113<br>#9 0x1c011ad0 in AddUnit (b=Invalid C/C++ type code 31 in symbol table.<br>) at ../src/runtime/common/RTLinker.m3:122<br>#10 0x1c002826 in main (argc=1, argv=0xcfbc15ec, envp=0xcfbc15f4)<br> at _m3main.mc:4<br>#11 0x1c00268c in ___start ()<br>#12 0x1c0025df in _start ()<br>#0 0x07b8b8f1 in poll () from /usr/lib/libc.so.50.1<br>(m3gdb)<br><br>I also tried increasing the default stack size; it didn't help.<br>If you want me to test anything, I'll be happy to try it.<br><br>Olaf<br>-- <br>Olaf Wagner -- elego Software Solutions GmbH<br> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany<br>phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86 95<br> <a href="http://www.elegosoft.com">http://www.elegosoft.com</a> | Geschäftsführer: Olaf Wagner | Sitz: Berlin<br>Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194<br><br></div></blockquote></div><br></div></body></html>