<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><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><span class="Apple-style-span" style="font-size: medium;"><font class="Apple-style-span" color="#0000FF" face="'Gill Sans'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><blockquote type="cite"><div>Thread 1 (process 23708, thread 0x862c9400):<br>#0 _thread_kern_sched (scp=Cannot access memory at address 0xbb319<br>)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:392<br>Cannot access memory at address 0xbb315<br>#0 0x00fac8f1 in poll () from /usr/lib/libc.so.50.1<br>(m3gdb)</div></blockquote><br></span></font></span></div><div><span class="Apple-style-span" style="font-size: medium;">So what is thread 1 up to?</span></div></span></span></span></span></span></span></span></span></div></span></div></span> </div><br><div><div>On 15 Oct 2009, at 17:45, 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">I need to see all the threads:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">thread apply all bt<br></blockquote><br>Here you are:<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) r<br>Starting program: /home/hudson/workspace/cm3-test-all-pkgs-I386_OPENBSD/cm3/m3-sys/m3tests/src/p0/p007/I386_OPENBSD/pgm<br><br> 1: 1<br> 2: 1 2<br> 3: 1 2 3<br> 4: 1 2 3 4<br> 5: 1 2 3 4 5<br> 6: 1 2 3 4 5 6<br> 7: 1 2 3 4 5 6 7<br> 8: 1 2 3 4 5 6 7 8<br> 9: ^C<br>Program received signal SIGINT, Interrupt.<br>0x00fac8f1 in poll () from /usr/lib/libc.so.50.1<br>(m3gdb) set lang Modula-3<br>(m3gdb) thread apply all bt<br><br>Thread 10 (process 23708, thread 0x821ff000):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x031d8200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x821ff0b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x031d6b9a in mutex_lock_common (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x031d6cb8 in pthread_mutex_lock (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01c9bc in XWait (self=16_83e7a00c, m=16_83e7a0b4, c=16_83e7a0a4,<br> alertable=FALSE) at ../src/thread/PTHREAD/ThreadPThread.m3:240<br>#5 0x1c01cd5e in Wait (m=16_83e7a0b4, c=16_83e7a0a4)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:280<br>#6 0x1c002efc in Main (mode=1) at ../Main.m3:75<br>#7 0x1c011ca0 in RunMainBody (m=16_3c0010e0)<br> at ../src/runtime/common/RTLinker.m3:399<br>#8 0x1c01105a in AddUnitI (m=16_3c0010e0)<br> at ../src/runtime/common/RTLinker.m3:113<br>#9 0x1c0110e8 in AddUnit (b={"Main_M3", Declared at: ../Main.m3:70})<br> at ../src/runtime/common/RTLinker.m3:122<br>#10 0x1c002806 in main (argc=1, argv=0xcfbc1fb4, envp=0xcfbc1fbc)<br> at _m3main.mc:4<br>#11 0x1c00266c in ___start ()<br>#12 0x1c0025bf in _start ()<br>Warning: the current language does not match this frame.<br><br>Thread 9 (process 23708, thread 0x821ff400):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x031d8200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x821ff4b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x031d6b9a in mutex_lock_common (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x031d6cb8 in pthread_mutex_lock (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01c9bc in XWait (self=16_83e7a0d0, m=16_83e7a0b4, c=16_83e7a0a4,<br> alertable=FALSE) at ../src/thread/PTHREAD/ThreadPThread.m3:240<br>#5 0x1c01cd5e in Wait (m=16_83e7a0b4, c=16_83e7a0a4)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:280<br>#6 0x1c0029c6 in Task (self=16_83e7a0c0) at ../Main.m3:42<br>#7 0x1c01ed3e in RunThread (me=16_7dbbb880)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#8 0x1c01ea83 in ThreadBase (param=16_7dbbb880)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#9 0x031cf37f 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 23708, thread 0x87b14c00):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x031d8200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x87b14cb0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x031d5e2d in pthread_cond_timedwait (cond=0x231ca0e0, mutex=0x231ca0dc,<br> abstime=0x87731fa8) at /usr/src/lib/libpthread/uthread/uthread_cond.c:431<br>#3 0x031cf5a7 in _thread_gc (arg=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_gc.c:181<br>#4 0x031cf37f 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 7 (process 23708, thread 0x87b14800):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x031d8200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x87b148b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x031d6b9a in mutex_lock_common (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x031d6cb8 in pthread_mutex_lock (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01c9bc in XWait (self=16_83e7c01c, m=16_83e7a0b4, c=16_83e7a0a4,<br> alertable=FALSE) at ../src/thread/PTHREAD/ThreadPThread.m3:240<br>#5 0x1c01cd5e in Wait (m=16_83e7a0b4, c=16_83e7a0a4)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:280<br>#6 0x1c0029c6 in Task (self=16_83e7c00c) at ../Main.m3:42<br>#7 0x1c01ed3e in RunThread (me=16_7dbbba80)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#8 0x1c01ea83 in ThreadBase (param=16_7dbbba80)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#9 0x031cf37f 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 6 (process 23708, thread 0x87b14000):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x031d8200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x87b140b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x031d6b9a in mutex_lock_common (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x031d6cb8 in pthread_mutex_lock (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01c378 in LockMutex (m=16_83e7a0b4)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:159<br>#5 0x1c002918 in Task (self=16_83e7e00c) at ../Main.m3:41<br>#6 0x1c01ed3e in RunThread (me=16_7dbbbb80)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#7 0x1c01ea83 in ThreadBase (param=16_7dbbbb80)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#8 0x031cf37f 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 23708, thread 0x8b659800):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x031d8200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x8b6598b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x031d6b9a in mutex_lock_common (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x031d6cb8 in pthread_mutex_lock (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01c378 in LockMutex (m=16_83e7a0b4)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:159<br>#5 0x1c002918 in Task (self=16_83e8000c) at ../Main.m3:41<br>#6 0x1c01ed3e in RunThread (me=16_7dbbb680)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#7 0x1c01ea83 in ThreadBase (param=16_7dbbb680)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#8 0x031cf37f 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 23708, thread 0x8b659000):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x031d8200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x8b6590b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x031d6b9a in mutex_lock_common (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x031d6cb8 in pthread_mutex_lock (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01c378 in LockMutex (m=16_83e7a0b4)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:159<br>#5 0x1c002918 in Task (self=16_83e8200c) at ../Main.m3:41<br>#6 0x1c01ed3e in RunThread (me=16_7dbbb400)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#7 0x1c01ea83 in ThreadBase (param=16_7dbbb400)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#8 0x031cf37f 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 23708, thread 0x868d6400):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x031d8200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x868d64b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x031d6b9a in mutex_lock_common (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x031d6cb8 in pthread_mutex_lock (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01c378 in LockMutex (m=16_83e7a0b4)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:159<br>#5 0x1c002918 in Task (self=16_83e8400c) at ../Main.m3:41<br>#6 0x1c01ed3e in RunThread (me=16_7dbbb180)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#7 0x1c01ea83 in ThreadBase (param=16_7dbbb180)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#8 0x031cf37f 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 2 (process 23708, thread 0x868d6c00):<br>#0 _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1 0x031d8200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br> lock=0x868d6cb0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2 0x031d6b9a in mutex_lock_common (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:489<br>#3 0x031d6cb8 in pthread_mutex_lock (mutex=0x8a95b1f0)<br> at /usr/src/lib/libpthread/uthread/uthread_mutex.c:675<br>#4 0x1c01c378 in LockMutex (m=16_83e7a0b4)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:159<br>#5 0x1c002918 in Task (self=16_83e8600c) at ../Main.m3:41<br>#6 0x1c01ed3e in RunThread (me=16_7dbbba00)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#7 0x1c01ea83 in ThreadBase (param=16_7dbbba00)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#8 0x031cf37f 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 1 (process 23708, thread 0x862c9400):<br>#0 _thread_kern_sched (scp=Cannot access memory at address 0xbb319<br>)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:392<br>Cannot access memory at address 0xbb315<br>#0 0x00fac8f1 in poll () from /usr/lib/libc.so.50.1<br>(m3gdb)<br><br>I hope this helps,<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></body></html>