I also am struggling to get STACK/Maxima working again (it previously worked fine, but a package change
about 6 months ago appeared to break it.) Last night we upgraded the STACK plugin version to the latest available
as well as updating the server packages (Ubuntu 20.04). Maxima works fine from the command line; I've set the
correct version in the STACK config [5.43.2] via Moodle and its path [/usr/bin/maxima].
Any help would be appreciated.
Here's the health script output:
Debug info
Context used
Platform: linux Maxima shell command: /usr/bin/maxima Maxima initial command: load("/srv/moodledata/stack/maximalocal.mac"); Maxima timeout: 10
Maxima command
cab:block([],print("[STACKSTART Locals= [ 0=[ error= ["), cte("CASresult",errcatch(diff(x^n,x))), print("1=[ error= ["), cte("STACKversion",errcatch(stackmaximaversion)), print("2=[ error= ["), cte("MAXIMAversion",errcatch(MAXIMA_VERSION_STR)), print("3=[ error= ["), cte("MAXIMAversionnum",errcatch(MAXIMA_VERSION_NUM)), print("4=[ error= ["), cte("externalformat",errcatch(adjust_external_format())), print("5=[ error= ["), cte("CAStime",errcatch(CAStime:"2021-01-27 08:33:05")), print("] ]"), return(true));
CAS process return value: 134
Timings
Start: 1611736385.5097, End: 1611736387.3044, Taken = 1.7946619987488
CAS result
Maxima 5.43.2 http://maxima.sourceforge.net using Lisp GNU Common Lisp (GCL) GCL 2.6.12 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) define: warning: redefining the built-in function intervalp warning: variable simp (declared type boolean) assigned type any. execvp failure when executing '/usr/bin/gcc -c -g -fdebug-prefix-map=/build/gcl-GO84Zx/gcl-2.6.12=. -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -pipe -fno-builtin-malloc -fno-builtin-free -fno-PIE -fno-pie -fno-PIC -fno-pic -Wall -Wno-empty-body -Wno-unused-but-set-variable -Wno-misleading-indentation -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/gcl-2.6.12/unixport/../h -O2 -c /tmp/gazonk_33990_0.c -o /tmp/gazonk_33990_0.o ': No such file or directory Maxima encountered a Lisp error: SIMPLE-ERROR: (SYSTEM "/usr/bin/gcc -c -g -fdebug-prefix-map=/build/gcl-GO84Zx/gcl-2.6.12=. -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -pipe -fno-builtin-malloc -fno-builtin-free -fno-PIE -fno-pie -fno-PIC -fno-pic -Wall -Wno-empty-body -Wno-unused-but-set-variable -Wno-misleading-indentation -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/gcl-2.6.12/unixport/../h -O2 -c /tmp/gazonk_33990_0.c -o /tmp/gazonk_33990_0.o ") returned a non-zero value 130 0. Automatically continuing. To enable the Lisp debugger set *debugger-hook* to nil. (%i1) [STACKSTART Locals= [ 0=[ error= [ ], key = [ CASresult ] , value = [ n*x^(n-1) ], dispvalue = [ n*x^(n-1) ], display = [ stack_disp(n*x^(n-1),"") ] ], 1=[ error= [ ], key = [ STACKversion ] , value = [ stackmaximaversion ], dispvalue = [ stackmaximaversion ], display = [ stack_disp(stackmaximaversion,"") ] ], 2=[ error= [ ], key = [ MAXIMAversion ] , value = [ "5.43.2" ], dispvalue = [ "5.43.2" ], display = [ stack_disp("5.43.2","") ] ], 3=[ error= [ ], key = [ MAXIMAversionnum ] , value = [ 43.2 ], dispvalue = [ 43.2 ], display = [ stack_disp(43.2,"") ] ], 4=[ error= [ There is no settable external format. ], key = [ externalformat ] , value = [ false ], dispvalue = [ false ], display = [ stack_disp(false,"") ] ], 5=[ error= [ ], key = [ CAStime ] , value = [ "2021-01-27 08:33:05" ], dispvalue = [ Unrecoverable error: Segmentation violation.. Aborted (core dumped)
Unpacked result as
Array ( [0] => Array ( [key] => CASresult [value] => n*x^(n-1) [dispvalue] => n*x^(n-1) [display] => stack_disp(n*x^(n-1),"") [error] => ) [1] => Array ( [key] => STACKversion [value] => stackmaximaversion [dispvalue] => stackmaximaversion [display] => stack_disp(stackmaximaversion,"") [error] => ) [2] => Array ( [key] => MAXIMAversion [value] => "5.43.2" [dispvalue] => "5.43.2" [display] => stack_disp("5.43.2","") [error] => ) [3] => Array ( [key] => MAXIMAversionnum [value] => 43.2 [dispvalue] => 43.2 [display] => stack_disp(43.2,"") [error] => ) [4] => Array ( [error] => There is no settable external format. [key] => externalformat [value] => false [dispvalue] => false [display] => stack_disp(false,"") ) [5] => Array ( [key] => CAStime [value] => "2021-01-27 08:33:05" [dispvalue] => Unrecoverable error: Segmentation violation..Aborted (core dumped) [error] => ) )
Trying to connect to the CAS
We are trying to evaluate the following CAS text:
The derivative of {@ x^4/(1+x^4) @} is \[ \frac{d}{dx} \frac{x^4}{1+x^4} = {@ diff(x^4/(1+x^4),x) @}. \] Confirm if unicode is supported: \(\forall\) should be displayed {@unicode(8704)@}.
The derivative of x^4/(1+x^4) is ddxx41+x4=diff(x4/(1+x4),x).
Confirm if unicode is supported: ∀should be displayed unicode(8704).
Errors
CASText failed validation. (%i2) length: argument cannot be a symbol; found %ERR -- an error. (%i3)Debug info
(%i2) length: argument cannot be a symbol; found %ERR -- an error. (%i3)Automatically create an optimised Maxima image
For best performance we need to optimize maxima on a linux machine. Use the plugin "healthcheck" page and see the documentation on this issue.
Maxima image created at: timeout --kill-after=10s 10s /srv/moodledata/stack/maxima_opt_auto -eval '(cl-user::run)'
Debug info
Context used
Platform: linux Maxima shell command: /usr/bin/maxima Maxima initial command: load("/srv/moodledata/stack/maximalocal.mac"); Maxima timeout: 10
Maxima command
:lisp (si::save-system "/srv/moodledata/stack/maxima_opt_auto") quit();
CAS process return value: 0
Timings
Start: 1611736388.8441, End: 1611736390.5599, Taken = 1.7158231735229
CAS result
Maxima 5.43.2 http://maxima.sourceforge.net using Lisp GNU Common Lisp (GCL) GCL 2.6.12 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) define: warning: redefining the built-in function intervalp warning: variable simp (declared type boolean) assigned type any. execvp failure when executing '/usr/bin/gcc -c -g -fdebug-prefix-map=/build/gcl-GO84Zx/gcl-2.6.12=. -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -pipe -fno-builtin-malloc -fno-builtin-free -fno-PIE -fno-pie -fno-PIC -fno-pic -Wall -Wno-empty-body -Wno-unused-but-set-variable -Wno-misleading-indentation -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/gcl-2.6.12/unixport/../h -O2 -c /tmp/gazonk_34048_0.c -o /tmp/gazonk_34048_0.o ': No such file or directory Maxima encountered a Lisp error: SIMPLE-ERROR: (SYSTEM "/usr/bin/gcc -c -g -fdebug-prefix-map=/build/gcl-GO84Zx/gcl-2.6.12=. -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -pipe -fno-builtin-malloc -fno-builtin-free -fno-PIE -fno-pie -fno-PIC -fno-pic -Wall -Wno-empty-body -Wno-unused-but-set-variable -Wno-misleading-indentation -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/gcl-2.6.12/unixport/../h -O2 -c /tmp/gazonk_34048_0.c -o /tmp/gazonk_34048_0.o ") returned a non-zero value 130 0. Automatically continuing. To enable the Lisp debugger set *debugger-hook* to nil. (%i1)
unpack_raw_result: no STACKSTART returned. Data returned was: Maxima 5.43.2 http://maxima.sourceforge.net using Lisp GNU Common Lisp (GCL) GCL 2.6.12 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) define: warning: redefining the built-in function intervalp warning: variable simp (declared type boolean) assigned type any. execvp failure when executing '/usr/bin/gcc -c -g -fdebug-prefix-map=/build/gcl-GO84Zx/gcl-2.6.12=. -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -pipe -fno-builtin-malloc -fno-builtin-free -fno-PIE -fno-pie -fno-PIC -fno-pic -Wall -Wno-empty-body -Wno-unused-but-set-variable -Wno-misleading-indentation -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/gcl-2.6.12/unixport/../h -O2 -c /tmp/gazonk_34048_0.c -o /tmp/gazonk_34048_0.o ': No such file or directory Maxima encountered a Lisp error: SIMPLE-ERROR: (SYSTEM "/usr/bin/gcc -c -g -fdebug-prefix-map=/build/gcl-GO84Zx/gcl-2.6.12=. -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -pipe -fno-builtin-malloc -fno-builtin-free -fno-PIE -fno-pie -fno-PIC -fno-pic -Wall -Wno-empty-body -Wno-unused-but-set-variable -Wno-misleading-indentation -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/gcl-2.6.12/unixport/../h -O2 -c /tmp/gazonk_34048_0.c -o /tmp/gazonk_34048_0.o ") returned a non-zero value 130 0. Automatically continuing. To enable the Lisp debugger set *debugger-hook* to nil. (%i1) ]]]]
Unpacked result as
Array ( )
Maxima version
The version of the STACK-Maxima libraries being used (stackmaximaversion) does not match what is expected (2020120600) by this version of the STACK question type. It is not really clear how that happened. You will need to debug this problem yourself. Start by clearing the CAS cache.
Graph plotting
There should be two different plots. If two identical plots are seen then this is an error in naming the plot files. If no errors are returned, but a plot is not displayed then one of the following may help. (i) check read permissions on the two temporary directories. (ii) change the options used by GNUPlot to create the plot. Currently there is no web interface to these options.
Two example plots below. {@plot([x^4/(1+x^4),diff(x^4/(1+x^4),x)],[x,-3,3])@} {@plot([sin(x),x,x^2,x^3],[x,-3,3],[y,-3,3],grid2d)@} A third, smaller, plot may be displayed here with traditional axes. (Newer versions of Maxima only.) {@plot([sin(x),x,x^2,x^3],[x,-3,3],[y,-3,3],[box, false],[yx_ratio, 1],[axes, solid],[xtics, -3, 1, 3],[ytics, -3, 1, 3],[size,250,250])@}
Two example plots below. plot([x^4/(1+x^4),diff(x^4/(1+x^4),x)],[x,-3,3]) plot([sin(x),x,x^2,x^3],[x,-3,3],[y,-3,3],grid2d) A third, smaller, plot may be displayed here with traditional axes. (Newer versions of Maxima only.) plot([sin(x),x,x^2,x^3],[x,-3,3],[y,-3,3],[box, false],[yx_ratio, 1],[axes, solid],[xtics, -3, 1, 3],[ytics, -3, 1, 3],[size,250,250])
Errors
CASText failed validation. (%i2) length: argument cannot be a symbol; found %ERR -- an error. (%i3)Debug info
(%i2) length: argument cannot be a symbol; found %ERR -- an error. (%i3)CAS result caching
CAS results are being cached in the database.
The cache currently contains 1 entries.
linux | |
OK | CAS returned data as expected. You have a live connection to the CAS. |
OK | Maxima image created at: timeout --kill-after=10s 10s /srv/moodledata/stack/maxima_opt_auto -eval '(cl-user::run)' |
FAILED | The version of the STACK-Maxima libraries being used (stackmaximaversion) does not match what is expected (2020120600) by this version of the STACK question type. It is not really clear how that happened. You will need to debug this problem yourself. Start by clearing the CAS cache. |
Load optional Maxima libraries: stats,distrib,descriptive,simplex | |
CAS results are being cached in the database. |