[fpc-pascal] Linux stack wigginess on 1.9.4/1.9.5

Alan Mead cubrewer at yahoo.com
Fri Dec 3 18:00:11 CET 2004

I saw someone recently say that there were some known issues with the
stack on recent version of FPC for Linux.  I'm wondering if what I've
found was known or new.

I have a lengthy program that compiles fine but crashes if I allocate
too much local storage in a procedure (a large array).  Switching to
open arrays solves my problem but I discovered this oddness with the
stack checking.  A small test program I wrote to try to replicate the
error crashes normally ("Run-time error 202 at $xxxxxx"), but my
longer program crashes like this:

An unhandled exception occurred at 0x0807EB79 :
Exception : Unknown Run-Time error : 202
  $08085F92  DOSIM,  line 265 of sim.pas
  $BFFFFB18  P$GE_finalize_implicit,  line 412 of sim.pas

This happens identically in 1.9.4 and 1.9.5.  I can share the source.
It's 411 lines but the bits that make it crash are pretty clear.


More information about the fpc-pascal mailing list