Open janithpet opened 2 years ago
The following changes to cgimain.c
seem to fix this issue.
--- a/src/newton/cgimain.c
+++ b/src/newton/cgimain.c
@@ -372,10 +372,10 @@ main(void)
sigaction(SIGVTALRM, &sa, NULL);
- newtonCgiState = init(kCommonModeDefault|kCommonModeCallStatistics/* | kCommonModeCallTracing */|kCommonModeCGI);
- newtonCgiDimensionsState = init(kCommonModeDefault|kCommonModeCallStatistics/* | kCommonModeCallTracing */|kCommonModeCGI);
+ newtonCgiState = init(kCommonModeDefault/*|kCommonModeCallStatistics | kCommonModeCallTracing */|kCommonModeCGI);
+ newtonCgiDimensionsState = init(kCommonModeDefault/*|kCommonModeCallStatistics | kCommonModeCallTracing */|kCommonModeCGI);
timestampsInit(newtonCgiState);
-
+ timestampsInit(newtonCgiDimensionsState);
/*
* Extra \n, to send the blank line:
I will make a PR with these changes.
Describe the bug After fixing Issues #615, #616 and #617, and compiling, running the webtool generates the following text in red, on the top of the page:
See screenshot below for how it is seen on the webpage.
This text is caused by the signal handler
timeoutSignalHandler
insrc/newton/cgimain.c
. By adding awrite
statement on line 116, to print the signal code that caused the error, we can see that it is a SIG-11 (SIGSEGV).To Reproduce Steps to reproduce the behavior; this assumes that Apache2 is setup, with cgi modules enabled on your machine:
git clone --recursive git@github.com:phillipstanleymarbell/Noisy-lang-compiler.git
config.local
in root directory, andsubmodules/libflex
.config.local
looks like:make
insubmodules/libflex
.mkdir icons
insrc/
. This is a temporary fix for Issue-#616. See note below.sudo cp NewtonBaseSignals.nt /usr/bin/cgi-bin/
fromsrc/newton
. This is a temporary fix for Issue-#617.make installcgi
insrc/newton
.and
Host OS (please complete the following information):
lsb_release -a
)clang --version
)gcc --version
)Your local changes (please complete the following information):
Output of
git diff
(to fix Issue-#615):newton-irPass-estimatorSynthesisBackend/$(OBJECTEXTENSION)\ newton-irPass-ipsaBackend.$(OBJECTEXTENSION)\ newton-irPass-dimensionalMatrixAnnotation.$(OBJECTEXTENSION)\ newton-irPass-dimensionalMatrixPiGroups.$(OBJECTEXTENSION)\
Output of
git remote -v
:Additional Notes