<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 21, 2017 at 7:42 PM, Max Leske <span dir="ltr"><<a href="mailto:maxleske@gmail.com" target="_blank">maxleske@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> <br><div style="word-wrap:break-word">Hi Eliot,<div><br><div><blockquote type="cite"><div>On 19 May 2017, at 16:45, Max Leske <<a href="mailto:maxleske@gmail.com" target="_blank">maxleske@gmail.com</a>> wrote:</div><br class="gmail-m_241477532334943932Apple-interchange-newline"><div><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On 18 May 2017, at 20:52, <a href="mailto:vm-dev-request@lists.squeakfoundation.org" target="_blank">vm-dev-request@lists.<wbr>squeakfoundation.org</a> wrote:</div><br class="gmail-m_241477532334943932Apple-interchange-newline"><div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline">Hi Max,</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline">On Thu, May 18, 2017 at 4:32 AM, Max Leske <</span><a href="mailto:maxleske@gmail.com" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">maxleske@gmail.com</a><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline">> wrote:</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><blockquote type="cite" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>We managed to figure out that OSProcess works when we use gcc <= 4.8 on<br>Debian. We are happy to use 4.8 for now, so we're good. It would of course<br>be super cool if we could use the series 6 gcc as that will soon ship with<br>Debian 9 (stretch) but it's probably not trivial to just move to a new<br>compiler version (as seems evident from the fact that a minor version<br>change can mess up compilation).<br><br></blockquote><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline">For the sake of revisiting this when we have time and can debug it can you</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline">state which version(s) you tried to use which didn't work? </span></div></blockquote><div><br></div><div><div>4.6: worked</div><div>4.7: worked</div><div>4.8: worked</div><div>4.9: didn't work</div></div></div></div></div></blockquote><div><br></div><div>Diff between config log of 4.8 and 4.9:</div><div><br></div><div><div>< Configured with: ../src/configure -v --with-pkgversion='Debian 4.8.4-1' --with-bugurl=<a>file:///usr/<wbr>share/doc/gcc-4.8/README.Bugs</a> --enable-languages=c,c++,java,<wbr>go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/<wbr>include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/<wbr>java-1.5.0-gcj-4.8-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/<wbr>jvm/java-1.5.0-gcj-4.8-i386 --with-jvm-jar-dir=/usr/lib/<wbr>jvm-exports/java-1.5.0-gcj-4.<wbr>8-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/<wbr>java/eclipse-ecj.jar --enable-objc-gc --enable-targets=all --enable-multiarch --with-arch-32=i586 --with-multilib-list=m32,m64,<wbr>mx32 --with-tune=generic --enable-checking=release --build=i586-linux-gnu --host=i586-linux-gnu --target=i586-linux-gnu</div><div>---</div><div>> Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=<a>file:///usr/<wbr>share/doc/gcc-4.9/README.Bugs</a> --enable-languages=c,c++,java,<wbr>go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/<wbr>include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/<wbr>java-1.5.0-gcj-4.9-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/<wbr>jvm/java-1.5.0-gcj-4.9-i386 --with-jvm-jar-dir=/usr/lib/<wbr>jvm-exports/java-1.5.0-gcj-4.<wbr>9-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/<wbr>java/eclipse-ecj.jar --enable-objc-gc --enable-targets=all --enable-multiarch --with-arch-32=i586 --with-multilib-list=m32,m64,<wbr>mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=i586-linux-gnu --host=i586-linux-gnu --target=i586-linux-gnu</div><div><br></div><div>There are only three major differences here:</div><div><div>--disable-libmudflap</div><div>--disable-vtable-verify</div><div>--enable-multilib</div></div></div></div></div></div></blockquote><div><br></div><div>Just because I like pretty colours...</div><div><a href="https://www.diffchecker.com/anD5GKht">https://www.diffchecker.com/anD5GKht</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><div><div><br></div><div>Below I've attached the log for building with 4.9 with '-fsanitize=undefined' as proposed by Holger Freyther.</div><div><br></div><div>The builds were performed in two separate chroot jails so they did not influence each other. The system is a Debian Jessie, 64 bits.</div></div></div></div></div></div></blockquote><div><br></div><div>Side question - I'm curious how you go about doing a chroot build.  In another thread you could you post some more info on this? </div><div><br></div><div>cheers -ben</div><div> </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><div><div><br></div><div>Let me know if you need anything else.</div><div><br></div><div>Cheers,</div><div>Max</div></div></div><div><br></div></div></div></div><br><div style="word-wrap:break-word"><div><div><br><blockquote type="cite"><div><div style="word-wrap:break-word"><div><br><blockquote type="cite"><div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline">Also, what are</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline">the compilation flags (full gcc invocation example) for the case(s) that</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline">work and the case(s) that don't?</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"></div></blockquote><div><br></div><div>I'll send those as soon as I have them (hopefully tonight).</div><br><blockquote type="cite"><div><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline">Debugging this can be straight-forward if one can build the two versions</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline">and execute them side-by-side to pin-point the failure.  Coming with a fix</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline">may be more challenging ;-)</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><blockquote type="cite" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Thanks for your help Alistair and Eliot.<br><br>Cheers,<br>Max<br><br><br>On 18 May 2017, at 11:00,<span class="gmail-m_-4420922821354967679Apple-converted-space"> </span><a href="mailto:vm-dev-request@lists.squeakfoundation.org" target="_blank">vm-dev-request@lists.<wbr>squeakfoundation.org</a><span class="gmail-m_-4420922821354967679Apple-converted-space"> </span>wrote:<br><br>On 18 May 2017, at 00:50,<span class="gmail-m_-4420922821354967679Apple-converted-space"> </span><a href="mailto:vm-dev-request@lists.squeakfoundation.org" target="_blank">vm-dev-request@lists.<wbr>squeakfoundation.org</a><span class="gmail-m_-4420922821354967679Apple-converted-space"> </span>wrote:<br><br>Hi Max, Hi Alistair,<br><br>On Wed, May 17, 2017 at 1:06 AM, Alistair Grant <<a href="mailto:akgrant0710@gmail.com" target="_blank">akgrant0710@gmail.com</a><span class="gmail-m_-4420922821354967679Apple-converted-space"> </span><<br><a href="mailto:akgrant0710@gmail.com" target="_blank">mailto:akgrant0710@gmail.com</a><span class="gmail-m_-4420922821354967679Apple-converted-space"> </span><<a href="mailto:akgrant0710@gmail.com" target="_blank"><wbr>akgrant0710@gmail.com</a>>>><br>wrote:<br><br><br>On Tue, May 16, 2017 at 04:59:24PM +0200, Alistair Grant wrote:<br><br>Hi Max,<br><br>On 16 May 2017 15:40, "Max Leske" <<a href="mailto:maxleske@gmail.com" target="_blank">maxleske@gmail.com</a><span class="gmail-m_-4420922821354967679Apple-converted-space"> </span><mailto:<br><a href="mailto:maxleske@gmail.com" target="_blank">maxleske@gmail.com</a><span class="gmail-m_-4420922821354967679Apple-converted-space"> </span><<a href="mailto:maxleske@gmail.com" target="_blank">maxleske@<wbr>gmail.com</a>>>> wrote:<br><br> Hi Alistair,<br><br>     On 16 May 2017, at 15:32, vm-dev-request@lists.<br><br><a href="http://squeakfoundation.org/" target="_blank">squeakfoundation.org</a><span class="gmail-m_-4420922821354967679Apple-converted-space"> </span><<a href="http://squeakfoundation.org/" target="_blank">http://<wbr>squeakfoundation.org/</a>><br><br>     wrote:<br><br>     Hi Max,<br><br>     I can't answer your question directly, but just wondering why<br><br>you are<br><br>     using<br>     the itimer VM when the are known issues with external calls, and<br><br>not<br><br>     the<br>     heartbeat VM?<br><br> Because of the root user issue, and also because I don't care about<br><br>that<br><br> much at the moment. I'm still experimenting and for those<br><br>experiments it<br><br> doesn't matter which VM I use. Thirdly, the itimer VM is the one I<br><br>get when<br><br> I use 'curl<span class="gmail-m_-4420922821354967679Apple-converted-space"> </span><a href="http://get.pharo.org/60+vmLatest" target="_blank">get.pharo.org/60+<wbr>vmLatest</a><span class="gmail-m_-4420922821354967679Apple-converted-space"> </span><<a href="http://get.pharo.org/60+vmLatest" target="_blank">http://get.pharo.<wbr>org/60+vmLatest</a>><br>| bash', which is convenient<br><br>to get<br><br> the latest VM, and to minimise differences between the VM's we built<br><br>the<br><br> same one. I will definitely consider using the threaded VM for<br><br>production.<br><br><br>     P.S. I would love to see OSProcess working in 32 bit mode.<br><br> Well, it does work already, just not when we build the VM ourselves<br><br>:/<br><br><br>Interesting, I had the impression that for Pharo 6 OSProcess didn't work<br><br>in<br><br>32bits, only 64, but I'm also building my own VM.  I'm away from my PC,<br><br>but<br><br>I'll try and take a look.<br><br><br>I'm seeing the same behaviour as you, i.e. OSProcess works in a VM<br>downloaded from<span class="gmail-m_-4420922821354967679Apple-converted-space"> </span><a href="http://get.pharo.org/" target="_blank">get.pharo.org</a><span class="gmail-m_-4420922821354967679Apple-converted-space"> </span><<a href="http://get.pharo.org/" target="_blank">http://<wbr>get.pharo.org/</a>>, but locks up when<br>using the VM I<br>compiled.<br><br><br>Have you looked at the build logs and eliminated compiler version, command<br>line flags, etc?  One important file is the config.h that is produced in<br>the build directory.  It might be informative to compare the one configure<br>is producing on your systems and the one that the binary builds creates.<br><br><br>Thanks for the pointer. I'll look into it.<br><br><br><br><br>Both VMs (threaded heartbeat) are based on the same source code, i.e.:<br><br>VM: 201705022326<span class="gmail-m_-4420922821354967679Apple-converted-space"> </span><a href="https://github.com/OpenSmalltalk/opensmalltalk-vm.git" target="_blank">https://github.<wbr>com/OpenSmalltalk/<wbr>opensmalltalk-vm.git</a><span class="gmail-m_-4420922821354967679Apple-converted-space"> </span><<br><a href="https://github.com/OpenSmalltalk/opensmalltalk-vm.git" target="_blank">https://github.com/<wbr>OpenSmalltalk/opensmalltalk-<wbr>vm.git</a>> $<br>Date: Tue May 2 16:26:41 2017 -0700 $<br><br>I'll try and take a look at this eventually, but I'm not sure how long<br>that will be (several weeks away, at least).<br><br>If you figure it out, please let me know.<br><br>Thanks!<br>Alistair<br><br><br><br><br>--<br>_,,,^..^,,,_<br>best, Eliot<br><br><br><br><br><br></blockquote><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline">--<span class="gmail-m_-4420922821354967679Apple-converted-space"> </span></span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline">_,,,^..^,,,_</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline">best, Eliot</span></div></blockquote></div><br></div></div></blockquote></div><br></div></div><br></blockquote></div><br></div></div>