Code: Select all
test.lsp (println "maxheap " (sys-info 1) " maxstack " (sys-info 5)) (exit)
chmod 755 ... and run ./test
maxheap 576460752303423488 maxstack 2048
max heap is huge and stack is assumed small for this example.
newlisp -m256 -s4096 test.lsp
maxheap 8388608 maxstack 4096
maxheap is more reasonable and maxstack is larger
newlisp -m256 -s4096 -x test.lsp test2
returns with no error and never makes test2
newlisp -x test.lsp test2 -m 256 -s 4096
also returns without an error yet never makes test2
This problem became apparent to me when one of my linked programs went into an endless loop.
It ate a lot of memory, DOSing the server before it was discovered and killed off.
It was during the migration from: newLISP v.10.1.0 on Win32 IPv4 using link.lsp to: newLISP v.10.6.2 64-bit on Linux IPv4/6 UTF-8 libffi [Linux 3.13.0-43-generic on x86_64] using -x that got me started.
I also tested newLISP v.10.6.0 32-bit on Linux IPv4/6 libffi, options: newlisp -h on [Linux 3.13.0-39-generic on i686] -x worked the same [no surprise].