<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">Now I tried running a simpler case in the test for ticket 1257 (now :STRING doesn’t involve CLOS objects)</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">(read-from-serialized-string :string "'(1 2 3 4 5 6 7 8 9)" :loop-count 100000)</b></span></div></div><div class=""><br class=""></div><div class="">and it crashed with</div><div class=""><br class=""></div><div class="">====</div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">? Unhandled exception 4 at 0x102e3a0c, context->regs at #x74d64450</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">? for help</span></div></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(88, 50, 255); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">[26101] Clozure CL kernel debugger: </span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""><b class="">B</b></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">current thread: tcr = 0x75503068, native thread ID = 0x6612, interrupts enabled</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A5F0) #x00018E24 : (subprimitive ret1valn)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A600) #x1042AA9C : #<Function READ-LIST #x14191b86> + 448</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A630) #x00018E24 : (subprimitive ret1valn)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A640) #x1042B574 : #<Function %PARSE-EXPRESSION #x14191eae> + 352</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A650) #x00018E24 : (subprimitive ret1valn)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A660) #x10425C08 : #<Function %READ-FORM #x1418fb06> + 452</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A670) #x00018E24 : (subprimitive ret1valn)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A680) #x1042A22C : #<Function '-reader #x1419186e> + 64</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A690) #x00018E24 : (subprimitive ret1valn)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A6A0) #x1042B574 : #<Function %PARSE-EXPRESSION #x14191eae> + 352</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A6B0) #x00018E24 : (subprimitive ret1valn)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A6C0) #x10425C08 : #<Function %READ-FORM #x1418fb06> + 452</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A6D0) #x00018E24 : (subprimitive ret1valn)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A6E0) #x10426DF8 : #<Function READ-INTERNAL #x141900ce> + 220</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(#x73E6A6F0) #x10427058 : #<Function READ #x1419022e> + 124</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">====</span></div><div class=""><br class=""></div><div class="">But before the crash it ran at 400% CPU.</div><div class=""><br class=""></div><div class="">So the bug seems unsolved, it was something else unrelated the CPU at 100%</div><div class="">before.</div><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 10, 2019, at 5:42 PM, JTK <<a href="mailto:jetmonk@gmail.com" class="">jetmonk@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">Hello,</div><div class=""><br class=""></div><div class="">I’m running some multithreaded programs on an RPi 3b+, and </div><div class="">I learned of memory corruption bug #1257: <a href="https://trac.clozure.com/ccl/ticket/1257" class="">https://trac.clozure.com/ccl/ticket/1257</a></div><div class="">so I decided to compile the newest opencml to see if it is still there.</div><div class=""><br class=""></div><div class="">Strangely, the code (read-from-serialized-string) from the above page </div><div class="">does not seem to trigger the bug after about an hour of running,</div><div class="">but my question is why is this version running on only 1 CPU?</div><div class="">And why does it seem much slower than before?</div><div class=""><br class=""></div><div class="">Top shows 100% cpu usage in (read-from-serialized-string :thread-count 7),</div><div class="">but running the same code on 1.11.5/v1.11.5 uses nearly 400% CPU, so the new version </div><div class="">1.12-dev seems to be running on one CPU.</div><div class=""><br class=""></div><div class="">Running dummy loops in separate threads in 1.12-dev uses up multiple CPUs, though,</div><div class="">so my 1.12-dev is definitely multithreaded.</div><div class=""><br class=""></div><div class="">So it’s only the task in ticket 1257 (or perhaps the lisp reader it uses?) that is single</div><div class="">threaded.</div><div class=""><br class=""></div><div class="">Can anyone shed some light on this? Has this bug been effectively solved, or has</div><div class="">some unrelated change to threading simply mitigated it?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">John</div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></blockquote></div><br class=""></body></html>