Coder Social home page Coder Social logo

Comments (5)

johncbowman avatar johncbowman commented on July 2, 2024

It doesn't look like a bug: I compiled Asymptote 2.87-26 under x86-64 (Fedora 38) without garbage collection and this example ran up to depth 10000 under valgrind without any errors.

from asymptote.

johncbowman avatar johncbowman commented on July 2, 2024

It might be a garbage collection issue (which version of Boehm GC are you using?), so try configuring with --disable-gc to help isolate the problem.

from asymptote.

charlesstaats avatar charlesstaats commented on July 2, 2024

I tried compiling it without garbage collection and got an error at depth 1832. Here's my asy --version:

Asymptote version 2.87-29 [(C) 2004 Andy Hammerlindl, John C. Bowman, Tom Prince]

ENABLED OPTIONS:
V3D      3D vector graphics output
WebGL    3D HTML rendering
OpenGL   3D OpenGL rendering
FFTW3    Fast Fourier transforms
XDR      External Data Representation (portable binary file format for V3D)
CURL     URL support
Readline Interactive history and editing
Sigsegv  Distinguish stack overflows from segmentation faults
threads  Render OpenGL in separate thread

DISABLED OPTIONS:
SSBO     GLSL shader storage buffer objects
GSL      GNU Scientific Library (special functions)
Eigen    Eigenvalue library
LSP      Language Server Protocol
GC       Boehm garbage collector

from asymptote.

user202729 avatar user202729 commented on July 2, 2024

Might as well be stack overflow. Try setting stack size to very small e.g. on UNIX with ulimit -S -s 512 (i.e. 512 KiB) I get it run to β‰ˆ 1988. The default one is 8192 which is 16 Γ— that, so it would probably stack overflow at 31808 which is quite large.

For me the error message is

runtime: Stack overflow
Aborted (core dumped)

from asymptote.

johncbowman avatar johncbowman commented on July 2, 2024

Yes, good point. If I set my stack size to 512K, I also get a stack overflow. So I will close this issue.

 2283
  real value;
  ^
/u/bowman/camp/test3.asy: 4.3: runtime: Stack overflow
Aborted (core dumped)
bash-5.2$ ulimit -s
512

from asymptote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.