[Vm-dev] Still Failing: OpenSmalltalk/opensmalltalk-vm#2220 (Cog - f679770)

Travis CI builds at travis-ci.org
Thu Oct 1 08:49:13 UTC 2020


Build Update for OpenSmalltalk/opensmalltalk-vm
-------------------------------------

Build: #2220
Status: Still Failing

Duration: 1 hr, 18 mins, and 45 secs
Commit: f679770 (Cog)
Author: Nicolas Cellier
Message: Rescue Win64 cygwin/mingw build and fix issue #498

I (Nicolas Cellier) guess that this only affect cygwin build since there is a parallel Makefile.msvc.tools
`-mno-stack-arg-probe` prevents stack overflow detection when trying to allocate more than a page size on stack, see:
https://archive.is/J01oT

This option makes the VM crash at startup when built for mingw target via cygwin cross-platform toolchain.
Removing the option let the VM start, and the image can at least run some essential SUnit TestCase
Note sure however whether the VM is fully operational or not because I do not know if `-mno-stack-arg-probe` is really required or just an optimization...

`-mno-stack-arg-probe` could eventually work if we would be able to allocate a big enough stack at startup.
That's what we do when using MSVC tool chain:

> ../common/Makefile.msvc.tools:# the default stack size to 2Mb to avoid crashes in the JIT's alloca.
> ../common/Makefile.msvc.tools:DEFAULT_STACK_SIZE:=2097152
> ../common/Makefile.msvc.tools:STACK_LD_FLAG=/STACK:$(DEFAULT_STACK_SIZE),$(DEFAULT_STACK_SIZE)
> ../common/Makefile.msvc.tools:BASELDFLAGS:= $(STACK_LD_FLAG) /DYNAMICBASE /LARGEADDRESSAWARE /NXCOMPAT /DEBUG:FULL

This is supposed to have a solution in mingw too, see:
https://stackoverflow.com/questions/52406183/mingw-stack-size-reserved-or-committed

That's exactly what we are trying to do here:

> ../common/Makefile.tools:BASELDFLAGS:=-m64 -mthreads -Wl,--stack -Xlinker 2097152,2097152 -Wl,$(EXPORT)

Unfortunately, this option is apparently ignored (or overriden?)...

View the changeset: https://github.com/OpenSmalltalk/opensmalltalk-vm/compare/b7c90f4f1790...f679770b3180

View the full build log and details: https://travis-ci.org/github/OpenSmalltalk/opensmalltalk-vm/builds/731849628?utm_medium=notification&utm_source=email


--

You can unsubscribe from build emails from the OpenSmalltalk/opensmalltalk-vm repository going to https://travis-ci.org/account/preferences/unsubscribe?repository=8795279&utm_medium=notification&utm_source=email.
Or unsubscribe from *all* email updating your settings at https://travis-ci.org/account/preferences/unsubscribe?utm_medium=notification&utm_source=email.
Or configure specific recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20201001/b5a228ff/attachment-0001.html>


More information about the Vm-dev mailing list