Re: How to solve: module 'syscalls' requires package OS

<[email protected]> Mon, 27 Mar 2017 14:00:26 +0000
Newsgroups gmane.lisp.clisp.general
Message-ID <018c98781ff44273bee0ca340652d63e@HE104834.emea1.cds.t-internal.com>
Hi,

Jean Louis wrote:
> Here is the program
>(defparameter tmp-md (format nil "~a~a.md" memdir tmp-file)) (load >"/home/data1/protected/Programming/git/RCDBusiness/lib/lisp/streamtools.lisp")

So you only show us a snippet, not the whole thing.
Are you sure streamtools does nothing weird?
What does your slurp-stream-io-command do?

>If I make memory image with this one, it is heating the CPU, and I get stack overflow.

That happens for example if you close *standard-input*, as
your previous code involving WITH-OPEN-STREAM did:
>>> ... (with-open-stream (str *standard-input*)


>After researching the bug 695, I could not find pointers

The work-around suggests wrapping the code using EXIT-ON-ERROR. Try it out.
... :init-function '(lambda() (exit-on-error (main))) ...

Of course, EXIT-ON-ERROR might not help against errors such as the above closing of *standard-input*.

You are asking for help, but there's still something you can do yourself:
Try and narrow down the bug. What if you eliminate parts of your program, e.g.
a) Replace input with a fixed three-liner?
  (let ((input '("* Demo" "**Chapter 1"))) ...
b) Replace the call to Emacs with a no-op?
  (tmp-md will re-use a previous file named /run/shm/rcd-wrs-XXXXXX.md)
c) Don't call (slurp-stream-io-command "/usr/bin/discount_markdown -F 0x4" output)?
d) Various combinations of the above?

Regards,
	Jörg Höhle

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list