Le 17/11/2012 16:13, Baudouin Le Charlier a =E9crit :
I am using a Mac OS X 10.6.8. I have downloaded GNU Pascal for Mac Os f=
romhttp://www.microbizz.nl/gpc.html. I have been using GNU Pascal for writi= ng very simple programs for an introductory programming course and it worke= d fine until I wrote the following program for which I got a "bus error" wh= en writing a first record in the file (at line 128). Notice that the progra= m executes without errors when compiled with free pascal compiler.
It works also with old BP ! I find the same error (SIGSEGV) under DJGPP, MingW and Linux 64bits Seems to be a serious bug of GPC.
Hmm, quick test with Debian gpc did not produce a crash. It certainly would help to have example without a lot of interaction.