[M3devel] AMD64_FREEBSD problems with current RC from m3 site
Mika Nystrom
mika at async.async.caltech.edu
Sat Oct 31 19:26:37 CET 2009
Let's see here we go:
libc.so.7 => /lib/libc.so.7 (0x804c4e000)
-> linking mktisolator
generate _m3main.new
compare _m3main.new _m3main.mc
rm _m3main.new
gcc -gstabs+ -m64 -fPIC -z now -z origin -Bsymbolic -Wl,--fatal-warnings -Wl,--warn-common -Wl,-rpath,\$ORIGIN -Wl,-rpath,\$ORIGIN/../lib -o mktisolator _m3main.o MktIsolator.io MktIsolator.mo Main.mo -Wl,-rpath,/home/mika/t/mscheme/modula3scheme/AMD64_FREEBSD -L/home/mika/t/mscheme/modula3scheme/AMD64_FREEBSD -lmodula3scheme -Wl,-rpath,/home/mika/t/calarm/htmltable/AMD64_FREEBSD -L/home/mika/t/calarm/htmltable/AMD64_FREEBSD -lhtmltable -Wl,-rpath,/home/mika/t/calarm/postgresql/AMD64_FREEBSD -L/home/mika/t/calarm/postgresql/AMD64_FREEBSD -lpostgresql -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lpq -Wl,-rpath,/home/mika/t/calarm/twslib/twslogger/AMD64_FREEBSD -L/home/mika/t/calarm/twslib/twslogger/AMD64_FREEBSD -ltwslogger -Wl,-rpath,/home/mika/t/calarm/fastrw/AMD64_FREEBSD -L/home/mika/t/calarm/fastrw/AMD64_FREEBSD -lfastrw -Wl,-rpath,/home/mika/t/calarm/gw/AMD64_FREEBSD -L/home/mika/t/calarm/gw/AMD64_FREEBSD -lgw -Wl,-rpath,/usr/local/cm3/pkg/ui/AMD64_FREEBSD -L/usr/local/c
m3/pkg/ui/AMD64_FREEBSD -lm3ui -Wl,-rpath,/usr/local/cm3/pkg/X11R4/AMD64_FREEBSD -L/usr/local/cm3/pkg/X11R4/AMD64_FREEBSD -lm3X11R4 -Wl,-rpath,/home/mika/t/calarm/mktsim/AMD64_FREEBSD -L/home/mika/t/calarm/mktsim/AMD64_FREEBSD -lmktsim -Wl,-rpath,/home/mika/t/calarm/fix/fix42/AMD64_FREEBSD -L/home/mika/t/calarm/fix/fix42/AMD64_FREEBSD -lfix42 -Wl,-rpath,/home/mika/t/calarm/twslib/testtrade2/tradecore/AMD64_FREEBSD -L/home/mika/t/calarm/twslib/testtrade2/tradecore/AMD64_FREEBSD -ltradecore -Wl,-rpath,/home/mika/t/mscheme/AMD64_FREEBSD -L/home/mika/t/mscheme/AMD64_FREEBSD -lmscheme -Wl,-rpath,/home/mika/t/calarm/fix/fix41/AMD64_FREEBSD -L/home/mika/t/calarm/fix/fix41/AMD64_FREEBSD -lfix41 -Wl,-rpath,/home/mika/t/calarm/fix/fixcommon/AMD64_FREEBSD -L/home/mika/t/calarm/fix/fixcommon/AMD64_FREEBSD -lfixcommon -Wl,-rpath,/usr/local/cm3/pkg/parseparams/AMD64_FREEBSD -L/usr/local/cm3/pkg/parseparams/AMD64_FREEBSD -lm3parseparams -Wl,-rpath,/home/mika/t/mscheme/scheme-lib/AMD64_FREE
BSD -L/home/mika/t/mscheme/scheme-lib/AMD64_FREEBSD -lscheme-lib -Wl,-rpath,/home/mika/t/calarm/twslib/testtrade2/inventory/AMD64_FREEBSD -L/home/mika/t/calarm/twslib/testtrade2/inventory/AMD64_FREEBSD -linventory -Wl,-rpath,/home/mika/t/calarm/twslib/AMD64_FREEBSD -L/home/mika/t/calarm/twslib/AMD64_FREEBSD -ltwslib -Wl,-rpath,/home/mika/t/rdwr/AMD64_FREEBSD -L/home/mika/t/rdwr/AMD64_FREEBSD -lrdwr -Wl,-rpath,/home/mika/t/calarm/anova/AMD64_FREEBSD -L/home/mika/t/calarm/anova/AMD64_FREEBSD -lanova -Wl,-rpath,/home/mika/t/calarm/finlib/AMD64_FREEBSD -L/home/mika/t/calarm/finlib/AMD64_FREEBSD -lfinlib -Wl,-rpath,/home/mika/t/calarm/m3readline/AMD64_FREEBSD -L/home/mika/t/calarm/m3readline/AMD64_FREEBSD -lm3readline -Wl,-rpath,/home/mika/t/parserlib/parserlib/AMD64_FREEBSD -L/home/mika/t/parserlib/parserlib/AMD64_FREEBSD -lparserlib -Wl,-rpath,/home/mika/t/calarm/sx/AMD64_FREEBSD -L/home/mika/t/calarm/sx/AMD64_FREEBSD -lsx -Wl,-rpath,/home/mika/t/cit_util/AMD64_FREEBSD -L/home/
mika/t/cit_util/AMD64_FREEBSD -lcit_util -Wl,-rpath,/usr/local/cm3/pkg/netobj/AMD64_FREEBSD -L/usr/local/cm3/pkg/netobj/AMD64_FREEBSD -lm3netobj -Wl,-rpath,/home/mika/t/rdwrreset/AMD64_FREEBSD -L/home/mika/t/rdwrreset/AMD64_FREEBSD -lrdwrreset -Wl,-rpath,/home/mika/t/cit_common/AMD64_FREEBSD -L/home/mika/t/cit_common/AMD64_FREEBSD -lcit_common -Wl,-rpath,/usr/local/cm3/pkg/set/AMD64_FREEBSD -L/usr/local/cm3/pkg/set/AMD64_FREEBSD -lset -Wl,-rpath,/usr/local/cm3/pkg/libbuf/AMD64_FREEBSD -L/usr/local/cm3/pkg/libbuf/AMD64_FREEBSD -llibbuf -Wl,-rpath,/usr/local/cm3/pkg/patternmatching/AMD64_FREEBSD -L/usr/local/cm3/pkg/patternmatching/AMD64_FREEBSD -lpatternmatching -Wl,-rpath,/usr/local/cm3/pkg/tcp/AMD64_FREEBSD -L/usr/local/cm3/pkg/tcp/AMD64_FREEBSD -lm3tcp -Wl,-rpath,/usr/local/cm3/pkg/libm3/AMD64_FREEBSD -L/usr/local/cm3/pkg/libm3/AMD64_FREEBSD -lm3 -Wl,-rpath,/usr/local/cm3/pkg/m3core/AMD64_FREEBSD -L/usr/local/cm3/pkg/m3core/AMD64_FREEBSD -lm3core -L/usr/X11R6/lib -lXaw -lX
mu -lXext -lXt -lSM -lICE -lX11 -lm -lpthread
rm m3make.args
cd .
Tony Hosking writes:
>
>--Apple-Mail-21--467118296
>Content-Type: text/plain;
> charset=US-ASCII;
> format=flowed;
> delsp=yes
>Content-Transfer-Encoding: 7bit
>
>Which pthread library are you linking to?
>
>On 31 Oct 2009, at 12:15, Mika Nystrom wrote:
>
>>
>> More details about the "catatonic" case. It's pretty bad. Even
>> ctrl-\
>> won't wake it up properly. Ctrl-\ is supposed to cause the program to
>> abort and dump core. It does nothing to my program now! And I think
>> I've "lost threads" before, too.
>>
>> Btw,
>>
>> (90)ginger:~/t>uname -a
>> FreeBSD ginger 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1
>> 07:18:07 UTC 2009 root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/
>> sys/GENERIC amd64
>>
>> I'm happy to help debug if someone can give me some pointers...
>>
>>
>> Mika
>>
>> ^\
>> Program received signal SIGQUIT, Quit.
>> 0x0000000804ca037c in sigsuspend () from /lib/libc.so.7
>> (m3gdb) cont
>> Continuing.
>>
>>
>> ***
>> *** runtime error:
>> *** aborted
>>
>>
>>
>>
>> ^\
>> Program received signal SIGQUIT, Quit.
>> 0x0000000804ca037c in sigsuspend () from /lib/libc.so.7
>> (m3gdb) where
>> #0 0x0000000804ca037c in sigsuspend () from /lib/libc.so.7
>> #1 0x0000000804b41d0a in sigsuspend () from /lib/libthr.so.3
>> #2 0x0000000803780da0 in ThreadPThread__sigsuspend ()
>> at ../src/thread/PTHREAD/ThreadPThreadC.c:117
>> #3 0x000000080377ff6f in SignalHandler (sig=Invalid C/C++ type code
>> 28 in symbol table.
>> ) at ../src/thread/PTHREAD/ThreadPThread.m3:1261
>> #4 <signal handler called>
>> #5 0x0000000804b4829c in __error () from /lib/libthr.so.3
>> #6 0x0000000804b46365 in pthread_cond_signal () from /lib/libthr.so.3
>> #7 0x000000080377a85d in XWait (self=Invalid C/C++ type code 26 in
>> symbol table.
>> ) at ../src/thread/PTHREAD/ThreadPThread.m3:227
>> #8 0x000000080377b026 in Wait (m=Invalid C/C++ type code 26 in
>> symbol table.
>> ) at ../src/thread/PTHREAD/ThreadPThread.m3:278
>> #9 0x000000080294a39c in WaitE (on=Invalid C/C++ type code 30 in
>> symbol table.
>> ) at ../src/SX.m3:217
>> #10 0x000000080294999a in Wait (on=Invalid C/C++ type code 30 in
>> symbol table.
>> ) at ../src/SX.m3:152
>> #11 0x00000008011ae748 in WaitLocked (t=Invalid C/C++ type code 26
>> in symbol table.
>> ) at ../src/MktAsset.m3:117
>> #12 0x00000008011b4950 in RecApply (cl=Invalid C/C++ type code 26 in
>> symbol table.
>> ) at ../src/MktPlace.m3:469
>> #13 0x000000080377cdf3 in RunThread (me=Invalid C/C++ type code 29
>> in symbol table.
>> ) at ../src/thread/PTHREAD/ThreadPThread.m3:547
>> #14 0x000000080377ca6a in ThreadBase (param=Invalid C/C++ type code
>> 35 in symbol table.
>> ) at ../src/thread/PTHREAD/ThreadPThread.m3:523
>> #15 0x0000000804b3e4d1 in pthread_getprio () from /lib/libthr.so.3
>> #16 0x0000000000000000 in ?? ()
>> (m3gdb)
>>
>>
>> Mika Nystrom writes:
>>> Hello m3devel,
>>>
>>> I'm running into problems with the current release candidate.
>>> I'm attaching a backtrace from one crash, but I think I also am
>>> seeing
>>> deadlocks in the threading system---my application goes catatonic.
>>> Of course it *is* possible it's a bug in my application, but it works
>>> on PM3 and on CM3 on PPC_DARWIN.
>>>
>>> Finally I'm still concerned about threading performance but in the
>>> light
>>> of the bugs it's hard to say much about it yet, I think...
>>>
>>> (The program in question is a highly multithreaded stock market
>>> simulator.)
>>>
>>> Mika
>>>
>>> ============================================================
>>>
>>> ***
>>> *** runtime error:
>>> *** <*ASSERT*> failed.
>>> *** file "../src/thread/PTHREAD/ThreadPThread.m3", line 589
>>> ***
>>>
>>>
>>> Program received signal SIGABRT, Aborted.
>>> 0x0000000804c9fa9c in thr_kill () from /lib/libc.so.7
>>> (m3gdb) show args
>>> Argument list to give program being debugged when it is started is
>>> "@M3debugtrace=mktsim.out -tz America/New_York -bugbehavior None -
>>> symbology ric -symbology tws
>>> -replay mktisolator090910.ticks 2009-09-10 at 13:30 -to
>>> 2009-09-10 at 15:59 -port 7001 -dp 0.05 7003 -dp 0.10 7005 -dp 0.15
>>> 7007 -dp 0.20 7009 -dp 0.25 7011 -dp 0.30
>>> 7013 -sync 60 -unsolicitedfills 0.5 -cp 0.5 -xtimeport 7200
>>> isolate90.src".
>>> (m3gdb) where
>>> #0 0x0000000804c9fa9c in thr_kill () from /lib/libc.so.7
>>> #1 0x0000000804d2ef8b in abort () from /lib/libc.so.7
>>> #2 0x0000000803777bf7 in Crash () at ../src/runtime/POSIX/RTOS.m3:20
>>> #3 0x000000080376b615 in Crash (msg=Invalid C/C++ type code 26 in
>>> symbol table.
>>> ) at ../src/runtime/common/RTProcess.m3:65
>>> #4 0x0000000803768ab2 in EndError (crash=Invalid C/C++ type code
>>> 36 in symbol table.
>>> ) at ../src/runtime/common/RTError.m3:118
>>> #5 0x00000008037687aa in MsgS (file=Invalid C/C++ type code 35 in
>>> symbol table.
>>> ) at ../src/runtime/common/RTError.m3:40
>>> #6 0x0000000803768f85 in Crash (a=Invalid C/C++ type code 30 in
>>> symbol table.
>>> ) at ../src/runtime/common/RTException.m3:79
>>> #7 0x0000000803768c3c in DefaultBackstop (a=Invalid C/C++ type
>>> code 30 in symbol table.
>>> ) at ../src/runtime/common/RTException.m3:39
>>> #8 0x0000000803768b6e in InvokeBackstop (a=Invalid C/C++ type code
>>> 30 in symbol table.
>>> ) at ../src/runtime/common/RTException.m3:25
>>> #9 0x0000000803778eab in Raise (act=Invalid C/C++ type code 30 in
>>> symbol table.
>>> ) at ../src/runtime/ex_frame/RTExFrame.m3:29
>>> #10 0x0000000803768cee in DefaultBackstop (a=Invalid C/C++ type
>>> code 30 in symbol table.
>>> ) at ../src/runtime/common/RTException.m3:47
>>> #11 0x0000000803768b6e in InvokeBackstop (a=Invalid C/C++ type code
>>> 30 in symbol table.
>>> ) at ../src/runtime/common/RTException.m3:25
>>> #12 0x0000000803778eab in Raise (act=Invalid C/C++ type code 30 in
>>> symbol table.
>>> ) at ../src/runtime/ex_frame/RTExFrame.m3:29
>>> #13 0x0000000803750241 in ReportFault (module=Invalid C/C++ type
>>> code 35 in symbol table.
>>> ) at ../src/runtime/common/RTHooks.m3:110
>>> #14 0x0000000803780acf in _m3_fault (arg=Invalid C/C++ type code 39
>>> in symbol table.
>>> )
>>> from /usr/local/cm3/pkg/m3core/AMD64_FREEBSD/libm3core.so.5
>>> #15 0x000000080377d1bc in Fork (closure=Invalid C/C++ type code 26
>>> in symbol table.
>>> ) at ../src/thread/PTHREAD/ThreadPThread.m3:589
>>> #16 0x00000008011b1651 in AddAsset (t=Invalid C/C++ type code 26 in
>>> symbol table.
>>> ) at ../src/MktPlace.m3:116
>>> #17 0x00000000004085c6 in Init (t=Invalid C/C++ type code 26 in
>>> symbol table.
>>> ) at ../src/MktIsolator.m3:514
>>> #18 0x00000000004106af in Main (mode=Invalid C/C++ type code 39 in
>>> symbol table.
>>> ) at ../src/Main.m3:734
>>> #19 0x0000000803767c19 in RunMainBody (m=Invalid C/C++ type code 29
>>> in symbol table.
>>> ) at ../src/runtime/common/RTLinker.m3:400
>>> #20 0x0000000803766e00 in AddUnitI (m=Invalid C/C++ type code 29 in
>>> symbol table.
>>> ) at ../src/runtime/common/RTLinker.m3:114
>>> #21 0x0000000803766e9e in AddUnit (b=Invalid C/C++ type code 31 in
>>> symbol table.
>>> ) at ../src/runtime/common/RTLinker.m3:123
>>> ---Type <return> to continue, or q <return> to quit---
>>> #22 0x0000000000404194 in main (argc=44, argv=0x7fffffffdde8,
>>> envp=0x7fffffffdf50) at _m3main.mc:4
>>> #23 0x00000000004040de in _start ()
>>> (m3gdb) up 15
>>> #15 0x000000080377d1bc in Fork (closure=16_00000008064c8930)
>>> at ../src/thread/PTHREAD/ThreadPThread.m3:589
>>> 589 WITH r = pthread_mutex_lock_active() DO <*ASSERT r=0*>
>>> END;
>>> Current language: auto; currently Modula-3
>>> (m3gdb) print r
>>> $1 = 11
>>> (m3gdb)
>>>
>>> ============================================================
>>>
>>>
>
>
>--Apple-Mail-21--467118296
>Content-Type: text/html;
> charset=US-ASCII
>Content-Transfer-Encoding: quoted-printable
>
><html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
>-webkit-line-break: after-white-space; ">Which pthread library are you =
>linking to?<br><div apple-content-edited=3D"true"> <span =
>class=3D"Apple-style-span" style=3D"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=3D"word-wrap: =
>break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
>after-white-space; "><span class=3D"Apple-style-span" =
>style=3D"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=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
>-webkit-line-break: after-white-space; "><span class=3D"Apple-style-span" =
>style=3D"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=3D"Apple-style-span" style=3D"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=3D"Apple-style-span" style=3D"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=3D"Apple-style-span" style=3D"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=3D"Apple-style-span" style=3D"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=3D"Apple-style-span" style=3D"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=3D"Apple-style-span" style=3D"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=3D"Apple-style-span" style=3D"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=3D"Apple-style-span" style=3D"font-size: medium;"><font =
>class=3D"Apple-style-span" color=3D"#0000FF" face=3D"'Gill =
>Sans'"><br></font></span></div></span></span></span></span></span></span><=
>/span></span></div></span></div></span></div><div><div>On 31 Oct 2009, =
>at 12:15, Mika Nystrom wrote:</div><br =
>class=3D"Apple-interchange-newline"><blockquote =
>type=3D"cite"><div><br>More details about the "catatonic" case. =
> It's pretty bad. Even ctrl-\<br>won't wake it up properly. =
> Ctrl-\ is supposed to cause the program to<br>abort and dump core. =
> It does nothing to my program now! And I think<br>I've "lost =
>threads" before, too.<br><br>Btw,<br><br>(90)ginger:~/t>uname =
>-a<br>FreeBSD ginger 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 =
>07:18:07 UTC 2009 <a =
>href=3D"mailto:root at driscoll.cse.buffalo.edu">root at driscoll.cse.buffalo.ed=
>u</a>:/usr/obj/usr/src/sys/GENERIC amd64<br><br>I'm happy to help =
>debug if someone can give me some pointers...<br><br><br> =
> Mika<br><br>^\<br>Program received signal =
>SIGQUIT, Quit.<br>0x0000000804ca037c in sigsuspend () from =
>/lib/libc.so.7<br>(m3gdb) cont<br>Continuing.<br><br><br>***<br>*** =
>runtime error:<br>*** =
> aborted<br><br><br><br><br>^\<br>Program received =
>signal SIGQUIT, Quit.<br>0x0000000804ca037c in sigsuspend () from =
>/lib/libc.so.7<br>(m3gdb) where<br>#0 0x0000000804ca037c in =
>sigsuspend () from /lib/libc.so.7<br>#1 0x0000000804b41d0a in =
>sigsuspend () from /lib/libthr.so.3<br>#2 0x0000000803780da0 in =
>ThreadPThread__sigsuspend ()<br> at =
>../src/thread/PTHREAD/ThreadPThreadC.c:117<br>#3 =
> 0x000000080377ff6f in SignalHandler (sig=3DInvalid C/C++ type code =
>28 in symbol table.<br>) at =
>../src/thread/PTHREAD/ThreadPThread.m3:1261<br>#4 <signal =
>handler called><br>#5 0x0000000804b4829c in __error () from =
>/lib/libthr.so.3<br>#6 0x0000000804b46365 in pthread_cond_signal =
>() from /lib/libthr.so.3<br>#7 0x000000080377a85d in XWait =
>(self=3DInvalid C/C++ type code 26 in symbol table.<br>) at =
>../src/thread/PTHREAD/ThreadPThread.m3:227<br>#8 =
> 0x000000080377b026 in Wait (m=3DInvalid C/C++ type code 26 in =
>symbol table.<br>) at ../src/thread/PTHREAD/ThreadPThread.m3:278<br>#9 =
> 0x000000080294a39c in WaitE (on=3DInvalid C/C++ type code 30 in =
>symbol table.<br>) at ../src/SX.m3:217<br>#10 0x000000080294999a in Wait =
>(on=3DInvalid C/C++ type code 30 in symbol table.<br>) at =
>../src/SX.m3:152<br>#11 0x00000008011ae748 in WaitLocked (t=3DInvalid =
>C/C++ type code 26 in symbol table.<br>) at =
>../src/MktAsset.m3:117<br>#12 0x00000008011b4950 in RecApply (cl=3DInvalid=
> C/C++ type code 26 in symbol table.<br>) at =
>../src/MktPlace.m3:469<br>#13 0x000000080377cdf3 in RunThread =
>(me=3DInvalid C/C++ type code 29 in symbol table.<br>) at =
>../src/thread/PTHREAD/ThreadPThread.m3:547<br>#14 0x000000080377ca6a in =
>ThreadBase (param=3DInvalid C/C++ type code 35 in symbol table.<br>) at =
>../src/thread/PTHREAD/ThreadPThread.m3:523<br>#15 0x0000000804b3e4d1 in =
>pthread_getprio () from /lib/libthr.so.3<br>#16 0x0000000000000000 in ?? =
>()<br>(m3gdb) <br><br><br>Mika Nystrom writes:<br><blockquote =
>type=3D"cite">Hello m3devel,<br></blockquote><blockquote =
>type=3D"cite"><br></blockquote><blockquote type=3D"cite">I'm running =
>into problems with the current release =
>candidate.<br></blockquote><blockquote type=3D"cite">I'm attaching a =
>backtrace from one crash, but I think I also am =
>seeing<br></blockquote><blockquote type=3D"cite">deadlocks in the =
>threading system---my application goes =
>catatonic.<br></blockquote><blockquote type=3D"cite">Of course it *is* =
>possible it's a bug in my application, but it =
>works<br></blockquote><blockquote type=3D"cite">on PM3 and on CM3 on =
>PPC_DARWIN.<br></blockquote><blockquote =
>type=3D"cite"><br></blockquote><blockquote type=3D"cite">Finally I'm =
>still concerned about threading performance but in the =
>light<br></blockquote><blockquote type=3D"cite">of the bugs it's hard to =
>say much about it yet, I think...<br></blockquote><blockquote =
>type=3D"cite"><br></blockquote><blockquote type=3D"cite">(The program in =
>question is a highly multithreaded stock =
>market<br></blockquote><blockquote =
>type=3D"cite">simulator.)<br></blockquote><blockquote =
>type=3D"cite"><br></blockquote><blockquote type=3D"cite"> =
> Mika<br></blockquote><blockquote =
>type=3D"cite"><br></blockquote><blockquote =
>type=3D"cite">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br></blockquote><blockquote =
>type=3D"cite"><br></blockquote><blockquote =
>type=3D"cite">***<br></blockquote><blockquote type=3D"cite">*** runtime =
>error:<br></blockquote><blockquote type=3D"cite">*** =
> <*ASSERT*> failed.<br></blockquote><blockquote =
>type=3D"cite">*** file =
>"../src/thread/PTHREAD/ThreadPThread.m3", line =
>589<br></blockquote><blockquote =
>type=3D"cite">***<br></blockquote><blockquote =
>type=3D"cite"><br></blockquote><blockquote =
>type=3D"cite"><br></blockquote><blockquote type=3D"cite">Program =
>received signal SIGABRT, Aborted.<br></blockquote><blockquote =
>type=3D"cite">0x0000000804c9fa9c in thr_kill () from =
>/lib/libc.so.7<br></blockquote><blockquote type=3D"cite">(m3gdb) show =
>args<br></blockquote><blockquote type=3D"cite">Argument list to give =
>program being debugged when it is started is "@M3debugtrace=3Dmktsim.out =
>-tz America/New_York -bugbehavior None -symbology ric -symbology =
>tws<br></blockquote><blockquote type=3D"cite">-replay =
>mktisolator090910.ticks 2009-09-10 at 13:30 -to 2009-09-10 at 15:59 -port 7001 =
>-dp 0.05 7003 -dp 0.10 7005 -dp 0.15 7007 -dp 0.20 7009 -dp 0.25 7011 =
>-dp 0.30 <br></blockquote><blockquote type=3D"cite">7013 -sync 60 =
>-unsolicitedfills 0.5 -cp 0.5 -xtimeport 7200 =
>isolate90.src".<br></blockquote><blockquote type=3D"cite">(m3gdb) =
>where<br></blockquote><blockquote type=3D"cite">#0 =
> 0x0000000804c9fa9c in thr_kill () from =
>/lib/libc.so.7<br></blockquote><blockquote type=3D"cite">#1 =
> 0x0000000804d2ef8b in abort () from =
>/lib/libc.so.7<br></blockquote><blockquote type=3D"cite">#2 =
> 0x0000000803777bf7 in Crash () at =
>../src/runtime/POSIX/RTOS.m3:20<br></blockquote><blockquote =
>type=3D"cite">#3 0x000000080376b615 in Crash (msg=3DInvalid C/C++ =
>type code 26 in symbol table.<br></blockquote><blockquote type=3D"cite">) =
>at ../src/runtime/common/RTProcess.m3:65<br></blockquote><blockquote =
>type=3D"cite">#4 0x0000000803768ab2 in EndError (crash=3DInvalid =
>C/C++ type code 36 in symbol table.<br></blockquote><blockquote =
>type=3D"cite">) at =
>../src/runtime/common/RTError.m3:118<br></blockquote><blockquote =
>type=3D"cite">#5 0x00000008037687aa in MsgS (file=3DInvalid C/C++ =
>type code 35 in symbol table.<br></blockquote><blockquote type=3D"cite">) =
>at ../src/runtime/common/RTError.m3:40<br></blockquote><blockquote =
>type=3D"cite">#6 0x0000000803768f85 in Crash (a=3DInvalid C/C++ =
>type code 30 in symbol table.<br></blockquote><blockquote type=3D"cite">) =
>at ../src/runtime/common/RTException.m3:79<br></blockquote><blockquote =
>type=3D"cite">#7 0x0000000803768c3c in DefaultBackstop (a=3DInvalid =
>C/C++ type code 30 in symbol table.<br></blockquote><blockquote =
>type=3D"cite">) at =
>../src/runtime/common/RTException.m3:39<br></blockquote><blockquote =
>type=3D"cite">#8 0x0000000803768b6e in InvokeBackstop (a=3DInvalid =
>C/C++ type code 30 in symbol table.<br></blockquote><blockquote =
>type=3D"cite">) at =
>../src/runtime/common/RTException.m3:25<br></blockquote><blockquote =
>type=3D"cite">#9 0x0000000803778eab in Raise (act=3DInvalid C/C++ =
>type code 30 in symbol table.<br></blockquote><blockquote type=3D"cite">) =
>at ../src/runtime/ex_frame/RTExFrame.m3:29<br></blockquote><blockquote =
>type=3D"cite">#10 0x0000000803768cee in DefaultBackstop (a=3DInvalid =
>C/C++ type code 30 in symbol table.<br></blockquote><blockquote =
>type=3D"cite">) at =
>../src/runtime/common/RTException.m3:47<br></blockquote><blockquote =
>type=3D"cite">#11 0x0000000803768b6e in InvokeBackstop (a=3DInvalid =
>C/C++ type code 30 in symbol table.<br></blockquote><blockquote =
>type=3D"cite">) at =
>../src/runtime/common/RTException.m3:25<br></blockquote><blockquote =
>type=3D"cite">#12 0x0000000803778eab in Raise (act=3DInvalid C/C++ type =
>code 30 in symbol table.<br></blockquote><blockquote type=3D"cite">) at =
>../src/runtime/ex_frame/RTExFrame.m3:29<br></blockquote><blockquote =
>type=3D"cite">#13 0x0000000803750241 in ReportFault (module=3DInvalid =
>C/C++ type code 35 in symbol table.<br></blockquote><blockquote =
>type=3D"cite">) at =
>../src/runtime/common/RTHooks.m3:110<br></blockquote><blockquote =
>type=3D"cite">#14 0x0000000803780acf in _m3_fault (arg=3DInvalid C/C++ =
>type code 39 in symbol table.<br></blockquote><blockquote =
>type=3D"cite">)<br></blockquote><blockquote type=3D"cite"> from =
>/usr/local/cm3/pkg/m3core/AMD64_FREEBSD/libm3core.so.5<br></blockquote><bl=
>ockquote type=3D"cite">#15 0x000000080377d1bc in Fork (closure=3DInvalid =
>C/C++ type code 26 in symbol table.<br></blockquote><blockquote =
>type=3D"cite">) at =
>../src/thread/PTHREAD/ThreadPThread.m3:589<br></blockquote><blockquote =
>type=3D"cite">#16 0x00000008011b1651 in AddAsset (t=3DInvalid C/C++ type =
>code 26 in symbol table.<br></blockquote><blockquote type=3D"cite">) at =
>../src/MktPlace.m3:116<br></blockquote><blockquote type=3D"cite">#17 =
>0x00000000004085c6 in Init (t=3DInvalid C/C++ type code 26 in symbol =
>table.<br></blockquote><blockquote type=3D"cite">) at =
>../src/MktIsolator.m3:514<br></blockquote><blockquote type=3D"cite">#18 =
>0x00000000004106af in Main (mode=3DInvalid C/C++ type code 39 in symbol =
>table.<br></blockquote><blockquote type=3D"cite">) at =
>../src/Main.m3:734<br></blockquote><blockquote type=3D"cite">#19 =
>0x0000000803767c19 in RunMainBody (m=3DInvalid C/C++ type code 29 in =
>symbol table.<br></blockquote><blockquote type=3D"cite">) at =
>../src/runtime/common/RTLinker.m3:400<br></blockquote><blockquote =
>type=3D"cite">#20 0x0000000803766e00 in AddUnitI (m=3DInvalid C/C++ type =
>code 29 in symbol table.<br></blockquote><blockquote type=3D"cite">) at =
>../src/runtime/common/RTLinker.m3:114<br></blockquote><blockquote =
>type=3D"cite">#21 0x0000000803766e9e in AddUnit (b=3DInvalid C/C++ type =
>code 31 in symbol table.<br></blockquote><blockquote type=3D"cite">) at =
>../src/runtime/common/RTLinker.m3:123<br></blockquote><blockquote =
>type=3D"cite">---Type <return> to continue, or q <return> to =
>quit---<br></blockquote><blockquote type=3D"cite">#22 0x0000000000404194 =
>in main (argc=3D44, argv=3D0x7fffffffdde8, envp=3D0x7fffffffdf50) at =
>_m3main.mc:4<br></blockquote><blockquote type=3D"cite">#23 =
>0x00000000004040de in _start ()<br></blockquote><blockquote =
>type=3D"cite">(m3gdb) up 15<br></blockquote><blockquote type=3D"cite">#15 =
>0x000000080377d1bc in Fork =
>(closure=3D16_00000008064c8930)<br></blockquote><blockquote type=3D"cite">=
> at =
>../src/thread/PTHREAD/ThreadPThread.m3:589<br></blockquote><blockquote =
>type=3D"cite">589 WITH r =
>=3D pthread_mutex_lock_active() DO <*ASSERT r=3D0*> =
>END;<br></blockquote><blockquote type=3D"cite">Current language: =
> auto; currently Modula-3<br></blockquote><blockquote =
>type=3D"cite">(m3gdb) print r<br></blockquote><blockquote type=3D"cite">$1=
> =3D 11<br></blockquote><blockquote type=3D"cite">(m3gdb) =
><br></blockquote><blockquote type=3D"cite"><br></blockquote><blockquote =
>type=3D"cite">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br></blockquote><blockquote =
>type=3D"cite"><br></blockquote><blockquote =
>type=3D"cite"><br></blockquote></div></blockquote></div><br></body></html>=
>
>--Apple-Mail-21--467118296--
More information about the M3devel
mailing list