<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><font class="Apple-style-span" color="#0000FF" face="'Gill Sans'"><span class="Apple-style-span" style="font-size: medium;">I need to see all the threads:</span></font></div><div><font class="Apple-style-span" color="#0000FF" face="'Gill Sans'"><span class="Apple-style-span" style="font-size: medium;"><br></span></font></div><div><font class="Apple-style-span" color="#0000FF" face="'Gill Sans'"><span class="Apple-style-span" style="font-size: medium;">thread apply all bt</span></font></div></span></span></span></span></span></span></span></span></div></span></div></span> </div><br><div><div>On 13 Oct 2009, at 02:46, 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 a stack dump from the hung OpenBSD p007 run to diagnose (attach<br></blockquote><blockquote type="cite">to the process using gdb and grab a stack dump). Are we seeing this<br></blockquote><blockquote type="cite">on any other pthread target?<br></blockquote><br>I just logged in quickly to Jay's OpenBSD system and started test 7.<br>Output stops after line 8 and I had to hit Control-C.<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) r<br>Starting program: /home/hudson/workspace/cm3-test-m3tests-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>0x0e3f18f1 in poll () from /usr/lib/libc.so.50.1<br>(m3gdb) bt<br>#0 0x0e3f18f1 in poll () from /usr/lib/libc.so.50.1<br>#1 0x0910f314 in _thread_kern_poll (wait_reqd=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:760<br>#2 0x0910ee53 in _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:382<br>#3 0x0910f19f in _thread_kern_sched_state (state=688918728,<br> fname=0x291010c8 "", lineno=688918728)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:550<br>#4 0x09109085 in nanosleep (time_to_sleep=0x8544ec68,<br> time_remaining=0x8544ec70)<br> at /usr/src/lib/libpthread/uthread/uthread_nanosleep.c:84<br>#5 0x1c023181 in ThreadPThread__Nanosleep (req=0x8544ec68, rem=0x8544ec70)<br> at ../src/thread/PTHREAD/ThreadPThreadC.c:317<br>#6 0x1c01fb54 in CommonSleep () at ../src/thread/PTHREAD/ThreadPThread.m3:740<br>#7 0x1c0219d3 in StopWorld () at ../src/thread/PTHREAD/ThreadPThread.m3:1253<br>#8 0x1c021041 in SuspendOthers ()<br> at ../src/thread/PTHREAD/ThreadPThread.m3:1029<br>#9 0x1c007ccb in CollectSomeInStateZero ()<br> at ../src/runtime/common/RTCollector.m3:735<br>#10 0x1c007c8a in CollectSome () at ../src/runtime/common/RTCollector.m3:709<br>#11 0x1c00773d in CollectEnough () at ../src/runtime/common/RTCollector.m3:643<br>#12 0x1c004de1 in AllocTraced (dataSize=Invalid C/C++ type code 40 in symbol table.<br>)<br> at ../src/runtime/common/RTAllocator.m3:363<br>#13 0x1c004056 in GetTracedObj (def=Invalid C/C++ type code 29 in symbol table.<br>)<br> at ../src/runtime/common/RTAllocator.m3:222<br>#14 0x1c0039ec in AllocateTracedObj (defn=Invalid C/C++ type code 35 in symbol table.<br>)<br> at ../src/runtime/common/RTAllocator.m3:120<br>#15 0x1c002b82 in Task (self=Invalid C/C++ type code 26 in symbol table.<br>) at ../Main.m3:58<br>#16 0x1c01ed3e in RunThread (me=Invalid C/C++ type code 29 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#17 0x1c01ea83 in ThreadBase (param=Invalid C/C++ type code 35 in symbol table.<br>)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#18 0x0910637f in _thread_start ()<br> at /usr/src/lib/libpthread/uthread/uthread_create.c:240<br>#19 0x0000002b in ?? ()<br>#20 0x00000000 in ?? ()<br>(m3gdb) set lang Modula-3<br>(m3gdb) bt<br>#0 0x0e3f18f1 in poll () from /usr/lib/libc.so.50.1<br>#1 0x0910f314 in _thread_kern_poll (wait_reqd=1)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:760<br>#2 0x0910ee53 in _thread_kern_sched (scp=0x0)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:382<br>#3 0x0910f19f in _thread_kern_sched_state (state=688918728,<br> fname=0x291010c8 "\000", lineno=688918728)<br> at /usr/src/lib/libpthread/uthread/uthread_kern.c:550<br>#4 0x09109085 in nanosleep (time_to_sleep=0x8544ec68,<br> time_remaining=0x8544ec70)<br> at /usr/src/lib/libpthread/uthread/uthread_nanosleep.c:84<br>#5 0x1c023181 in ThreadPThread__Nanosleep (req=0x8544ec68, rem=0x8544ec70)<br> at ../src/thread/PTHREAD/ThreadPThreadC.c:317<br>#6 0x1c01fb54 in CommonSleep () at ../src/thread/PTHREAD/ThreadPThread.m3:740<br>#7 0x1c0219d3 in StopWorld () at ../src/thread/PTHREAD/ThreadPThread.m3:1253<br>#8 0x1c021041 in SuspendOthers ()<br> at ../src/thread/PTHREAD/ThreadPThread.m3:1029<br>#9 0x1c007ccb in CollectSomeInStateZero ()<br> at ../src/runtime/common/RTCollector.m3:735<br>#10 0x1c007c8a in CollectSome () at ../src/runtime/common/RTCollector.m3:709<br>#11 0x1c00773d in CollectEnough () at ../src/runtime/common/RTCollector.m3:643<br>#12 0x1c004de1 in AllocTraced (dataSize=12, dataAlignment=4, thread=<br> RECORD inCritical = 0; pool = RECORD note = Allocated; pure = FALSE; page = NIL; next = NIL; limit = NIL; END; END)<br> at ../src/runtime/common/RTAllocator.m3:363<br>#13 0x1c004056 in GetTracedObj (def=16_3c001114)<br> at ../src/runtime/common/RTAllocator.m3:222<br>#14 0x1c0039ec in AllocateTracedObj (defn=16_3c001114)<br> at ../src/runtime/common/RTAllocator.m3:120<br>#15 0x1c002b82 in Task (self=16_8bc4a00c) at ../Main.m3:58<br>#16 0x1c01ed3e in RunThread (me=16_7faae480)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:588<br>#17 0x1c01ea83 in ThreadBase (param=16_7faae480)<br> at ../src/thread/PTHREAD/ThreadPThread.m3:564<br>#18 0x0910637f in _thread_start ()<br> at /usr/src/lib/libpthread/uthread/uthread_create.c:240<br>#19 0x0000002b in ?? ()<br>#20 0x00000000 in ?? ()<br>(m3gdb)<br><br>Attaching to a running program doesn't yield anything useful:<br><br>bash-3.2$ src/p0/p007/I386_OPENBSD/pgm &<br>[1] 26756<br>bash-3.2$<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:<br>bash-3.2$ ps<br> PID TT STAT TIME COMMAND<br>22500 p0 Is 0:00.00 -ksh (ksh)<br>18592 p0 S 0:00.04 bash<br>26756 p0 S 0:00.02 src/p0/p007/I386_OPENBSD/pgm<br>28998 p0 R+ 0:00.00 ps<br>bash-3.2$ m3gdb<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) attach 26756<br>Attaching to process 26756<br>0x0d35f8f1 in ?? ()<br>(m3gdb) set symbol-file src/p0/p007/I386_OPENBSD/pgm<br>No symbol table is loaded. Use the "file" command.<br>(m3gdb) symbol-file src/p0/p007/I386_OPENBSD/pgm<br>Reading symbols from /home/hudson/workspace/cm3-test-m3tests-I386_OPENBSD/cm3/m3-sys/m3tests/src/p0/p007/I386_OPENBSD/pgm...done.<br>(m3gdb) bt<br>#0 0x0d35f8f1 in ?? ()<br>#1 0x0a0c0314 in ?? ()<br>#2 0x84533000 in ?? ()<br>#3 0x00000001 in ?? ()<br>#4 0x00000001 in ?? ()<br>#5 0x00000001 in ?? ()<br>#6 0x00000000 in ?? ()<br><br>Does this help?<br>Anything I should try this evening?<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>