Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-12

Linux stack wigginess on 1.9.4/1.9.5

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alan Mead

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
$0807EB79
$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.

-Alan

Reply by email