LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-17-2023, 02:38 AM   #1
zaxonus
Member
 
Registered: Jul 2005
Posts: 68

Rep: Reputation: 15
"Lisp stack overflow" in Common Lisp.


Hi!

I get this error message when running a lisp program that I have used many times before, with no problem:


*** - Lisp stack overflow. RESET


What could be the issue ?
And what would be a good way to tackle the problem ?
 
Old 12-17-2023, 04:36 AM   #2
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 806
Blog Entries: 1

Rep: Reputation: 439Reputation: 439Reputation: 439Reputation: 439Reputation: 439
Run the source in a repl, and see what lisp has to say about it.
 
Old 12-17-2023, 05:36 AM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,927
Blog Entries: 1

Rep: Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891
You might have added infinite recoursion lately. Or simply the `ulimit -d` value is different?
 
Old 12-17-2023, 09:31 AM   #4
zaxonus
Member
 
Registered: Jul 2005
Posts: 68

Original Poster
Rep: Reputation: 15
@NevemTeve. How can I know the value of 'ulimit -d' ?
And how can I change it ? If it has changed, it was not on my will.
About adding infinite recursion lately, it's hard to think so because this same code has bee used before and never showed any issue.
 
Old 12-17-2023, 11:30 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,892
Blog Entries: 4

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
If the program is "suddenly malfunctioning," then something(!) has "changed."

This is a great argument for setting up each project directory as a "git repository," and using it for version control. The git init command creates a hidden ".git" directory within the project folder, and, "there's your repository." (No "server" required.)

"git" is available for every operating system, and it works the same way.

Each time anyone makes a change to the contents, they use git commit and explain why. You can also now authoritatively determine exactly what, if anything, "has changed." And exactly what the change was. You can git revert any particular change if you change your mind ... and even "revert the revert" if you change your mind again.

Otherwise, you have no real way to know.

Last edited by sundialsvcs; 12-17-2023 at 11:32 AM.
 
Old 12-18-2023, 12:14 AM   #6
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,927
Blog Entries: 1

Rep: Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891
@OP Just enter this command in your shell:
Code:
$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 31801
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 4096
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

Last edited by NevemTeve; 12-18-2023 at 12:15 AM.
 
  


Reply

Tags
common lisp, lisp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Common Lisp - "Substringing" numbers? madsovenielsen Programming 2 02-22-2012 02:53 PM
single 8K process stack vs 4K process stack and a seperate 4K interrupt stack charvak Linux - Kernel 1 03-17-2010 06:58 PM
LISP or COMON LISP Compiler for Debian carspidey Programming 3 04-19-2006 07:46 AM
"Stack Overflow" in Cedega kornerr Linux - General 5 09-09-2005 09:35 PM
Lisp, emacs-lisp aizkorri Programming 1 09-04-2002 06:16 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration