texput doesn't work in maxima 5.41 (%i6 output should be like %o5 and %i7 should ouput $$ %i5 $$)
(%i2) define(ln(x),log(x))
(%o2) ln(x) := log(x)
(%i3) texlog(x):=block([],concat("\\ln\\left(",tex1(x),"\\right)"))
(%i4) texput(ln,texlog)
(%o4) texlog
(%i5) texlog(x)
(%o5) \ln\left(x\right)
(%i6) tex1(ln(x))
(%o6) \log x
(%i7) tex(ln(x))
$$\log x$$
and sometimes generate a stackoverflow, example :
texlog1(x):=block([],concat("\\ln(",tex1(x),")"))$
texput(log,texlog1);
texlog1(x);
tex(log(x));
maxima crash just after tex(log(x)) with message "Exiting on signal 6". In wxmaxima 15.8.2 I also get informations :
Message from maxima's stderr stream:
*** - Program stack overflow. RESET
[/build/buildd/clisp-2.49/src/eval.d:573] reset() found no driver frame (sp=0x7ffee60ad230-0x7ffee60a6e40)
SERVER: Lost socket connection ...
Trying to restart Maxima.
here are wxbug_report() informations
The Maxima bug database is available at
http://sourceforge.net/tracker/?atid=104933&group_id=4933&func=browse
Submit bug reports by following the 'Add new' link on that page.
The wxMaxima bug database is available at
https://github.com/andrejv/wxmaxima/issues?direction=desc&sort=created&state=open
Submit bug reports by following the 'New issue' link on that page.
Please include the following information with your bug report:
-------------------------------------------------------------
wxMaxima version: 15.8.2
Maxima version: 5.41post
Maxima build date: 2017-10-15 22:00:38
Host type: x86_64-pc-linux-gnu
System type:
gcc -falign-functions=4 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_FFI -DDYNAMIC_MODULES -I. -lreadline -lncurses -ldl /usr/lib/libavcall.so /usr/lib/libcallback.so -lsigsegv libgnu_cl.a
SAFETY=0 TYPECODES WIDE_HARD GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY
libsigsegv 2.10
libreadline 5.2
libffcall 1.11 GNU C 4.8.2 X86_64
Lisp implementation type: CLISP
Lisp implementation version: 2.49 (2010-07-07) (built on lgw01-amd64-020.buildd [127.0.1.1])
-------------------------------------------------------------
It appears to me that both of these problems are not bugs in Maxima.
(1) Given
ln(x) := log(x), thentex(ln(x))is going to outputlog(x)(sinceln(x)evaluates tolog(x). Note thattexseeslog(x), notln(x), so the texput forlndoesn't come into play.(2) You have defined the TeX output for
login terms of the TeX output forlog-- of course that leads to a stack overflow.Closing this as "won't fix" as it doesn't appear to be a bug in Maxima.